\makelabels
. While in germany window envelopes are common, printing labels is not common and scrltt2 never supported label printing. At the `KOMA-Script Buch' I've shown how you may print labels simply by printing a letter with special pseudo value settings. Doing this you may use several configuration features. Using mlabel in opposite does only implement a \makelabels
feature like the standard classes. Currently there are no configuration features at mlabel.lco and only avery 8162 or compatible labels are supported. But you may use package envlab from CTAN after loading mlabel.lco to get various configuration features.
Usage:
Like all other Letter Class Options you may load mlabel.lco either via the optional parameter of \documentclass
or using \LoadLetterOption{mlabel}
. After this, you may use command \makelabels
as usual.
Following variables are used for producing the \mlabel
command at the aux-file:
backaddress
toname
and toaddress
While the \mlabel
will be written at \end{letter}
you may change these values somewhere before \end{letter}
—even after \closing{...}
—to get other label results.
\begin{document}
!Anhang | Größe |
---|---|
![]() | 48.68 KB |
Kommentare
This lco based on a discussion at the forum
User "redwood" asked for something like this at the forum. See also the thread there.
One small bug
If you look at your mlabeltestx
you will note that the \toname is typeset with a serif font
whereas the \toaddress is typeset (wrongly) in sans-serif
A workaround is to enclose the \toname\\\toaddress in extra brackets:
27c27
\begin{letter}{{Jane Doe\\2 Alpha Street\\Otherplace, NY 12346}}
Weird, yes?
No bug
envlab.sty defines
\@toaddressfont
using\def
(instead of e.g.\newcommand
or\providecommand
). So it does not recognize, that this macros was already defined by scrlttr2. It's the macro that scrlttr2 uses for the internal representation of the font you may set by\setkomafont{toaddress}
. If you don't want envlab's change of the font, you have to reset it to the wanted setting after loading envlab, e.g.With the extra braces everthing is the
toname
andtoaddress
is empty. So no address is set only a name. This is not a good solution, because if you want to use\usekomavar{toname}
without\usekomavar{toaddress}
(e.g. at the head of the second letter page) you'll get name + address instead of name only.Thanks
That did the trick.
I have a color printer, a Xerox Phaser 8860, for which the black ink sticks costs triple that of the color sticks, so it would be nice to print envelopes in color to save on black ink. So I found a way to change the color/formatting of the returnaddress by modifying your mlabel.lco:
Then one can re-define the returnaddress later in the lyx preamble,
e.g.:
\def\returnaddress{\it\color{blue}\fromaddress}
I don't see anyway to do something similar with the
mailtoaddress, other than to change envlab's \PrintAddress: