[latexrefman-discuss] \makelabels

Vincent Belaïche vincent.belaiche at domain.hid
Thu Oct 8 19:39:44 CEST 2015


Hello Jim,

Please have a look at node \makelabels in the French version, IMHO it is
more complete & more exact than that of the English version. Let me know
what you think about it.

   Vincent.

PS: below automatic translation to English done by www.reverso.net +
some edits:

24.6 '\makelabels \makelabels ' ==================

Synopsis:

\makelabels

Create a sheet of labels of addresses from the addresses of the
addressees, one for every letter. This sheet will have gone out
before letters, with in the idea to copy it to a blank
sheet of self-adhesive labels(tax stickers). This command
is to be put in the introduction.

You can personalize labels by redefining three commands
'\startlabels ', '\mlabel ' and '\returnaddress
\returnaddress ' in the introduction. These commands are not to
be directly called by the user, it is the class 'to letter ' that calls
them. The command '\startlabels ' makes up
the page on which labels are printed in terms of width, height, and
number of columns, etc. The command '\mlabel{SENDER ADDRESS} {RECIPIENT
ADDRESS} ' is called for every letter of the document with two
arguments:

· The first one, SENDER ADDRESS, are the common(current) contents of the
  macro '\returnaddress '
· The second, RECIPIENT ADDRESS, is the address of the addressee such as
  passed in argument to the environment ' letter '.

The definition by default of '\mlabel ' ignores the first
argument, that is if you place only one '\makelabels ' in
the preamble, the sheet of labels will contain labels only for the
addressees.

If you wish to print a label of address sender and of address addressee
for every letter, you have to make two things:

1. The first thing is to redefine '\mlabel ' to make two Labels
   instead of one, you can for it put what follows in the introduction:

\newcommand*\originalMlabel {} \let\originalMlabel\mlabel \def\mlabel#1#2
{\originalMlabel {} {#1} \originalMlabel {} {#2}}

This is not however enough, because the first argument is by the
definition by default of '\returnaddress ' empty.

2. The second thing is to redefine '\returnaddress ' to contain
  the address of the sender, you can make it by placing in the
  preamble:

\renewcommand*\returnaddress {\protect\fromname \\\ protect\fromaddress}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/latexrefman/attachments/20151008/0aa50509/attachment.html>


More information about the latexrefman mailing list