Document Classesflashcards | Paper Size Configuration

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
jarevalo
Posts: 1
Joined: Tue Jul 24, 2012 9:47 am

flashcards | Paper Size Configuration

Post by jarevalo »

Hey there,

I am using the flashcards package and I am having a hard time in configuring the paper size (Avery c2318 - the equivalent in Europe to Avery 5388) with the parameters listed in the manual (cardpaper, cardpapermode, cardrows, cardcolumns, cardheight, cardwidth, topoffset, oddoffset and evenoffset).

The thing is that I am using an A4 format(landscape orientation) in which the cards are separated by a 4mm (0.157in) column and a 5mm (0.197in) row; something that is not foreseen in the paper configuration parameters.

Can anyone please give me a hint on how to take into account the empty column and row?

The layout of the paper I am using can be found at:
http://www.avery.fr/vgnfiles//fr/A-0777-01.doc

I would be grateful for any help you could provide.

Cheers

Declare Lengths

Code: Select all

\newlength{\cardheight}
\newlength{\cardwidth}
\newlength{\topoffset}
\newlength{\oddoffset}
\newlength{\evenoffset}
\newlength{\oddevenshift}
%
\newlength{\cardmargin}
\newlength{\cardinnerheight}
\newlength{\cardinnerwidth}
Setup Paper

Code: Select all

\setlength{\oddevenshift}{\oddoffset}
\addtolength{\oddevenshift}{-\evenoffset}
\addtolength{\oddoffset}{-\oddevenshift}
\addtolength{\evenoffset}{\oddevenshift}
\geometry{\cardpapermode,
\cardpaper,
top=\topoffset,
113 left=\oddoffset,
114 right=\evenoffset,
115 bottom=0.0in,
116 noheadfoot}
117 \ifthenelse{\boolean{flashcards@dvips}}{\geometry{dvips}}{}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply