Latex macros to create "Happy Families" cards.
To create cards for a family with 3 members, each with a picture in pics/
, use:
\documentclass[preview,border=4mm,multi=true]{standalone}
\usepackage{lmodern}
\usepackage{xcolor}
\usepackage{cardfamily}
\standaloneenv{tikzpicture}
\begin{document}
\createfamily{Family}{magenta,80,}
{
{Member1,picture1.png},
{Member2,picture2.png},
{Member3,picture3.png}
}
\playingcardfamily{Family}
\end{document}
The code above would result in 3 cards looking like this:
The syntax for creating a family is:
\createfamily{Familyname}{color,dingsymbolnumber,\fontsize}
{
{Member name, picture_name},
{Another name, picture_another_name},
...
{Last name, picture_last_name}
}
dingsymbolnumber
is a number from the pifont reference table.color
is a color likeblue
,green
etc or anxcolor
.\fontsize
scales the family title and can be\tiny
,\normalsize
etc. Left out by default.Member name
is the name of a member in the family.picture_name
is the name of the corresponding picture inpic/
.
The macros uses expl3
syntax and the following packages:
The following tex.stackexchange.com posts were very useful: