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.

7.2 Some useful counters for labels\c@LabelCountCol These counters store the position of the currently pr<strong>in</strong>ted label:\c@LabelCountRow 201 \newcounter{LabelCountCol}202 \newcounter{LabelCountRow}\c@LabelOffsetCol And these counters provide the offset for the label pr<strong>in</strong>ted on a partially used\c@LabelOffsetRow sheet:203 \newcounter{LabelOffsetCol}204 \newcounter{LabelOffsetRow}205 \setcounter{LabelOffsetCol}{1}206 \setcounter{LabelOffsetRow}{1}\FirstLabel The comm<strong>and</strong> \FirstLabel{〈Row〉}{〈Col〉} sets the counters LabelOffsetRow<strong>and</strong> LabelOffsetCol.\@toaddressfont\@fromaddressfont207 \DeclareRobustComm<strong>and</strong>{\FirstLabel}[2]{%208 \setcounter{LabelOffsetRow}{#1}%209 \setcounter{LabelOffsetCol}{#2}}7.3 FontsWe want the address to be pr<strong>in</strong>ted <strong>in</strong> 12pt sans serif font. The return addresswill be pr<strong>in</strong>ted <strong>in</strong> 10pt normal font.210 \def\@toaddressfont{%211 \ifcase\@ptsize \large\or\normalsize\or\small\fi%212 \sffamily\selectfont}213 \def\@fromaddressfont{%214 \ifcase\@ptsize \normalsize\or\small\or\footnotesize\fi%215 \normalfont}7.4 Return address\returnaddress The st<strong>and</strong>ard letter class def<strong>in</strong>es \returnaddress to be null. This is sensible ifwe are pr<strong>in</strong>t<strong>in</strong>g labels, but not so good if we are pr<strong>in</strong>t<strong>in</strong>g envelopes. Therefore letus redef<strong>in</strong>e it:216 \def\returnaddress{\fromaddress}7.5 Marg<strong>in</strong>s, page styles, etc.\startlabels The comm<strong>and</strong> \startlabels is the <strong>in</strong>ternal comm<strong>and</strong> that prepares the paper forlabels or envelopes, resets the <strong>in</strong>ternal counters <strong>and</strong> calls \@beg<strong>in</strong>labelshook.217 \def\startlabels{%218 \clearpage%219 \pagestyle{empty}%220 \setlength{\topmarg<strong>in</strong>}{-1.0<strong>in</strong>}%221 \if@envelope%222 \addtolength{\topmarg<strong>in</strong>}{\EnvelopeTopMarg<strong>in</strong>}%223 \else \addtolength{\topmarg<strong>in</strong>}{\LabelTopMarg<strong>in</strong>}%10

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

Saved successfully!

Ooh no, something went wrong!