From 6de2d6fdadc62f82837b1d16c33974b00eea4ab0 Mon Sep 17 00:00:00 2001 From: Gianni Ceccarelli Date: Wed, 5 Nov 2008 12:53:24 +0100 Subject: comandi! --- inventario.lachesi.tex | 60 +------------------------------------------------- 1 file changed, 1 insertion(+), 59 deletions(-) (limited to 'inventario.lachesi.tex') diff --git a/inventario.lachesi.tex b/inventario.lachesi.tex index 39a734e..ded8e0c 100644 --- a/inventario.lachesi.tex +++ b/inventario.lachesi.tex @@ -1,66 +1,8 @@ -\documentclass[a4paper,10pt]{article} -\usepackage[empty,cm]{fullpage} -\usepackage[latin1]{inputenc} -\usepackage[italian]{babel} -\usepackage[T1]{fontenc} -\usepackage{pslatex} -\usepackage{tikz} -\usetikzlibrary{backgrounds} -\usetikzlibrary{calc} +\include{inventario.cmd} -%%%% 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} -%%%% -\setlength{\parindent}{0pt} - -\pgfdeclareimage[width=3cm]{sword}{sword-img} -\pgfdeclareimage[width=1mm]{empty}{empty} \pgfdeclareimage[width=3cm]{book-boccob}{book-boccob} \pgfdeclareimage[width=3cm]{rod-extend}{rod-extend} -\newcommand{\DDitemhoriz}[7]{% -\begin{scope} - -\node [draw,ultra thin,dotted,rectangle,minimum height=4.8cm,minimum width=7cm,outer sep=0,use as bounding box] (card) {}; - -\node [anchor=north west,rotate=90] (itemtype) at (node cs:name=card,anchor=south west) - {#2}; - -\node [anchor=north east,rotate=90] (itemowner) at (node cs:name=card,anchor=north west) - {#3}; - -\node [anchor=south west,rotate=90] (itemweight) at (node cs:name=card,anchor=south east) - {#4}; - -\node [anchor=south east,rotate=90] (itemprice) at (node cs:name=card,anchor=north east) - {#5}; - -\node [anchor=north,rotate=90] (itemimage) at ($0.5*(node cs:name=itemtype,anchor=south west)+0.5*(node cs:name=itemowner,anchor=south east)$) - {\pgfuseimage{#1}}; - -\node [anchor=north,inner sep=1mm,text width=4.6cm,rotate=90] - (itemname) - at (node cs:name=itemimage,anchor=south) - {#6}; - -\node [anchor=south,inner sep=1mm,text width=4.6cm,rotate=90] - (itemdesc) - at ($0.5*(node cs:name=itemweight,anchor=north west)+0.5*(node cs:name=itemprice,anchor=north east)$) - {#7}; - -\end{scope}% -} - -\newcommand{\DDitem}[7]{\DDitemhoriz{#1}{#2}{#3}{#4}{#5}{#6}{#7}} - \begin{document} \begin{tikzpicture} -- cgit v1.2.3