what's the easiest way to do this? obviously it's LaTeX
\newcommand{\card}[1]{
\SetKeys[cg]{#1}
\genericlabel{%
\begin{tabularx}{40mm}{p{35mm} p{5mm}}
\textbf{\@cg@name} & \@cg@cost\\
\@cg@subname & \@cg@faith \\
\hline
{\bf \@cg@type} & \\
{\it \@cg@subtype} & \\
\@cg@element & \\
\hline
\multicolumn{2}{p{40mm}}{\small \@cg@effect} \\
\multicolumn{2}{r}{\bf \@cg@hpp} \\
\end{tabularx}
}
}made with @nex3's syntax highlighter
is my system not elegant
\begin{document}
\csvreader[head to column names]{cg-texquote.csv}{}{%
\card{
name = \CardName,
subname = \Subtitle,
type = \Type,
subtype = \Subtype,
element = \Element,
cost = \Cost,
faith = \Faith,
hpp = \Power/\HP,
effect = \Effect
}
}
\end{document}
made with @nex3's syntax highlighter
it needs to be preprocessed with python because csvsimple inexplicably requires quoting with {} instead of " but what can you do
