1

I'm using the flashcards package to create a deck of cards. For home printing, I usually use the avery paper which works great (printed 10 to a page). I also want to print them professionally and need to create a PDF with one card per page, but I don't know how to configure the paper so that it works. I've got it almost working, except the cards show up portrait instead of landscape.

Here's a simplified example that illustrates the problem:

\documentclass[cards, backs]{flashcards}
\geometry{landscape, paperwidth=3.25in,paperheight=2in,margin=0pt}

\begin{document}

\begin{flashcard}{}
   Guten morgen.
\end{flashcard}

\begin{flashcard}{}
   Guten abend.
\end{flashcard}

\end{document}

In the same directory, I created a "cards.cfg" file to specific the paper format:

\NeedsTeXFormat{LaTeX2e}[1996/12/01]
\ProvidesFile{cards.cfg}
\newcommand{\cardpapermode}{landscape}
\newcommand{\cardpaper}{letterpaper}
\newcommand{\cardrows}{1}
\newcommand{\cardcolumns}{1}
\setlength{\cardheight}{2.0in}
\setlength{\cardwidth}{3.5in}
\setlength{\topoffset}{0.0in}
\setlength{\oddoffset}{0.0in}
\setlength{\evenoffset}{0.0in}

\endinput

enter image description here

2

Set the paper first in portrait mode. It will then be switched internally:

\geometry{paperwidth=2in,paperheight=3.25in,margin=0pt}

enter image description here

\RequirePackage{filecontents}
\begin{filecontents*}{cards.cfg}
\NeedsTeXFormat{LaTeX2e}[1996/12/01]
\ProvidesFile{cards.cfg}
\newcommand{\cardpapermode}{landscape}
\newcommand{\cardpaper}{letterpaper}
\newcommand{\cardrows}{1}
\newcommand{\cardcolumns}{1}
\setlength{\cardheight}{2.0in}
\setlength{\cardwidth}{3.5in}
\setlength{\topoffset}{0.0in}
\setlength{\oddoffset}{0.0in}
\setlength{\evenoffset}{0.0in}

\endinput
\end{filecontents*}

\documentclass[cards,backs]{flashcards}
\geometry{paperwidth=2in,paperheight=3.25in,margin=0pt}
\begin{document}

    \begin{flashcard}{}
        Guten morgen.
    \end{flashcard}

    \begin{flashcard}{}
        Guten abend.
    \end{flashcard}

\end{document}
  • The orientation works for me with this change. Do you know why there are extra blank pages? – Ultrasaurus Nov 28 '15 at 11:52
  • 1
    If I set the card height to be slightly smaller (1.9in) in card.cfg, then the blank pages go away -- not sure why... there must be some kind of padding somewhere. – Ultrasaurus Nov 28 '15 at 12:05
  • I suppose a trailing space in the code of flashcard. It is safe to use it like you did. – user2478 Nov 28 '15 at 12:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.