I am making a guest list which I will print on a sticker sheet, cut them out, then stick them to envelopes. This means that each guest/guest group will have a bounding box drawn around it as a cutting guide. For the bounding box, I'm using the fancybox package and followed the examples in its documentation to create a fminipage environment to allow line breaks within a box.
I defined a \newcommand{\guest}[1]... which says:
\begin{fminipage}{\textwidth}
\center #1
\end{fminipage}
It's a success. I just type in:
\guest{Luke Skywalker}
\guest{Obi-Wan Kenobi}
\guest{Han Solo\\
Princess Leia}
Luke and Obi-Wan have their own boxes, then Han Solo and Princess Leia are placed in one box together.
Now, I want to use shortcuts. How do I implement it such that I just input the following:
Luke Skywalker
Obi-Wan Kenobi
{Han Solo
Princess Leia}
Looks like this could be a deep kernel hack, which I do not know anything about. But of course, anything that the community knows is always welcome.
centeris the name of an environment\begin{center}...\end{center}. I think you want\centeringhere. – TH. Nov 28 '10 at 11:49\centeractually worked somehow. But I'll take your advice :) – Kit Nov 28 '10 at 12:10\begin{foo}...\end{foo}expands to\begingroup \foo ... \endfoo \endgroupalong with some checking that\foois defined and that the argument of the\endmatches the corresponding argument to\begin. For example, try\begin{LaTeX}\end{LaTeX}. Note that\endLaTeXisn't defined and yet the code still works. This is due to\csname ... \endcsnametrickery. – TH. Nov 28 '10 at 12:15\crcommand in LaTeX?” You’ve changed it to something completely different, which, while possibly working in this particular case, suggests entirely different answers. – Konrad Rudolph Nov 28 '10 at 14:53