| 1 |
[en] |
| 2 |
LaTeX-package 'pauldoc' - some macros to facilate the creation of |
| 3 |
LaTeX package documentation in german language. |
| 4 |
|
| 5 |
Author: Paul Ebermann <[email protected]> |
| 6 |
License: LPPL 1.3b or later, author-maintained |
| 7 |
(see http://www.latex-project.org/lppl/). |
| 8 |
Version: v0.5 |
| 9 |
|
| 10 |
All Documentation (other than this file) is in german. |
| 11 |
|
| 12 |
The package comes as .dtx + .ins. |
| 13 |
Run "latex pauldoc.ins" to create the style file (and maybe put |
| 14 |
it to texmf/tex/latex/paul/, if your docstrip is configured |
| 15 |
accordingly), run (after that and maybe updating your TeX hash) |
| 16 |
"latex pauldoc.dtx" to create the documentation. |
| 17 |
|
| 18 |
|
| 19 |
Usage |
| 20 |
------- |
| 21 |
This package is used to create the documentation of the |
| 22 |
other packages from Paul Ebermann - so most times you |
| 23 |
won't need to use it directly. |
| 24 |
(And it is only of use for creating german language |
| 25 |
package documentation, so preferably read the german |
| 26 |
language documentation in pauldoc.pdf.) |
| 27 |
|
| 28 |
Use the package in your own .dtx-file in |
| 29 |
a the doc-driver-section: |
| 30 |
|
| 31 |
%<*driver> |
| 32 |
\nonstopmode |
| 33 |
\documentclass[draft,ngerman]{ltxdoc} |
| 34 |
\usepackage{pauldoc} |
| 35 |
\usepackage{myPackage} |
| 36 |
\begin{document} |
| 37 |
\DocInput{myPackage.dtx} |
| 38 |
\end{document} |
| 39 |
%</driver> |
| 40 |
|
| 41 |
In the documentation you then can use some |
| 42 |
additional commands: |
| 43 |
|
| 44 |
\pack{} - typesets package names. |
| 45 |
\includeLicense - includes \lpplfilename (by |
| 46 |
default 'lppl.tex') in the documentation, |
| 47 |
if the file exists. |
| 48 |
The catcodes are changed before and after |
| 49 |
so there should be no problems. |
| 50 |
|
| 51 |
\IfReferenceExists{refName}{yes}{no} - execute |
| 52 |
some LaTeX code conditionally, dependent |
| 53 |
of whether some label was defined (in |
| 54 |
the previous LaTeX run), so a \ref or |
| 55 |
\pageref would succeed. |
| 56 |
Useful for references to the implementation |
| 57 |
section or the licence, which may or may not |
| 58 |
be included. |
| 59 |
|
| 60 |
\cmd, \cs, \marg, \oarg, \parg - copied from ltxdoc, |
| 61 |
so they can also be used if doc (and pauldoc) |
| 62 |
are used with another document class. |
| 63 |
|
| 64 |
Additionally, 'pauldoc' loads babel with [ngerman], |
| 65 |
fontenc with [T1], inputenc with [latin1] (or [utf8], |
| 66 |
if you gave this as package parameter to pauldoc), |
| 67 |
defines "'" as verbatim character, enables indexing by |
| 68 |
codelines, recording of changes, and cross referencing. |
| 69 |
The change list title and the index prologue are |
| 70 |
translated to german, the index is typeset in two |
| 71 |
columns (instead of three). |
| 72 |
|
| 73 |
---------------- |
| 74 |
[de] |
| 75 |
LaTeX-Paket 'pauldoc' - Einige Makros, um LaTeX-Pakete |
| 76 |
besser (auf deutsch) dokumentieren zu können. |
| 77 |
|
| 78 |
Autor: Paul Ebermann ([email protected]). |
| 79 |
Lizenz: LPPL 1.3b oder später, mit Maintenance-Status |
| 80 |
"author-maintained". Siehe http://www.latex-project.org/lppl/. |
| 81 |
|
| 82 |
Geschrieben für den eigenen Gebrauch |
| 83 |
(d.h. die Dokumentation der LaTeX-Pakete von |
| 84 |
Paul Ebermann), aber vielleicht ist es auch |
| 85 |
für andere von Nutzen. |
| 86 |
|
| 87 |
Das Paket kommt als .dtx + .ins. |
| 88 |
Mit "latex pauldoc.ins" wird die .sty-Datei erstellt (und |
| 89 |
eventuell gleich nach texmf/tex/latex/paul/ installiert, |
| 90 |
wenn docstrip entsprechend eingerichtet ist), mit |
| 91 |
"latex pauldoc.dtx" kann (danach und eventuell nach einer |
| 92 |
Aktualisierung der TeX-Dateidatenbank) die Dokumentation neu |
| 93 |
erstellt werden. |
| 94 |
|
| 95 |
Zur Verwendung siehe pauldoc.pdf. |
| 96 |
|
| 97 |
---------------- |
| 98 |
[eo-h] |
| 99 |
LaTeX-pakaĵo 'pauldoc' - Kelkaj iloj por helpi la |
| 100 |
dokumentadon de LaTeX-pakaĵoj en la germana lingvo. |
| 101 |
|
| 102 |
Aŭtoro: Paŭlo Ebermann ([email protected]). |
| 103 |
Licenzo: LPPL 1.3, 'author-maintained' |
| 104 |
(-> http://www.latex-project.org/lppl/). |
| 105 |
|
| 106 |
Kreitaj por propra uzo, sed eble iom de ĝi ankaŭ |
| 107 |
uzeblas por aliaj. |
| 108 |
|
| 109 |
La dokumentaro (escepte tiu ĉi dosiero) estas nur en la germana |
| 110 |
lingvo. |
| 111 |
|
| 112 |
La pakaĵo venas en .dtx + .ins. |
| 113 |
Voku "latex pauldoc.ins" por krei la .sty-dosieron (kaj |
| 114 |
eble meti ĝin al texmf/tex/latex/paul/, se via docstrip estis |
| 115 |
konfigurita laŭe), voku "latex pauldoc.dtx" por rekrei |
| 116 |
la dokumentaron. |
| 117 |
|
| 118 |
Uzado |
| 119 |
------- |
| 120 |
La pakaĵo estas uzata por krei la dokumentaĵon por |
| 121 |
la aliaj pakaĵoj de Paŭlo Ebermann, do kutime vi ne |
| 122 |
devos uzi ĝin rekte. |
| 123 |
(Kaj ĝi nur taŭgas por dokumenti germanlingve |
| 124 |
LaTeX-pakaĵojn, do prefere vi legu la germanlingvan |
| 125 |
dokumentaĵon en pauldoc.pdf.) |
| 126 |
|
| 127 |
|
| 128 |
Uzu la pakaĵon en via propra .dtx-dosiero en |
| 129 |
la sekcio, kiu enhavas la dokumentaĵ-kreilon: |
| 130 |
|
| 131 |
%<*driver> |
| 132 |
\nonstopmode |
| 133 |
\documentclass[draft,ngerman]{ltxdoc} |
| 134 |
\usepackage{pauldoc} |
| 135 |
\usepackage{miaPakajho} |
| 136 |
\begin{document} |
| 137 |
\DocInput{miaPakajho.dtx} |
| 138 |
\end{document} |
| 139 |
%</driver> |
| 140 |
|
| 141 |
En la dokumentaĵo vi nun povas uzu kelkajn |
| 142 |
aldonajn komandojn: |
| 143 |
|
| 144 |
\pack{} - belprintas pakaĵnomojn. |
| 145 |
\includeLicense - enmetas la dosieron \lpplfilename |
| 146 |
(kutime 'lppl.tex') en la dokumentajon, |
| 147 |
se la dosiero ekzistas. |
| 148 |
La kategoriaj kodoj estas ŝanĝitaj antaŭe |
| 149 |
kaj poste, por eviti problemojn. |
| 150 |
|
| 151 |
\IfReferenceExists{refNomo}{jes}{ne} - kondiĉa uzo |
| 152 |
de iu teksto, depende ĉu iu 'label' estis |
| 153 |
difinita (en la antaŭa voko de LaTeX), do |
| 154 |
ĉu nun uzo de \ref{refNomo} kaj \pageref{refNomo} |
| 155 |
estus sukcesaj. |
| 156 |
Tio estas taŭga por referencoj al la implementa |
| 157 |
parto aŭ al la licenco, kiuj povus aŭ ne povus |
| 158 |
enesti la dokumenton. |
| 159 |
|
| 160 |
\cmd, \cs, \marg, \oarg, \parg - tiuj komandoj estas |
| 161 |
simple kopiitaj el ltxdoc, por ke oni povu |
| 162 |
uzi ilin ankaŭ kun alia dokumentklaso kaj |
| 163 |
'doc' (kaj pauldoc'). |
| 164 |
|
| 165 |
Aldone, pauldoc vokas 'babel' kun opcio [ngerman], |
| 166 |
'fontenc' kun [T1], 'inputenc' kun [latin1] (aŭ |
| 167 |
[utf8], se vi donis [utf8] al pauldoc). |
| 168 |
Ĝi difinas "'" kiel "verbatim"-ŝaltilo, enŝaltas |
| 169 |
linnumerojn, indeksadon laŭ tiuj, kolektadon de |
| 170 |
ŝanĝlisto kaj krucreferencadon. |
| 171 |
Ĝi tradukas la titolon de la ŝanĝlisto kaj la |
| 172 |
prologon de la indekso al la germana. Krome la |
| 173 |
indekso uzas nur du kolumnojn (anstataŭ tri). |