SHARE
TWEET

Tex Cards

a guest Oct 4th, 2013 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. \usepackage{tikz}
  3. \usetikzlibrary{positioning,fit,calc}
  4. \usetikzlibrary{shadows.blur}
  5. \usetikzlibrary{shapes.symbols}
  6. \usepackage{pifont}
  7. %\usepackage{epsfig}
  8. \usepackage{txfonts}%\varheart and \vardiamond which are filled. (The Comprehensive LaTeX Symbols Guide is your friend here.)Since arev changes the math font, it's maybe not the best solution. (But see Caramdir's answer for a way around that.)The txfonts packages also provides \varheartsuit and \Diamondblack
  9. %\usepackage{adjustbox}
  10. %\usepackage{graphicx}
  11. \usepackage{graphicx}
  12. \usepackage{xkeyval}
  13. \usepackage{calc,xcolor}
  14. \usepackage{comment}
  15. \usepackage{color}
  16. %\usepackage{pdfrender}
  17. %\usepackage{pst-all}
  18. %\usepackage[outline]{contour}
  19. %\contourlength{1.2pt}
  20. %\usepackage{pst-text}
  21.  
  22. %card sizes: 5x8cm, traditional sizes (MTG):6.3x8.8 Clear Sleeves: Standard American Board Game Pack
  23. %which is 56 x 87mm.
  24. %and
  25. %Clear Sleeves: Standard Card Game Pack
  26. %which is 63.5 x 88mm.
  27.  
  28. \makeatletter
  29. %%%%tableofcards!
  30. \def\tableofcards{\@starttoc{listofcards}}
  31.  
  32.  
  33. %\define@boolkey{Fbox}{frame}[true]
  34. %\define@boolkey{Fbox}{shadow}[true]
  35. %\define@key{card}{cardroundingradius}%
  36. %{\def\cardroundingradius{#1}}
  37. \define@key{cardk}{useunits}[1cm]%pouzity jednotky vsude u rozmeru fyzickejch
  38. {\def\useunits{#1}}
  39. \define@key{cardk}{width}[5]%velikost na sirku karty
  40. {\def\cardwidth{#1}}
  41. \define@key{cardk}{height}[8]%velikost karty na vysku
  42. {\def\cardheight{#1}}
  43. \define@key{cardk}{bgpicwid}[15cm]%background picture scaling
  44. {\def\bgpicwid{#1}}
  45. \define@key{cardk}{bgpic}[bg1.jpg]%background picture used
  46. {\def\bgpic{#1}}
  47. \define@key{cardk}{mainfrmhei}[5]%
  48. {\def\mainfrmhei{#1}}
  49. \define@key{cardk}{mainpicwid}[5cm]%main picture scale
  50. {\def\mainpicwid{#1}}
  51. \define@key{cardk}{mainpic}[]%main picture
  52. {\def\mainpic{#1}}
  53. \define@key{cardk}{layerpicheight}[4]%space at the top of the card used for picture
  54. {\def\layerpicheight{#1}}
  55. \define@key{cardk}{layerpicwidth}[4]%
  56. {\def\layerpicwidth{#1}}
  57. \define@key{cardk}{toppadding}[0.5]%
  58. {\def\toppadding{#1}}
  59. \define@key{cardk}{filltext}[yellow!50]%color under text parts
  60. {\def\filltext{#1}}
  61. \define@key{cardk}{drawtext}[yellow]%color around node with texts
  62. {\def\drawtext{#1}}
  63. \define@key{cardk}{outrounding}[3mm]%rounding of the whole card
  64. {\def\outrounding{#1}}
  65. \define@key{cardk}{inrounding}[3mm]%rounding of inside nodes
  66. {\def\inrounding{#1}}
  67. \define@key{cardk}{captionfont}[\large \bfseries \color{white}]%font of cards caption
  68. {\def\captionfont{#1}}
  69. \define@key{cardk}{flavorfont}[\itshape \color{white}]%font of flavor text
  70. {\def\flavorfont{#1}}
  71. \define@key{cardk}{teamfont}[\normalsize \bfseries \color{white}]%font of team name
  72. {\def\teamfont{#1}}
  73. \define@key{cardk}{teamtext}[]%font of team name
  74. {\def\teamtext{#1}}
  75. \define@key{cardk}{cardktopright}[]%
  76. {\def\cardktopright{#1}}
  77. \define@key{cardk}{textinnersep}[3pt]%inner sep of text inside nodes
  78. {\def\textinnersep{#1}}
  79. \presetkeys{cardk}{useunits,inrounding,outrounding,filltext,toppadding,layerpicwidth,layerpicheight,mainpic,mainpicwid,mainfrmhei,
  80. bgpic,bgpicwid,height,width,captionfont,textinnersep,drawtext,flavorfont,teamfont,teamtext}{}%
  81.  
  82. %%%% ----------------------------------------------------------------------------------------------------
  83. %%%% Base code for card background drawing in tikz.
  84. \newcommand\cardback[1]{%
  85. \begingroup%
  86. \setkeys{cardk}{#1}%
  87. %
  88. \begin{tikzpicture}%
  89.     \clip [rounded corners=\outrounding] (0,0) rectangle coordinate (centerpoint) (\cardwidth*\useunits,\cardheight*\useunits);
  90.     \node [inner sep=0pt] at (centerpoint) {\includegraphics[width=\bgpicwid]{\bgpic}};
  91.     %\node [inner sep=0pt] at (centerpoint) {\includegraphics[width=\bgpicwid]{\bgpic}};
  92. \draw[rounded corners=\outrounding] (0,0) rectangle coordinate (centerpoint) (\cardwidth*\useunits,\cardheight*\useunits);
  93. %%bounding box: whole card
  94. %\draw [brown] (current bounding box.south west) rectangle (current bounding box.north east);
  95. \end{tikzpicture}%
  96. \endgroup%
  97. }
  98.  
  99. %%%% ----------------------------------------------------------------------------------------------------
  100. %%%% CARDBASE basic card drawing {KEYS}{TOP CAPTION}{TEXT AT CARD}
  101. \newcommand\cardbase[3]{%
  102. \begingroup%
  103. \setkeys{cardk}{#1}%
  104. \pgfmathsetmacro{\textpadding}{0.3}%
  105. \newcommand{\topcaption}{#2}%
  106. %
  107. \pgfdeclarelayer{back}%
  108. \pgfdeclarelayer{fore}%
  109. \pgfsetlayers{back,main,fore}%
  110. %
  111. \begin{tikzpicture}%
  112. \def\textinner{#3}
  113. %
  114. %back layer: - background, round corners
  115. \begin{pgfonlayer}{back}
  116.    \clip [rounded corners=\outrounding] (0,0) rectangle coordinate (centerpoint) (\cardwidth*\useunits,\cardheight*\useunits);
  117.    \node [inner sep=0pt] at (centerpoint) {\includegraphics[width=\bgpicwid]{\bgpic}};
  118. \end{pgfonlayer}
  119.  
  120. %main layer: - black round ountline, caption, card image, rounded rectangle text background
  121. \draw[rounded corners=\outrounding] (0,0) rectangle coordinate (centerpoint) (\cardwidth*\useunits,\cardheight*\useunits);
  122.  
  123. \begin{scope}
  124.  
  125. \node[text width=(\cardwidth-2*\textpadding)*\useunits,below right,inner sep=0,draw=none,fill=none] (prvni) at (\textpadding*\useunits,\cardheight*\useunits-\textpadding*\useunits) {\captionfont \topcaption};
  126.  
  127. \clip [rounded corners=\inrounding] (\textpadding*\useunits,\cardheight*\useunits-\textpadding*\useunits-\toppadding*\useunits) rectangle coordinate (clipname) (\cardwidth*\useunits-\textpadding*\useunits,\cardheight*\useunits-\layerpicheight*\useunits);
  128. \node [text width=(\cardwidth-2*\textpadding)*\useunits, inner sep=0pt] (mainpicnode) at (clipname) {\includegraphics[width=\mainpicwid]{\mainpic}};
  129. \end{scope}
  130.  
  131. %background for text
  132. \node[text width=(\cardwidth-2*\textpadding)*\useunits, minimum height=(\cardheight-\layerpicheight-2*\textpadding)*1cm,below right,inner sep=0pt,draw=\drawtext,fill=\filltext,rounded corners=\inrounding,fill opacity=0.8] (textunder) at (\textpadding*\useunits,\cardheight*\useunits-\layerpicheight*\useunits-\textpadding*\useunits) {};
  133.  
  134. \begin{pgfonlayer}{fore}%forgraound - clipped text inside
  135. \begin{scope}
  136. \clip [rounded corners=\inrounding] (\textpadding*\useunits,\cardheight*\useunits-\layerpicheight*\useunits-\textpadding*\useunits) rectangle coordinate (clipcoo) (\cardwidth*\useunits-\textpadding*\useunits,\textpadding*\useunits);
  137.    \node [text width=(\cardwidth-2*\textpadding)*\useunits-\textinnersep,below right,inner sep=\textinnersep] at (\textpadding*\useunits,\cardheight*\useunits-\layerpicheight*\useunits-\textpadding*\useunits) {\textinner};
  138. \end{scope}
  139. %determine bounding box: uncomment to see:
  140. %\draw [brown] (\textpadding,\cardheight-\layerpicheight-\textpadding) rectangle (\cardwidth-\textpadding,\textpadding);
  141. \end{pgfonlayer}
  142. %%bounding box: whole card
  143. %\draw [brown] (current bounding box.south west) rectangle (current bounding box.north east);
  144. \end{tikzpicture}%
  145. \endgroup%
  146. }
  147. %%%% ----------------------------------------------------------------------------------------------------
  148. %%%% cardstats - card with 4 statistics
  149. \define@key{cardk}{ctextsa}[]%
  150. {\def\ctextsa{#1}}
  151. \define@key{cardk}{ctextsb}[]%
  152. {\def\ctextsb{#1}}
  153. \define@key{cardk}{ctextsc}[]%
  154. {\def\ctextsc{#1}}
  155. \define@key{cardk}{ctextsd}[]%
  156. {\def\ctextsd{#1}}
  157. \define@key{cardk}{inimgwid}[0.52]%
  158. {\def\inimgwid{#1}}
  159. \define@key{cardk}{cimgsa}[]%
  160. {\def\cimgsa{#1}}
  161. \define@key{cardk}{cimgsb}[]%
  162. {\def\cimgsb{#1}}
  163. \define@key{cardk}{cimgsc}[]%
  164. {\def\cimgsc{#1}}
  165. \define@key{cardk}{cimgsd}[]%
  166. {\def\cimgsd{#1}}
  167. \define@key{cardk}{strounding}[2mm]%
  168. {\def\strounding{#1}}
  169. \presetkeys{cardk}{ctextsa,ctextsb,ctextsc,ctextsd,inimgwid,cimgsa,cimgsb,cimgsc,cimgsd,strounding}{}%
  170.  
  171. \newcommand\cardstats[3]{%
  172. \begingroup%
  173. \setkeys{cardk}{#1}%
  174. \pgfmathsetmacro{\textpadding}{0.3}%
  175. \newcommand{\topcaption}{#2}%
  176. %
  177. \pgfdeclarelayer{back}%
  178. \pgfdeclarelayer{backs}%
  179. \pgfdeclarelayer{fore}%
  180. \pgfsetlayers{back,backs,main,fore}%
  181. %
  182. \begin{tikzpicture}%
  183. \newcommand{\textinner}{#3}
  184. %
  185. %back layer: - background, round corners
  186. \begin{pgfonlayer}{back}
  187.    \clip [rounded corners=\outrounding] (0,0) rectangle coordinate (centerpoint) (\cardwidth*\useunits,\cardheight*\useunits);
  188.    \node [inner sep=0pt] at (centerpoint) {\includegraphics[width=\bgpicwid]{\bgpic}};
  189. \end{pgfonlayer}
  190.  
  191. %main layer: - black round ountline, caption, card image, rounded rectangle text background
  192. \draw[rounded corners=\outrounding] (0,0) rectangle coordinate (centerpoint) (\cardwidth*\useunits,\cardheight*\useunits);
  193.  
  194. \begin{scope}
  195.  
  196. \node[text width=(\cardwidth-2*\textpadding)*\useunits,below right,inner sep=0,draw=none,fill=none] (prvni) at (\textpadding*\useunits,\cardheight*\useunits-\textpadding*\useunits) {\captionfont \topcaption};
  197.  
  198. \ifdefined \cardktopright %\empty
  199. %\relax
  200. %\else
  201. \node [below left,inner sep=0,draw=none,fill=none] (cardclassic) at (\cardwidth*\useunits-\textpadding*\useunits,\cardheight*\useunits-\textpadding*\useunits) {\cardktopright};
  202. \fi
  203.  
  204. %\node[text width=(\cardwidth-2*\textpadding)*\useunits,align=right,below right,inner sep=0,draw=none,fill=none] (prvni) at (\textpadding*\useunits,\cardheight*\useunits-\textpadding*\useunits) {\captionfont \topcaption};
  205.  
  206. \clip [rounded corners=\inrounding] (\textpadding*\useunits,\cardheight*\useunits-\textpadding*\useunits-\toppadding*\useunits) rectangle coordinate (clipname) (\cardwidth*\useunits-\textpadding*\useunits,\cardheight*\useunits-\layerpicheight*\useunits);
  207. \node [text width=(\cardwidth-2*\textpadding)*\useunits, inner sep=0pt] (mainpicnode) at (clipname) {\includegraphics[width=\mainpicwid]{\mainpic}};
  208. \end{scope}
  209.  
  210. %%node bottom. commented out to make space for skills
  211. %\node[text width=(\cardwidth-2*\textpadding)*\useunits, minimum height=(\cardheight-\layerpicheight-2*\textpadding)*1cm,below right,inner sep=0pt,draw=blue,fill=\filltext,rounded corners=\inrounding,fill opacity=0.8] (textunder) at (\textpadding*\useunits,\cardheight*\useunits-\layerpicheight*\useunits-\textpadding*\useunits) {};
  212.  
  213. %added code
  214.  
  215. %\begin{pgfonlayer}{fore}
  216.  
  217. \newcommand\statheight{(\cardheight-\layerpicheight-2*\textpadding)*0.65*\useunits}
  218.  
  219. \begin{scope}
  220. \node [text width=(\cardwidth-2*\textpadding)*\useunits,anchor=north west, minimum height=\statheight*0.25,below right,inner sep=0pt,draw=\drawtext,fill=\filltext,rounded corners=\strounding,fill opacity=0.8,shade, top color=yellow!60, bottom color = yellow!2] (firsti) at (\textpadding*\useunits,\cardheight*\useunits-\layerpicheight*\useunits-\textpadding*\useunits) {};
  221. \clip [rounded corners=\strounding] ($(firsti.south west)$) rectangle ($(firsti.north east)$);
  222. \path let \p1=(firsti.north west) in node [anchor=north west, minimum height=\statheight*0.25,below right,inner sep=0pt] (firstimg) at (\p1) {\includegraphics[width=\inimgwid\useunits]{\cimgsa}};
  223. \path let \p1=(firsti.north west) in node [text width=(\cardwidth-2*\textpadding)*\useunits-\inimgwid\useunits,anchor=north west, minimum height=\statheight*0.25,below right,inner sep=0pt] (firstsa) at ([shift=({\textpadding*\useunits+\inimgwid*\useunits,0cm})]\p1) {\ctextsa};
  224. \end{scope}
  225. \node [text width=(\cardwidth-2*\textpadding)*\useunits,anchor=north west, minimum height=\statheight*0.25,below right,inner sep=0pt,draw=\drawtext,rounded corners=\strounding] (firstir) at (\textpadding*\useunits,\cardheight*\useunits-\layerpicheight*\useunits-\textpadding*\useunits) {};
  226.  
  227. \begin{scope}
  228. \node [text width=(\cardwidth-2*\textpadding)*\useunits,anchor=north west, minimum height=\statheight*0.25,below=\textpadding*\useunits,inner sep=0pt,draw=\drawtext,fill=\filltext,rounded corners=\strounding,fill opacity=0.8] (secondi) at (firsti) {};
  229. \clip [rounded corners=\strounding]  ($(secondi.south west)$) rectangle ($(secondi.north east)$);
  230. \path let \p1=(secondi.north west) in node [anchor=north west, minimum height=\statheight*0.25,below right,inner sep=0pt] (secondimg) at (\p1) {\includegraphics[width=\inimgwid\useunits]{\cimgsb}};
  231. \path let \p1=(secondi.north west) in node [text width=(\cardwidth-2*\textpadding)*\useunits-\inimgwid\useunits,anchor=north west, minimum height=\statheight*0.25,below right,inner sep=0pt] (secondsb) at ([shift=({\textpadding*\useunits+\inimgwid*\useunits,0cm})]\p1) {\ctextsb};
  232. \end{scope}
  233. \node [text width=(\cardwidth-2*\textpadding)*\useunits,anchor=north west, minimum height=\statheight*0.25,below=\textpadding*\useunits,inner sep=0pt,draw=\drawtext,rounded corners=\strounding] (secondir) at (firsti) {};
  234.  
  235. \begin{scope}
  236. \node [text width=(\cardwidth-2*\textpadding)*\useunits,anchor=north west, minimum height=\statheight*0.25,below=\textpadding*\useunits,inner sep=0pt,draw=\drawtext,fill=\filltext,rounded corners=\strounding,fill opacity=0.8] (thirdi) at (secondi) {};
  237. \clip [rounded corners=\strounding] ($(thirdi.south west)$) rectangle ($(thirdi.north east)$);
  238. \path let \p1=(thirdi.north west) in node [anchor=north west, minimum height=\statheight*0.25,below right,inner sep=0pt] (thirdimg) at (\p1) {\includegraphics[width=\inimgwid\useunits]{\cimgsc}};
  239. \path let \p1=(thirdi.north west) in node [text width=(\cardwidth-2*\textpadding)*\useunits-\inimgwid\useunits,anchor=north west, minimum height=\statheight*0.25,below right,inner sep=0pt] (thirdsc) at ([shift=({\textpadding*\useunits+\inimgwid*\useunits,0cm})]\p1) {\ctextsc};
  240. \end{scope}
  241. \node [text width=(\cardwidth-2*\textpadding)*\useunits,anchor=north west, minimum height=\statheight*0.25,below=\textpadding*\useunits,inner sep=0pt,draw=\drawtext,rounded corners=\strounding] (thirdir) at (secondi) {};
  242.  
  243. \begin{scope}
  244. \node [text width=(\cardwidth-2*\textpadding)*\useunits,anchor=north west, minimum height=\statheight*0.25,below=\textpadding*\useunits,inner sep=0pt,draw=\drawtext,fill=\filltext,rounded corners=\strounding,fill opacity=0.8] (fourthi) at (thirdi) {};
  245. \clip [rounded corners=\strounding] ($(fourthi.south west)$) rectangle ($(fourthi.north east)$);
  246. \path let \p1=(fourthi.north west) in node [anchor=north west, minimum height=\statheight*0.25,below right,inner sep=0pt] (fourthimg) at (\p1) {\includegraphics[width=\inimgwid\useunits]{\cimgsd}};
  247. \path let \p1=(fourthi.north west) in node [text width=(\cardwidth-2*\textpadding)*\useunits-\inimgwid\useunits,anchor=north west, minimum height=\statheight*0.25,below right,inner sep=0pt] (fourthsd) at ([shift=({\textpadding*\useunits+\inimgwid*\useunits,0cm})]\p1) {\ctextsd};
  248. \end{scope}
  249. \node [text width=(\cardwidth-2*\textpadding)*\useunits,anchor=north west, minimum height=\statheight*0.25,below=\textpadding*\useunits,inner sep=0pt,draw=\drawtext,rounded corners=\strounding] (fourthir) at (thirdi) {};
  250.  
  251. %deb: shadow
  252. \begin{pgfonlayer}{back}
  253. \begin{scope}[]
  254. %\clip [rounded corners=\strounding] ($(firsti.south west)$) rectangle ($(firsti.north east)$);
  255. \newcommand\widuse{0.2};
  256. \newcommand\inraduse{0.3};
  257. \newcommand\coluse{gray}
  258.            \foreach \x [evaluate=\x] in {1,...,10}%numsteps
  259.             {   \pgfmathsetmacro{\mycolor}{8+(50-8)/10*(\x-1)}%maxcolor,mincolor
  260.                 %\pgfmathsetmacro{\mycorners}{\widuse+ \inraduse -(\x-1)*\widuse/(10-1)}%width,inner radius,steps
  261.                 \pgfmathsetmacro{\mycorners}{\widuse+ \inraduse -(\x-1)*\widuse/(10-1)}%width,inner radius,steps
  262.                 \pgfmathsetmacro{\mycornersround}{\inraduse}%width,inner radius,steps
  263.                                 \filldraw[rounded corners=\mycornersround cm,\coluse!\mycolor, opacity=0.1] ($(firsti.south west)+(\mycorners-\inraduse,-\mycorners+\inraduse)$) rectangle ($(firsti.north east)+(\mycorners-\inraduse,-\mycorners+\inraduse)$);
  264.             }
  265. \end{scope}
  266. \begin{scope}[]
  267. %\clip [rounded corners=\strounding] ($(secondi.south west)$) rectangle ($(secondi.north east)$);
  268. \newcommand\widuse{0.2};
  269. \newcommand\inraduse{0.3};
  270. \newcommand\coluse{gray}
  271.            \foreach \x [evaluate=\x] in {1,...,10}%numsteps
  272.             {   \pgfmathsetmacro{\mycolor}{8+(50-8)/10*(\x-1)}%maxcolor,mincolor
  273.                 %\pgfmathsetmacro{\mycorners}{\widuse+ \inraduse -(\x-1)*\widuse/(10-1)}%width,inner radius,steps
  274.                 \pgfmathsetmacro{\mycorners}{\widuse+ \inraduse -(\x-1)*\widuse/(10-1)}%width,inner radius,steps
  275.                 \pgfmathsetmacro{\mycornersround}{\inraduse}%width,inner radius,steps
  276.                                 \filldraw[rounded corners=\mycornersround cm,\coluse!\mycolor, opacity=0.1] ($(secondi.south west)+(\mycorners-\inraduse,-\mycorners+\inraduse)$) rectangle ($(secondi.north east)+(\mycorners-\inraduse,-\mycorners+\inraduse)$);
  277.             }
  278. \end{scope}
  279. \begin{scope}[]
  280. %\clip [rounded corners=\strounding] ($(thirdi.south west)$) rectangle ($(thirdi.north east)$);
  281. \newcommand\widuse{0.2};
  282. \newcommand\inraduse{0.3};
  283. \newcommand\coluse{gray}
  284.            \foreach \x [evaluate=\x] in {1,...,10}%numsteps
  285.             {   \pgfmathsetmacro{\mycolor}{8+(50-8)/10*(\x-1)}%maxcolor,mincolor
  286.                 %\pgfmathsetmacro{\mycorners}{\widuse+ \inraduse -(\x-1)*\widuse/(10-1)}%width,inner radius,steps
  287.                 \pgfmathsetmacro{\mycorners}{\widuse+ \inraduse -(\x-1)*\widuse/(10-1)}%width,inner radius,steps
  288.                 \pgfmathsetmacro{\mycornersround}{\inraduse}%width,inner radius,steps
  289.                                 \filldraw[rounded corners=\mycornersround cm,\coluse!\mycolor, opacity=0.1] ($(thirdi.south west)+(\mycorners-\inraduse,-\mycorners+\inraduse)$) rectangle ($(thirdi.north east)+(\mycorners-\inraduse,-\mycorners+\inraduse)$);
  290.             }
  291. \end{scope}
  292. \begin{scope}[]
  293. %\clip [rounded corners=\strounding] ($(fourthi.south west)$) rectangle ($(fourthi.north east)$);
  294. \newcommand\widuse{0.2};
  295. \newcommand\inraduse{0.3};
  296. \newcommand\coluse{gray}
  297.            \foreach \x [evaluate=\x] in {1,...,10}%numsteps
  298.             {   \pgfmathsetmacro{\mycolor}{8+(50-8)/10*(\x-1)}%maxcolor,mincolor
  299.                 %\pgfmathsetmacro{\mycorners}{\widuse+ \inraduse -(\x-1)*\widuse/(10-1)}%width,inner radius,steps
  300.                 \pgfmathsetmacro{\mycorners}{\widuse+ \inraduse -(\x-1)*\widuse/(10-1)}%width,inner radius,steps
  301.                 \pgfmathsetmacro{\mycornersround}{\inraduse}%width,inner radius,steps
  302.                                 \filldraw[rounded corners=\mycornersround cm,\coluse!\mycolor, opacity=0.1] ($(fourthi.south west)+(\mycorners-\inraduse,-\mycorners+\inraduse)$) rectangle ($(fourthi.north east)+(\mycorners-\inraduse,-\mycorners+\inraduse)$);
  303.             }
  304. \end{scope}
  305. \end{pgfonlayer}
  306. %end: shadow
  307.  
  308. %text commented variant with box
  309. %\node [text width=(\cardwidth-2*\textpadding)*\useunits,anchor=north west, minimum height=\cardheight*\useunits-\layerpicheight*\useunits-3*\textpadding*\useunits-\statheight,below=\textpadding*\useunits,inner sep=\textinnersep,draw=\drawtext,fill=\filltext,rounded corners=\inrounding,fill opacity=0.8] (fifthi) at (fourthi) {\textinner};
  310. %text variant with text over background
  311. \node [text width=(\cardwidth-2*\textpadding)*\useunits,anchor=north west,below=\textpadding*\useunits,inner sep=\textinnersep,draw=none,fill=none] (fifthi) at (fourthi) {\flavorfont \textinner};
  312. \node [anchor=east,above left,inner sep=\textinnersep,draw=none,fill=none] (teamcap) at (\cardwidth*\useunits-\textpadding*\useunits,\textpadding*\useunits) {\teamfont \teamtext};
  313.  
  314. %\end{pgfonlayer}
  315.  
  316. %end added code
  317.  
  318. %%bounding box: whole card
  319. %\draw [brown] (current bounding box.south west) rectangle (current bounding box.north east);
  320. \end{tikzpicture}%\expandafter\topcaption \expandafter\textinner stats;\\
  321. %\edef\writenowtoc{\expandafter\strip@prefix\meaning\topcaption}%
  322. %\addtocontents{listofcards}{\writenowtoc}%
  323. \edef\writenowtoctopcaption{\expandafter\strip@prefix\meaning\topcaption}%
  324. \edef\wra{\expandafter\strip@prefix\meaning\ctextsa}%
  325. \edef\wrb{\expandafter\strip@prefix\meaning\ctextsb}%
  326. \edef\wrc{\expandafter\strip@prefix\meaning\ctextsc}%
  327. \edef\wrd{\expandafter\strip@prefix\meaning\ctextsd}%
  328. \edef\wrt{\expandafter\strip@prefix\meaning\teamtext}%
  329. \addtocontents{listofcards}{\writenowtoctopcaption~-~\wrt:~\wra~\wrb~\wrc~\wrd~-~statcard;\\}%
  330. \endgroup%
  331. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top