Debian Codegraph @

texmf-dist/doc/latex/minipage-marginpar/README

raw
1 [en]
2 LaTeX-package 'minipage-marginpar' - allows \marginpars in minipages
3 and other boxes
4
5 Author: Paul Ebermann <[email protected]>
6 License: LPPL 1.3b or later, maintained
7 (see http://www.latex-project.org/lppl/).
8
9 All Documentation (other than this file) is in german.
10
11 The typesetting of the documentation needs 'pauldoc' (from the
12 same author).
13
14 The package comes as .dtx + .ins.
15 Run "latex minipage-marginpar.ins" to create the style file (and maybe put
16 it to texmf/tex/latex/paul/, if your docstrip is configured
17 accordingly), run (after that and maybe updating your TeX hash)
18 "latex minipage-marginpar.dtx" to create the documentation.
19
20 Usage
21 -------
22
23 Put \usepackage{minipage-marginpar} in your document preamble.
24
25 Then you can use the environment 'minipagewithmarginpars',
26 which works like minipage (but default align ist 't'),
27 in which \marginpar-commands are allowed, when the environment
28 is not used inside another box.
29
30 Example:
31
32 \begin{minipagewithmarginpars}{5cm}
33 Hello World. \marginpar{a margin note.}
34 \end{minipagewithmarginpars}
35
36 You may want to create similar environments yourself,
37 for example to have boxed minipages. For this you
38 may use the internal commands \mpgmpar@savemarginpars
39 (inside a group) and \mpgmpar@restoremarginpars (after
40 this group, at a place where marginpars are allowed).
41
42 Try this:
43
44 \makeatletter
45 \newbox\boxed@box
46 \newenvironment{boxedpage}[1]{%
47 \begin{lrbox}{\boxed@box}%
48 \begin{minipage}[t]{#1}
49 \mpgmpar@savemarginpars
50 }{%
51 \end{minipage}%
52 \end{lrbox}%
53 \mpgmpar@restoremarginpars
54 }%
55 \makeatother
56
57
58 This ist a \begin{boxedpage}{4cm} boxed page with
59 \marginpar{margin paragraphs}
60 \end{boxedpage}.
61
62 Environments created this way may be nested, the marginpars
63 then appear around the outest one.
64
65 ----------------
66 [de]
67 LaTeX-Paket 'minipage-marginpar' - Randnotizen auch in Minipages
68
69 Autor: Paul Ebermann ([email protected]).
70 Lizenz: LPPL 1.3b oder später, mit Maintenance-Status
71 "maintained". Siehe http://www.latex-project.org/lppl/.
72
73 Geschrieben für den eigenen Gebrauch
74 (-> http://www.math.hu-berlin.de/~ebermann/alg-script/),
75 aber vielleicht ist es auch für andere von Nutzen.
76
77 Zum Setzen der Dokumentation wird das Paket 'pauldoc'
78 (vom selben Autor) benötigt.
79
80 Das Paket kommt als .dtx + .ins.
81 Mit "latex minipage-marginpar.ins" wird die .sty-Datei erstellt (und
82 eventuell gleich nach texmf/tex/latex/paul/ installiert,
83 wenn docstrip entsprechend eingerichtet ist), mit
84 latex minipage-marginpar.dtx kann (danach und eventuell nach einer
85 Aktualisierung der TeX-Dateidatenbank) die Dokumentation neu
86 erstellt werden.
87
88 Zur Verwendung siehe minipage-marginpar.pdf.
89 ----------------
90 [eo]
91 LaTeX-pakaĵo 'minipage-marginpar' - marĝenaj notoj ankau en
92 minipage-oj kaj aliaj boksoj.
93
94 Aŭtoro: Paŭlo Ebermann ([email protected]).
95 Licenzo: LPPL 1.3, 'maintained'
96 (-> http://www.latex-project.org/lppl/).
97
98 Kreitaj por propra uzo, sed eble iom de ĝi ankaŭ
99 uzeblas por aliaj.
100
101 La dokumentaro (escepte tiu ĉi dosiero) estas nur en la germana
102 lingvo.
103
104 Por krei la dokumentadon vi krome bezonas 'pauldoc' (de la sama aŭtoro).
105
106 La pakaĵo venas en .dtx + .ins.
107 Voku "latex minipage-marginpar.ins" por krei la .sty-dosieron (kaj
108 eble meti ĝin al texmf/tex/latex/paul/, se via docstrip estis
109 konfigurita laŭe), voku "latex minipage-marginpar.dtx" por rekrei
110 la dokumentaron.
111
112 Uzado
113 -------
114
115 Metu
116
117 \usepackage{minipage-marginpar}
118
119 en la komencon de la dokumento (antaŭ \begin{document}).
120
121 Poste vi povas uzi
122
123 \begin{minipagewithmarginnotes}
124 ...
125 \end{minipagewithmarginnotes}
126
127 kaj en tiu ĉirkaŭo la ordono \marginpar{} estas uzebla, se la
128 tuta aĵo ne estas ene de alia bokso.
129
130
131 Por uzi \marginpar{} ankaŭ ene de aliaj boksoj, vi povos
132 krei novajn versiojn de la boks-kreaj komandoj (aŭ ĉirkaŭoj),
133 uzante la du ordonojn \mpgmpar@savemarginpars (ene de grupo)
134 kaj \mpgmpar@restoremarginpars (post la fino de tiu grupo, kiam
135 denove \marginpar{} estas uzebla).
136
137 Jen ekzemplo (minipage kun kadro:)
138
139 ---
140 \makeatletter
141 \newbox\boxed@box
142 \newenvironment{boxedpage}[1]{%
143 \begin{lrbox}{\boxed@box}%
144 \begin{minipage}[t]{#1}
145 \mpgmpar@savemarginpars
146 }{%
147 \end{minipage}%
148 \end{lrbox}%
149 \mpgmpar@restoremarginpars
150 }%
151 \makeatother
152
153
154 Tio estas \begin{boxedpage}{4cm} kadrita paĝo kun \marginpar{marĝena noto}.
155 \end{boxedpage}
156 ---
157
158 Tiaj ĉirkaŭojn eblas meti unu ene de alia, la marĝenaj notoj aperos
159 apud la plej ekstera.
160