From 639fc125b6c36b97b16007a48c991cc35697bfeb Mon Sep 17 00:00:00 2001
From: dakkar <dakkar@thenautilus.net>
Date: Fri, 14 Oct 2011 21:16:44 +0100
Subject: codice per stampare gli incantesimi
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

gli allineamenti sono un po' a caso, mancano i comandi per le scuole etc
(per farle colorate), e non capisco perché mi fa una pagina vuota
all'inizio
---
 incantesimi.cmd.tex | 80 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 80 insertions(+)
 create mode 100644 incantesimi.cmd.tex

(limited to 'incantesimi.cmd.tex')

diff --git a/incantesimi.cmd.tex b/incantesimi.cmd.tex
new file mode 100644
index 0000000..75b9c61
--- /dev/null
+++ b/incantesimi.cmd.tex
@@ -0,0 +1,80 @@
+\documentclass[a4paper,10pt,landscape]{article}
+\usepackage[empty,cm]{fullpage}
+\usepackage[latin1]{inputenc}
+\usepackage[italian]{babel}
+\usepackage[T1]{fontenc}
+\usepackage{tikz}
+\usetikzlibrary{calc}
+\usepackage{pgfkeys}
+
+%%%% fullpage
+\setlength{\headheight}{0pt}
+\setlength{\headsep}{0pt}
+\setlength{\footskip}{0pt}
+\setlength{\textwidth}{\paperwidth}
+\setlength{\oddsidemargin}{-2.68cm}
+\setlength{\evensidemargin}{\oddsidemargin}
+\setlength{\textheight}{\paperheight}
+\setlength{\topmargin}{0pt}
+\addtolength{\topmargin}{-2.68cm}
+\addtolength{\oddsidemargin}{0.45cm} % per centrare le etichette
+\addtolength{\evensidemargin}{0.45cm} % per centrare le etichette
+%%%%
+\setlength{\parindent}{0pt}
+
+\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]
+
+\pgfkeys{/spells/.unknown/.code = {\pgfkeyssetvalue{\pgfkeyscurrentpath/\pgfkeyscurrentname}{#1}}}
+\pgfkeyssetvalue{/spells/type}{spell}
+\pgfkeyssetvalue{/spells/st}{None}
+\pgfkeyssetvalue{/spells/sr}{No}
+\pgfkeyssetvalue{/spells/tempo}{1a}
+
+\newcommand{\incantesimo}[1]{%
+%\begin{scope}[every node/.style={draw},/spells/.cd,#1]
+\begin{scope}[/spells/.cd,#1]
+\node[carta] (card) {};
+
+\node [anchor=north east,side label] (type) at (card.north west)
+      {\pgfkeysvalueof{/spells/type}};
+\node [anchor=north,medium 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}};
+
+\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}};
+
+\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}};
+
+\node [anchor=south east,side label] (ref) at (lvl.south east)
+      {\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)$)
+      {\pgfkeysvalueof{/spells/descrizione}};
+
+\node [anchor=north west,center label] (notes) at ($(description.south west) - (0,1mm)$)
+      {\pgfkeysvalueof{/spells/note}};
+
+\end{scope}%
+}
-- 
cgit v1.2.3

