mhelmer / playingcards

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

playingcards

Latex macros to create "Happy Families" cards.

Usage

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: Example cards

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 like blue, green etc or an xcolor.
  • \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 in pic/.

Dependencies

The macros uses expl3 syntax and the following packages:

References

The following tex.stackexchange.com posts were very useful:

About

License:GNU General Public License v2.0