12.07.2015 Views

Printing Envelopes and Labels in LATEX2ε: EnvLab Package - Mirror

Printing Envelopes and Labels in LATEX2ε: EnvLab Package - Mirror

Printing Envelopes and Labels in LATEX2ε: EnvLab Package - Mirror

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

553 \newcomm<strong>and</strong>\@ChangeBigLabelStar[7]{%554 \if@filesw\immediate\write\@auxout{%555 \str<strong>in</strong>g\@SetBigLabel{#1}{#2}{#3}{#4}{#5}{#6}{#7}}%556 \fi}557 \newcomm<strong>and</strong>\@ChangeBigLabel[7]{%558 \if@filesw\immediate\write\@auxout{%559 \str<strong>in</strong>g\@SetBigLabel{#1}{#2}{#3}{#4}{#5}{#6}{#7}}560 \immediate\write\@auxout{\str<strong>in</strong>g\@startlabels}561 \fi}\@SetLabel We def<strong>in</strong>e this comm<strong>and</strong> as no-op at beg<strong>in</strong>n<strong>in</strong>g, <strong>and</strong> then redef<strong>in</strong>e it before read<strong>in</strong>g.aux file.562 \def\@SetBigLabel#1#2#3#4#5#6#7{}563 \AtEndDocument{\let\@SetBigLabel=\SetBigLabel}12 Reimplementation of the \open<strong>in</strong>g comm<strong>and</strong>\reSome people like to put below the address <strong>in</strong>formation likeRe: our recent talkA way to do this is to <strong>in</strong>clude it <strong>in</strong> the address like this:\beg<strong>in</strong>{letter}{%Dr.~Aust<strong>in</strong> Tankel\\Some University\\Anytown, Pa 12345\\[1ex]Re: Our recent talk}\open<strong>in</strong>g{Dear Aust<strong>in</strong>:}However, this additional <strong>in</strong>fo will be put <strong>in</strong> the mail<strong>in</strong>g label, which is wrong. Herewe describe a macro that works like this:\beg<strong>in</strong>{letter}{%Dr.~Aust<strong>in</strong> Tankel\\Some University\\Anytown, Pa 12345}\re{Our recent talk}\open<strong>in</strong>g{Dear Aust<strong>in</strong>:}Now, the implementation. First, lets us check whether the option re is chosen(otherwise we don’t bother to redef<strong>in</strong>e the comm<strong>and</strong>s):564 \if@EL@redef<strong>in</strong>e@open<strong>in</strong>g\re\recontententsThe comm<strong>and</strong> \re just def<strong>in</strong>es \recontents. Also, we <strong>in</strong>itialize \recontents tobe <strong>in</strong>itially empty565 \newcomm<strong>and</strong>*{\re}[1]{\def\recontents{#1}}%22

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!