summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2011-10-15 20:20:17 +0100
committerdakkar <dakkar@thenautilus.net>2011-10-15 20:20:17 +0100
commitbb105b794d29f56873ef40201e0d69f7ef5ff4e3 (patch)
treebcd8fa96c2c2a42cb799c638ebd6e79e333e9d09
parentcodice per stampare gli incantesimi (diff)
downloadinventario-bb105b794d29f56873ef40201e0d69f7ef5ff4e3.tar.gz
inventario-bb105b794d29f56873ef40201e0d69f7ef5ff4e3.tar.bz2
inventario-bb105b794d29f56873ef40201e0d69f7ef5ff4e3.zip
modifiche da Marco
-rw-r--r--incantesimi.cmd.tex101
-rw-r--r--incantesimi.example.tex57
2 files changed, 102 insertions, 56 deletions
diff --git a/incantesimi.cmd.tex b/incantesimi.cmd.tex
index 75b9c61..c5de5ca 100644
--- a/incantesimi.cmd.tex
+++ b/incantesimi.cmd.tex
@@ -1,8 +1,8 @@
\documentclass[a4paper,10pt,landscape]{article}
\usepackage[empty,cm]{fullpage}
\usepackage[latin1]{inputenc}
-\usepackage[italian]{babel}
-\usepackage[T1]{fontenc}
+\usepackage[italian,english]{babel}
+\usepackage[OT1]{fontenc}
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage{pgfkeys}
@@ -14,7 +14,7 @@
\setlength{\textwidth}{\paperwidth}
\setlength{\oddsidemargin}{-2.68cm}
\setlength{\evensidemargin}{\oddsidemargin}
-\setlength{\textheight}{\paperheight}
+\setlength{\textheight}{1.1\paperheight}
\setlength{\topmargin}{0pt}
\addtolength{\topmargin}{-2.68cm}
\addtolength{\oddsidemargin}{0.45cm} % per centrare le etichette
@@ -22,59 +22,92 @@
%%%%
\setlength{\parindent}{0pt}
+%%%%
+\newlength{\cardtextwidth}
+\setlength{\cardtextwidth}{4.33cm}
+
+%\fontseries{c}\fontshape{sc}
+
\tikzstyle{carta}=[rectangle,minimum width=4.8cm,minimum height=7cm,outer sep=0,use as bounding box]
-\tikzstyle{small label}=[rectangle,text=red,minimum height=0.5cm,font=\tiny,inner sep=1mm]
-\tikzstyle{medium label}=[rectangle,text=blue,minimum height=0.5cm,font=\footnotesize,inner sep=1mm]
-\tikzstyle{side label}=[rectangle,rotate=90,text=green,minimum height=0.3cm,font=\tiny,inner sep=1mm]
-\tikzstyle{center label}=[rectangle,text=magenta,font=\tiny,inner sep=1mm,text width=3.9cm,align=justify]
+\tikzstyle{title label}=[rectangle,text=blue!80!green!75!black,minimum height=2\baselineskip,font={\scshape\small},inner sep=1mm,text width=4.6cm,align=flush center]
+
+\tikzstyle{side label}=[rectangle,text=green!35!black,minimum height=3mm,font=\tiny,inner sep=0.5mm,rotate=270]
+
+\tikzstyle{subt label}=[rectangle,text=magenta!25!black,minimum height=0.5cm,font=\scriptsize,inner xsep=2pt,inner ysep=1mm,text width=\cardtextwidth,align=#1]
+
+\tikzstyle{descr label}=[rectangle,text=red!50!black,font={\sffamily\footnotesize},inner xsep=2pt,inner ysep=1mm,text width=\cardtextwidth,align=justify]
+
+\tikzstyle{trg label}=[rectangle,text=red!70!blue!90!yellow,font={\sffamily\footnotesize},inner xsep=2pt,inner ysep=1mm,align=#1]
+
+\tikzstyle{angles label}=[rectangle,text=blue!50!black,minimum height=0.5cm,font=\scriptsize,inner sep=0.5mm,align=justify]
+
+%%%%
\pgfkeys{/spells/.unknown/.code = {\pgfkeyssetvalue{\pgfkeyscurrentpath/\pgfkeyscurrentname}{#1}}}
+
\pgfkeyssetvalue{/spells/type}{spell}
\pgfkeyssetvalue{/spells/st}{None}
\pgfkeyssetvalue{/spells/sr}{No}
\pgfkeyssetvalue{/spells/tempo}{1a}
+\pgfkeyssetvalue{/spells/level}{-}
+\pgfkeyssetvalue{/spells/specialcomp}{}
\newcommand{\incantesimo}[1]{%
-%\begin{scope}[every node/.style={draw},/spells/.cd,#1]
+%\begin{scope}[every node/.style={draw,very thin},/spells/.cd,#1]
\begin{scope}[/spells/.cd,#1]
-\node[carta] (card) {};
+\node[carta,draw,ultra thin] (card) {};
-\node [anchor=north east,side label] (type) at (card.north west)
- {\pgfkeysvalueof{/spells/type}};
-\node [anchor=north,medium label] (name) at (card.north)
+% titolo
+\node [anchor=north,title label] (name) at (card.north)
{\pgfkeysvalueof{/spells/name}};
-\node [anchor=north,small label] (scuola) at (name.south)
- {\pgfkeysvalueof{/spells/scuola}};
-\node [anchor=north east,medium label] (lvl) at ($(card.north east) - (0,1cm)$)
- {lvl \pgfkeysvalueof{/spells/level}};
-\node [anchor=north east,side label] (range) at (type.north west)
- {rng: \pgfkeysvalueof{/spells/range}};
+%angolo nord est
+\node [anchor=north west,side label] (type) at ($(card.east |- name.south) - (0mm,0.0mm)$)
+ {\textsl{\pgfkeysvalueof{/spells/type}}};
-\node [anchor=north east,small label] (target) at (lvl.north west)
- {\pgfkeysvalueof{/spells/target}};
-\node [anchor=south west,small label] (st) at (card.south west)
- {ST:\pgfkeysvalueof{/spells/st}};
+%angolo sud ovest
+\node [anchor=south west,angles label] (st) at (card.south west)
+ {\textsc{ST:\pgfkeysvalueof{/spells/st}}};
+\node [anchor=south west,angles label] (durata) at (st.north west)
+ {\textsf{Duration: \pgfkeysvalueof{/spells/durata}}};
-\node [anchor=south west,small label] (sr) at (st.north west)
- {SR:\pgfkeysvalueof{/spells/sr}};
-\node [anchor=south east,small label] (durata) at (card.south east)
- {\pgfkeysvalueof{/spells/durata}};
-\node [anchor=south east,small label] (tempo) at (durata.north east)
- {\pgfkeysvalueof{/spells/tempo}};
+%angolo sud est
+\node [anchor=south east,angles label] (sr) at (card.south east)
+ {\textsc{SR:\pgfkeysvalueof{/spells/sr}}};
+\node [anchor=south east,angles label] (tempo) at (sr.north east)
+ {\textsf{CT: \pgfkeysvalueof{/spells/tempo}}};
-\node [anchor=south east,side label] (ref) at (lvl.south east)
+%lato sud est
+\node [anchor=north east,side label] (ref) at ($(tempo.north east) + (0,3mm)$)
{\pgfkeysvalueof{/spells/ref}};
-\node [anchor=north west,center label] (components) at (range.south |- target.south)
- {\pgfkeysvalueof{/spells/components}};
-\node [anchor=north west,center label] (description) at ($(components.south west) - (0,1mm)$)
+%sottotitoli
+\node [anchor=north east,subt label=flush right] (scuola) at (type.south west)
+ {\emph{\pgfkeysvalueof{/spells/scuola}}};
+\node [anchor=north west,subt label=flush left] (components) at ($(scuola.south -| card.west) - (0mm,0mm)$)
+ {\textsc{\pgfkeysvalueof{/spells/components}}\\{\tiny\pgfkeysvalueof{/spells/specialcomp}}};
+
+
+%centro
+\node [anchor=west,descr label] (description) at ($0.70*(card.west)+0.3*(card.south west)$)
{\pgfkeysvalueof{/spells/descrizione}};
-\node [anchor=north west,center label] (notes) at ($(description.south west) - (0,1mm)$)
- {\pgfkeysvalueof{/spells/note}};
+\node [anchor=north,descr label] (notes) at (description.south)
+ {\tiny\fontseries{e}\pgfkeysvalueof{/spells/note}};
+
+% sopra il centro
+\node [anchor=south west,trg label=flush left] (target) at ($(description.north west) + (0,1mm)$)
+ {{\scriptsize{}Target/Effect/Area:}\\{\slshape\pgfkeysvalueof{/spells/target}}};
+
+\node [anchor=south east,trg label=flush right] (range) at (target.north -| type.south)
+ {{\scriptsize{}Range:} \textnormal{\itshape\pgfkeysvalueof{/spells/range}}};
+
+%lato est
+\node [anchor=north west,side label] (lvl) at ($0.8*(card.east)+0.2*(card.north east)$)
+ {\textsc{lvl \pgfkeysvalueof{/spells/level}}};
+
\end{scope}%
}
diff --git a/incantesimi.example.tex b/incantesimi.example.tex
index 40a0173..91a5811 100644
--- a/incantesimi.example.tex
+++ b/incantesimi.example.tex
@@ -1,9 +1,10 @@
-\include{incantesimi.cmd}
+\input{incantesimi.cmd}
+%\input{incantesimi.cmd.other}
\begin{document}
-
+%
\begin{tikzpicture}
-
+%
\matrix {
\incantesimo{type=spell-like,
@@ -17,28 +18,42 @@
ref=PH289,
range=medium,
target={Well shaft 10ft. diam 100 ft. deep},
- components={V,S,M,F,DF,XP\\M: Incense; F: Prayer bead (500 MO)},
+ components={V,S,M,F,DF,XP},
+ specialcomp={M: Incense; F: Payer beads (500~MO); XP: 0 or 500},
descrizione={Fully repairs an obj. up to 5\%/2L mass loss; cures 1d4 dmg to magical obj.},
note={Reasonable command may give -1 to -4 pen. to S. T.}
} &
-\incantesimo{scuola=scuola a caso,name=Incantesimo col nome lungo,level=1,
- durata=Inst,range=touch,target=you,components={V,S},
- descrizione={blah blah blah}} &
-\incantesimo{scuola=scuola a caso,name=Incantesimo col nome lungo,level=1,
- durata=Inst,range=touch,target=you,components={V,S},
- descrizione={blah blah blah}} &
-\incantesimo{scuola=scuola a caso,name=Incantesimo col nome lungo,level=1,
- durata=Inst,range=touch,target=you,components={V,S},
- descrizione={blah blah blah}} &
-\incantesimo{scuola=scuola a caso,name=Incantesimo col nome lungo,level=1,
- durata=Inst,range=touch,target=you,components={V,S},
- descrizione={blah blah blah}} &
+\incantesimo{type=spell-like,
+ name={Death touch},
+ %level=0,
+ scuola={Death domain},
+ components={Once per day},
+ %tempo=1a,
+ range=Touch,
+ target={1 living creat. touched},
+ durata=Instantaneous,
+ %st,
+ sr=Yes,
+ descrizione={If touched creat. has less than 1d6/CL hp dies.},
+ ref=PH163,
+% note
+ } &
+\incantesimo{type=Supernatural,scuola=scuola a caso pił altra roba in giro,name=Incantesimo col nome lungooooooo,level=3,
+ durata=1/L m,range=Touch,target=you,components={V,S,M},specialcomp={M:tanta roba costosa da accendere (5000~MO)},
+ descrizione={+2 Defl AC/Resist. saves, counter mind control, hedge out elemental/outsiders.}} &
+\incantesimo{scuola=scuola a caso,name=Incantesimo col nome lungo a a a a,level=1,
+ durata=Inst,range=touch,target=you,components={V,S},
+ descrizione={blah blah blah},
+ note={Bigger ones can pass after Will save with 2d6 dmg.}} &
+\incantesimo{scuola=scuola a caso,name=Incantesimo col nome lungo,level=1,
+ durata=Inst,range=touch,target=you,components={V,S},
+ descrizione={blah blah blah}}&
\incantesimo{scuola=scuola a caso,name=Incantesimo col nome lungo,level=1,
durata=Inst,range=touch,target=you,components={V,S},
descrizione={blah blah blah}} \\
\incantesimo{scuola=scuola a caso,name=Incantesimo col nome lungo,level=1,
- durata=Inst,range=touch,target=you,components={V,S},
+ durata=Inst,range=touch,target=you,components={V,S},specialcomp={M: Incense; F: Prayer bead (500~MO)},
descrizione={blah blah blah}} &
\incantesimo{scuola=scuola a caso,name=Incantesimo col nome lungo,level=1,
durata=Inst,range=touch,target=you,components={V,S},
@@ -73,10 +88,8 @@
descrizione={blah blah blah}} &
\incantesimo{scuola=scuola a caso,name=Incantesimo col nome lungo,level=1,
durata=Inst,range=touch,target=you,components={V,S},
- descrizione={blah blah blah}}
-
-\\};
-
+ descrizione={blah blah blah}}\\
+};
\end{tikzpicture}
-
+\vspace{-10pt}
\end{document}