summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/minipage-marginpar/README
blob: e5c455113b3077ae16794a585a2b5e24c87ec7d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
[en]
LaTeX-package 'mpgmpar' - allows \marginpars in minipages and other boxes

Author:  Paul Ebermann <Paul-Ebermann@gmx.de>
License: LPPL 1.3b or later, maintained
         (see http://www.latex-project.org/lppl/).

All Documentation (other than this file) is in german.

The package needs the package ifthen (which is a required
component of LaTeX anyway).
The typesetting of the documentation needs 'pauldoc' (from the
same author).

The package comes as .dtx + .ins.
Run "latex mpgmpar.ins" to create the style file (and maybe put
it to texmf/tex/latex/paul/, if your docstrip is configured
accordingly), run (after that and maybe updating your TeX hash)
"latex mpgmpar.dtx" to create the documentation.

 Usage
-------

Put \usepackage{mpgmpar} in your document preamble.

Then you can use the environment 'minipagewithmarginpars',
which works like minipage (but default align ist 't'),
in which \marginpar-commands are allowed, when the environment
is not used inside another box.

Example:

   \begin{minipagewithmarginpars}{5cm}
	  Hello World. \marginpar{a margin note.}
   \end{minipagewithmarginpars}

You may want to create similar environments yourself,
for example to have boxed minipages. For this you
may use the internal commands \mpgmpar@savemarginpars
(inside a group) and \mpgmpar@restoremarginpars (after
this group, at a place where marginpars are allowed).

Try this:

  \makeatletter
  \newbox\boxed@box
  \newenvironment{boxedpage}[1]{%
     \begin{lrbox}{\boxed@box}%
       \begin{minipage}[t]{#1}
       \mpgmpar@savemarginpars
  }{%
       \end{minipage}%
     \end{lrbox}%
     \mpgmpar@restoremarginpars
  }%
  \makeatother


  This ist a \begin{boxedpage}{4cm} boxed page with \marginpar{margin paragraphs}
  \end{boxedpage}.

Environments created this way may be nested, the marginpars
then appear around the outest one.

----------------
[de]
LaTeX-Paket 'mpgmpar' - Randnotizen auch in Minipages

Autor:  Paul Ebermann (Paul-Ebermann@gmx.de).
Lizenz: LPPL 1.3b oder später, mit Maintenance-Status
        "maintained". Siehe http://www.latex-project.org/lppl/.

Geschrieben für den eigenen Gebrauch
(-> http://www.math.hu-berlin.de/~ebermann/alg-script/),
aber vielleicht ist es auch für andere von Nutzen.

Das Paket greift auf das Paket ifthen (Bestandteil jeder
LaTeX-Distribution) zurück.
Zum Setzen der Dokumentation wird das Paket 'pauldoc'
(vom selben Autor) benötigt.

Das Paket kommt als .dtx + .ins.
Mit "latex mpgmpar.ins" wird die .sty-Datei erstellt (und
eventuell gleich nach texmf/tex/latex/paul/ installiert,
wenn docstrip entsprechend eingerichtet ist), mit
latex mpgmpar.dtx kann (danach und eventuell nach einer
Aktualisierung der TeX-Dateidatenbank) die Dokumentation neu
erstellt werden.

Zur Verwendung siehe mpgmpar.pdf.
----------------
[eo-h]
LaTeX-pakajho 'mpgmpar' - marhenaj notoj ankau en minipage-oj
                          kaj aliaj boksoj.

Autoro:  Paulo Ebermann (Paul-Ebermann@gmx.de).
Licenzo: LPPL 1.3, 'maintained'
         (-> http://www.latex-project.org/lppl/).

Kreitaj por propra uzo, sed eble iom de ghi ankau
uzeblas por aliaj.

La dokumentaro (escepte tiu chi dosiero) estas nur en la germana
lingvo.

La pakajho bezonas la pakajhon ifthen, kiu estas necesa komponento
de LaTeX.
Por krei la dokumentadon vi krome bezonas 'pauldoc' (de la sama autoro).

La pakajho venas en .dtx + .ins.
Voku "latex mpgmpar.ins" por krei la .sty-dosieron (kaj
eble meti ghin al texmf/tex/latex/paul/, se via docstrip estis
konfigurita laue), voku "latex mpgmpar.dtx" por rekrei
la dokumentaron.

 Uzado
-------

Metu

    \usepackage{mpgmpar}

en la komencon de la dokumento (antau \begin{document}).

Poste vi povas uzi

	\begin{minipagewithmarginnotes}
	   ...
    \end{minipagewithmarginnotes}

kaj en tiu chirkauo la ordono \marginpar{} estas uzebla, se la
tuta ajho ne estas ene de alia bokso.


Por uzi \marginpar{} ankau ene de aliaj boksoj, vi povos
krei novajn versiojn de la boks-kreaj komandoj (au chirkauoj),
uzante la du ordonojn \mpgmpar@savemarginpars (ene de grupo)
kaj \mpgmpar@restoremarginpars (post la fino de tiu grupo, kiam
denove \marginpar{} estas uzebla).

Jen ekzemplo (minipage kun kadro:)

---
  \makeatletter
  \newbox\boxed@box
  \newenvironment{boxedpage}[1]{%
     \begin{lrbox}{\boxed@box}%
       \begin{minipage}[t]{#1}
       \mpgmpar@savemarginpars
  }{%
       \end{minipage}%
     \end{lrbox}%
     \mpgmpar@restoremarginpars
  }%
  \makeatother


  Tio estas \begin{boxedpage}{4cm} kadrita pagho kun \marginpar{marghena noto}.
  \end{boxedpage}
---

Tiaj chirkauojn eblas meti unu ene de alia, la marghenaj notoj aperos
apud la plej ekstera.