Print

Print


On 06/03/2011 12:50, Arno Trautmann wrote:
> Ok, to go into detail: I wrote a class for typesetting flashcards to
> prepare for exams. The user writes something like
> 
> \card
> question1
> 
> answer1
> 
> etc. The blank lines are just to minimize writing effort. The questions
> are then set on the front side of a paper, the answers on the back side.
> Now, question and answer have to fit together, so I have to store
> content in boxes and putting them in the correct order onto a grid on
> both sides of a page.
> Using LaTeX2ε, I stored the content in macros with names given by a
> counter (question@page) that is raised for every question on one page:
> 
> \expandafter\def\csname answer@\thequestion@page \endcsname{#3}
> 
> and placed them using minipages and reversed textdirection (rtl) for the
> answers. That was not very robust and the code looks ugly, so I am
> looking for a more stable way and coffins seem to be helpful here.

Seems like a good enough reason for "c" variants at a code level to me.
Expect them to pop up later today or tomorrow.
-- 
Joseph Wright