| 1 |
# Letter Class Option `makelabels` |
| 2 |
|
| 3 |
---------------------------------------------------------------------------- |
| 4 |
|
| 5 |
Copyright (c) Markus Kohm, 2009-2021 |
| 6 |
Licence: LPPL 1.3c |
| 7 |
Release: 2021/08/14 v1.0 |
| 8 |
|
| 9 |
---------------------------------------------------------------------------- |
| 10 |
|
| 11 |
Requires: KOMA-Script |
| 12 |
|
| 13 |
---------------------------------------------------------------------------- |
| 14 |
|
| 15 |
## Summary |
| 16 |
|
| 17 |
The standard letter class `letter` has a label feature. You can activate it |
| 18 |
using `\makelabels`. While in Germany window envelopes are common, printing |
| 19 |
labels is not common and `scrlttr2` never supported label printing. At the |
| 20 |
[German KOMA-Script book](https://komascript.de/komascriptbuch) I've shown |
| 21 |
how you can print labels simply by printing a letter with special pseudo |
| 22 |
value settings. Doing so you can use several configuration features. Using |
| 23 |
`makelabels.lco` in opposite does only implement a `\makelabels` feature |
| 24 |
similar to the standard letter classes. Currently there are no |
| 25 |
configuration features at `makelabels.lco`. But you may use package |
| 26 |
[`envlab`](https://www.ctan.org/pkg/envlab) from CTAN after loading |
| 27 |
`makelabels.lco` to get various configuration features. |
| 28 |
|
| 29 |
## Installation |
| 30 |
|
| 31 |
It is recommended to use the package manager of your TeX distribution to |
| 32 |
install `makelabels.lco`. But if this is not possible of if you are a |
| 33 |
distribution you can either use `l3build` and [sources from the git |
| 34 |
repository](https://github.com/komascript/makelabels) or a completely manual |
| 35 |
installation using a basic source file distribution. |
| 36 |
|
| 37 |
### Manual installation using `l3build` and the git sources |
| 38 |
|
| 39 |
First of all copy or clone the sources of the current release or the developer |
| 40 |
code from [github](https://github.com/komascript/makelabels) and use |
| 41 |
|
| 42 |
l3build unpack |
| 43 |
|
| 44 |
to unpack the package. The unpacked files then can be found be in |
| 45 |
`build/unpacked`. You can use |
| 46 |
|
| 47 |
l3build doc |
| 48 |
|
| 49 |
to generate the manual and the example PDFs. |
| 50 |
|
| 51 |
l3build install |
| 52 |
|
| 53 |
to install the package locally. But this will neither install the manual nor |
| 54 |
nor the example files. Currently there are two example files, generated by |
| 55 |
`l3build`: |
| 56 |
|
| 57 |
- `makelabels-example.tex` is the source of a very simple example using |
| 58 |
`scrletter` class and `makelabels.lco` only. The result can be found in |
| 59 |
`makelabels-example.pdf` |
| 60 |
- `makelabels-envlab-example.tex` is the source of an example that shows |
| 61 |
how to use package [`envlab`](https://www.ctan.org/pkg/envlab) in |
| 62 |
combination with `scrletter` class and `makelabels.lco` to have more |
| 63 |
versability. |
| 64 |
|
| 65 |
### Manual installation using a basic source distribution |
| 66 |
|
| 67 |
A basic source distribution consists of `makelabels.dtx` and `README.md` |
| 68 |
only. There may be additional manual and demo files like `makelabels.pdf`, |
| 69 |
`makelabels-example.pdf` or `makelabels-envlab-example.pdf`. |
| 70 |
|
| 71 |
If you have got such a basic source distribution, i.e., from CTAN, |
| 72 |
you first have to unpack the files using: |
| 73 |
|
| 74 |
tex makelabels.dtx |
| 75 |
|
| 76 |
Don't use `latex`, `pdflatex`, `lualatex` or `xelatex` instead of `tex`! |
| 77 |
The unpacking will produce `makelabels.lco`, `makelabels-example.tex` and |
| 78 |
`makelabels-envlab-example.tex`. |
| 79 |
|
| 80 |
If your source distribution does not contain the manual `makelabels.pdf` and |
| 81 |
the example files `makelabals-example.pdf` and `makelabels-envlab-example.pdf` |
| 82 |
you can generate these (after the unpacking previously explained) using: |
| 83 |
|
| 84 |
pdflatex makelabels-example.tex |
| 85 |
pdflatex makelabels-example.tex |
| 86 |
pdflatex makelabels-envlab-example.tex |
| 87 |
pdflatex makelabale-envlab-example.tex |
| 88 |
pdflatex makelabels.dtx |
| 89 |
mkindex makelabels |
| 90 |
pdflatex makelabels.dtx |
| 91 |
mkindex makelabels |
| 92 |
pdflatex makelabels.dtx |
| 93 |
|
| 94 |
To install all the runtime files, make a folder `tex/latex/makelabels` in you |
| 95 |
private or local TEXMF tree if this folder does not yet exists. Then copy |
| 96 |
`makelabels.lco` to this folder. |
| 97 |
|
| 98 |
To install the manual and the demo files, make a folder `doc/latex/makelabels` |
| 99 |
in the same TEXMF tree you've uses for the installation of |
| 100 |
`makelabels.lco`, if the folder does not yet exists. Then copy the demo files |
| 101 |
`makelabels-example.tex`, `makelabels-envlab-example.tex`, |
| 102 |
`makelabels-example.pdf`, `makelabels-envlab-example.pdf` and the manual |
| 103 |
`makelabels.pdf` to this folder. |
| 104 |
|
| 105 |
MiKTeX users have to additionally update the *Filename Database*. See the |
| 106 |
manual of the *MiKTeX console* for more information. TeX Live user usually do |
| 107 |
not need to run `texhash`, because the private and the personal TEXMF tree is |
| 108 |
usually searched completely. |
| 109 |
|
| 110 |
## Usage |
| 111 |
|
| 112 |
Like all other LCO files you can load `makelabels.lco` using |
| 113 |
`\LoadLetterOption{makelabels}`. For `scrlttr2` loading via optional |
| 114 |
argument of `\documentclass` also works, but is not recommended any longer. |
| 115 |
|
| 116 |
After loading the LCO file, you can add `\makelabels` into your document |
| 117 |
preamble to active the automatic generation of labels at the end of the |
| 118 |
document while reading the `*.aux`-file. |
| 119 |
|
| 120 |
Note: In oposite to other LCO files you must not load `mkalelabels.lco` |
| 121 |
after `\begin{document}`! |
| 122 |
|
| 123 |
See the manual for more information. |