| 1 |
The multilang Package |
| 2 |
======================= |
| 3 |
|
| 4 |
Copyright (C) 2016-2018 Richard Grewe |
| 5 |
|
| 6 |
Released under the [LaTeX Project Public License](http://www.latex-project.org/lppl/) version 1.2 or later |
| 7 |
|
| 8 |
## Abstract |
| 9 |
|
| 10 |
Maintaining a LaTeX document with translations for multiple languages |
| 11 |
can be cumbersome and error-prone. |
| 12 |
The `multilang` package provides a set of macros for defining macros and |
| 13 |
environments as wrappers around existing macros and environments. |
| 14 |
These wrappers allow one to clearly specify multiple translations for the |
| 15 |
arguments to the wrapped macros and environments while only the |
| 16 |
translation of the document's language is actually shown. |
| 17 |
Choosing a translation then is as simple as choosing the document's |
| 18 |
language via `babel` or `polyglossia`. |
| 19 |
|
| 20 |
## Availability |
| 21 |
|
| 22 |
The `multilang` package is on [CTAN](http://www.ctan.org/pkg/multilang), |
| 23 |
where you can also find the [documentation](http://mirrors.ctan.org/macros/latex/contrib/multilang/multilang.pdf), |
| 24 |
as well as on [github](https://github.com/Ri-Ga/multilang). |
| 25 |
|
| 26 |
## Manual Installation |
| 27 |
|
| 28 |
The `multilang` package comes with (at least) the following files |
| 29 |
* multilang.ins |
| 30 |
* multilang.dtx |
| 31 |
* README.md |
| 32 |
|
| 33 |
and possibly also with |
| 34 |
* Makefile |
| 35 |
* multilang.pdf (generated from multilang.dtx) |
| 36 |
* multilang.sty (generated from multilang.dtx) |
| 37 |
|
| 38 |
To install the `multilang` package, you additionally need |
| 39 |
* docstrip.tex |
| 40 |
|
| 41 |
To build the package (`multilang.sty`), run one of the following |
| 42 |
``` |
| 43 |
latex multilang.ins |
| 44 |
make package (needs Makefile) |
| 45 |
``` |
| 46 |
|
| 47 |
Put the resulting `multilang.sty` somewhere where LaTeX can find it. |
| 48 |
Read the documentation of your LaTeX system to find out where this |
| 49 |
might be. |
| 50 |
|
| 51 |
## Building Documentation |
| 52 |
|
| 53 |
To build the documentation of the `multilang` package, you additionally |
| 54 |
need the following classes and packages (including their dependencies) |
| 55 |
* ltxdoc |
| 56 |
* babel |
| 57 |
* cleveref |
| 58 |
* csquotes |
| 59 |
* datetime2 |
| 60 |
* enumitem |
| 61 |
* environ |
| 62 |
* etoolbox |
| 63 |
* hypdoc |
| 64 |
* idxlayout |
| 65 |
* pbox |
| 66 |
* pgfkeys |
| 67 |
* pgfopts |
| 68 |
* sectionbox |
| 69 |
* showexpl |
| 70 |
* translations |
| 71 |
* xcolor |
| 72 |
* xspace |
| 73 |
|
| 74 |
as well as |
| 75 |
* pdflatex |
| 76 |
|
| 77 |
To build the documentation (`multilang.pdf`), either run |
| 78 |
``` |
| 79 |
make docs |
| 80 |
``` |
| 81 |
or the following sequence of commands |
| 82 |
``` |
| 83 |
pdflatex multilang.dtx |
| 84 |
makeindex -s gind.ist -o multilang.ind multilang.idx |
| 85 |
makeindex -s gglo.ist -o multilang.gls multilang.glo |
| 86 |
pdflatex multilang.dtx |
| 87 |
pdflatex multilang.dtx |
| 88 |
``` |
| 89 |
|
| 90 |
Happy TeX'ing |