Debian Codegraph @

texmf-dist/source/latex/paracol/paracol.dtx

raw
1 %\iffalse
2 %<paracol>%% Style file `paracol'.
3 %<man>%% LaTeX file 'paracol-man'.
4 %<*paracol|man>
5 %% Copyright (C) 2005-2018
6 %% Hiroshi Nakashima (Kyoto University, deceased)
7 %% Copyright (C) 2024,2025
8 %% Markus Kurtz
9 %% This program can be redistributed and/or modified under the terms
10 %% of the LaTeX Project Public License distributed from CTAN
11 %% archives in directory macros/latex/base/lppl.txt; either
12 %% version 1 of the License, or any later version.
13
14 %</paracol|man>
15 %<*dtx>
16 \ProvidesFile{paracol.dtx}
17 %</dtx>
18 %<*paracol>
19 \NeedsTeXFormat{LaTeX2e}[2018-04-01]
20 \DeclareRelease{1.35}{2018-12-31}{paracol-2018-12-31.sty}
21 \DeclareCurrentRelease{1.37}{2025-07-14}
22 \ProvidesPackage{paracol}[2025/07/14 1.37 typeset columns in parallel]
23 %</paracol>
24 %<man>\ProvidesFile{paracol-man.tex}
25 % \fi
26 % \ProvidesFile{paracol.dtx}[2025-07-14 1.37 docstrip source of paracol]
27 % \iffalse
28 %<*man>
29 \documentclass{ltxdoc}\normalmarginpar
30 \usepackage{color}
31 \usepackage{paracol}
32 \usepackage{newvbtm}
33 \DisableCrossrefs
34 \PageIndex
35 \RecordChanges
36 %</man>
37 %<man>\OnlyDescription
38 %<man>\def\ONLYDESCRIPTION{}
39 %<*man>
40 \textwidth210mm
41 \advance\textwidth-40mm \oddsidemargin20mm \advance\oddsidemargin-1in
42 \columnsep10mm
43 \marginparwidth20mm \advance\marginparwidth-\marginparsep
44 \marginparsep.5\marginparsep
45 \raggedbottom
46 \begin{document}
47 \DocInput{paracol.dtx}
48 \end{document}
49 %</man>
50 % \fi
51 %
52 %
53 %
54 % \CodelineNumbered
55 % \makeatletter
56 %
57 % \newcount\ChangeCount \ChangeCount10000
58 % \def\changes@#1#2#3{%
59 % \global\advance\ChangeCount\@ne
60 % \protected@edef\@tempa{\noexpand\glossary{#1\levelchar
61 % \number\ChangeCount
62 % \actualchar
63 % \ifx\saved@macroname\@empty
64 % \generalname
65 % \else
66 % \string\verb\quotechar*
67 % \verbatimchar\saved@macroname
68 % \verbatimchar
69 % \fi
70 % :\levelchar #3}}%
71 % \@tempa\endgroup\@esphack}
72 %
73 % \def\theglossary{\onecolumn \glossary@prologue
74 % \GlossaryParms \let\item\@idxitem
75 % \rightskip 1em plus 1fil
76 % \parfillskip-1em
77 % \ignorespaces}
78 % \def\endtheglossary{\relax}
79 %
80 %
81 %
82 % \errorcontextlines10000
83 % \GetFileInfo{paracol.dtx}
84 % \setcounter{IndexColumns}{2}
85 %
86 % \def\bottomfraction{.9}
87 % \def\cs#1{\texttt{\char\escapechar#1}}
88 % \def\Item{\vskip-\itemsep\vskip-\parsep\vskip0pt\nobreak\item}
89 %
90 % \def\nosv{\catcode`\|12\relax}
91 % \begingroup
92 % \nosv
93 % \gdef\Set#1#2{\{#1\,|\,#2\}}
94 % \gdef\Abs#1{|#1|}
95 % \gdef\Bar{|}
96 % \endgroup
97 %
98 % \def\eqnarray{\stepcounter{equation}\let\@currentlabel=\theequation
99 % \global\@eqnswtrue
100 % \global\@eqcnt\z@\tabskip\@centering\let\\=\@eqncr
101 % $$\halign to \displaywidth\bgroup\hskip\@centering
102 % $\displaystyle\tabskip\z@{##}$\@eqnsel&\global\@eqcnt\@ne
103 % \hfil$\;{##}\;$\hfil
104 % &\global\@eqcnt\tw@ $\displaystyle\tabskip\z@{##}$\hfil
105 % \tabskip\@centering&\llap{##}\tabskip\z@\cr}
106 %
107 % \def\Meta#1{\penalty\@highpenalty
108 % \hbox{{\tt\char`\{}{\it\meta{#1}}{\tt\char`\}}}}
109 % \def\opt#1{{\tt[}{\it\meta{#1}}{\tt]}}
110 % \def\optn#1{{\tt[#1]}}
111 %
112 % \let\latex@addmarginpar\@addmarginpar
113 % \let\latex@latex@warning@no@line\@latex@warning@no@line
114 % \def\@addmarginpar{\let\@latex@warning@no@line\@gobble
115 % \latex@addmarginpar
116 % \let\@latex@warning@no@line\latex@latex@warning@no@line}
117 % \let\@font@warning\@gobble
118 %
119 % \long\def\m@cro@#1#2{\endgroup \topsep\MacroTopsep \trivlist
120 % \edef\saved@macroname{\string#2}
121 % \def\makelabel##1{\llap{##1\hskip\@totalleftmargin}}
122 % \if@inlabel
123 % \let\@tempa\@empty \count@\macro@cnt
124 % \loop \ifnum\count@>\z@
125 % \edef\@tempa{\@tempa\hbox{\strut}}\advance\count@\m@ne \repeat
126 % \edef\makelabel##1{\llap{\vtop to\baselineskip
127 % {\@tempa\hbox{##1}\vss}
128 % \hskip\@totalleftmargin}}
129 % \advance \macro@cnt \@ne
130 % \else \macro@cnt\@ne \fi
131 % \edef\@tempa{\noexpand\item[
132 % #1
133 % \noexpand\PrintMacroName
134 % \else
135 % \noexpand\PrintEnvName
136 % \fi
137 % {\string#2}]}
138 % \@tempa
139 % \global\advance\c@CodelineNo\@ne
140 % #1
141 % \SpecialMainMacroIndex{#2}\nobreak
142 % \DoNotIndex{#2}
143 % \else
144 % \SpecialMainEnvIndex{#2}\nobreak
145 % \fi
146 % \global\advance\c@CodelineNo\m@ne
147 % \ignorespaces}
148 %
149 % \def\dummymacro{\topsep\MacroTopsep \trivlist \item[]}
150 % \let\enddummymacro\endtrivlist
151 %
152 % \def\DescribeOpt{\leavevmode\@bsphack\begingroup\MakePrivateLetters
153 % \Describe@Opt}
154 % \def\Describe@Opt#1{\endgroup \Describe@pt{#1}}
155 % \def\Describe@pt#1#2{
156 % \marginpar{\raggedleft\PrintDescribeMacro{#1}}
157 % \SpecialOptUsageIndex{#1}{#2}}
158 %
159 % \def\Midx{\begingroup
160 % \let\Index\MainIndex
161 % \let\CodeIndex\CodeMainIndex
162 % \let\ArgedCodeIndex\ArgedCodeMainIndex
163 % \let\MathIndex\MathMainIndex
164 % \let\SpecialIndex\SpecialMainMacroIndex
165 % \MIDX}
166 % \def\MIDX#1{#1\endgroup}
167 % \def\Uidx{\begingroup
168 % \let\Index\UsageIndex
169 % \let\CodeIndex\CodeUsageIndex
170 % \let\ArgedCodeIndex\ArgedCodeUsageIndex
171 % \let\MathIndex\MathUsageIndex
172 % \let\SpecialIndex\SpecialMacroIndex
173 % \UIDX}
174 % \def\UIDX#1{#1\endgroup}
175 %
176 % \def\Index{\@Index{}}
177 % \def\MainIndex{\@Index{\encapchar main}}
178 % \def\UsageIndex{\@Index{\encapchar usage}}
179 % \def\@Index#1{\@ifnextchar[]
180 % {\@IndexWithActualChar{#1}}{\@IndexPlain{#1}}}
181 % \def\@IndexPlain#1#2{\special@index{#2#1}\ignorespaces}
182 % \def\@IndexWithActualChar#1[#2]#3{\special@index{#3\actualchar#2#1}
183 % \ignorespaces}
184 % \let\LaTeX@theindex\theindex
185 % \def\theindex{\LaTeX@theindex \hbadness\@M}
186 %
187 % \def\CodeMainIndex{\Code@Index{\encapchar main}}
188 % \def\CodeUsageIndex{\Code@Index{\encapchar usage}}
189 % \def\CodeIndex{\Code@Index{}}
190 % \def\Code@Index{\S@nitizedIndex\IndexVerb@timed}
191 %
192 % \def\ArgedCodeMainIndex{\Arged@Code@Index{\encapchar main}}
193 % \def\ArgedCodeUsageIndex{\Arged@Code@Index{\encapchar usage}}
194 % \def\ArgedCodeIndex{\Arged@Code@Index{}}
195 % \def\Arged@Code@Index{\S@nitizedArgedIndex\IndexVerb@timed}
196 %
197 % \def\MathMainIndex{\Math@Index{\encapchar main}}
198 % \def\MathUsageIndex{\Math@Index{\encapchar usage}}
199 % \def\MathIndex{\Math@Index{}}
200 % \def\Math@Index{\S@nitizedIndex\IndexM@thed}
201 %
202 % \def\S@nitizedIndex#1#2{\@bsphack
203 % \begingroup \@sanitize \S@nitized@Index{#1}{#2}}
204 % \def\S@nitized@Index#1#2#3{\endgroup
205 % \special@index{#1{#3}#2}\@esphack\ignorespaces}
206 % \def\S@nitizedArgedIndex#1#2{\@bsphack
207 % \begingroup \@sanitize \S@nitized@rgedIndex{#1}{#2}}
208 % \def\S@nitizedNonArgedIndex#1#2{\@bsphack
209 % \begingroup \@sanitize \S@nitizedNon@rgedIndex{#1}{#2}}
210 % \def\S@nitized@rgedIndex#1#2#3{\endgroup
211 % \ArgedIndexMainAndSub{#1}{#2}{#3}}
212 % \def\S@nitizedNon@rgedIndex#1#2#3{\endgroup
213 % \special@index{#1{#3}#2}
214 % \ArgedIndexSub{#1}{#2}{#3}}
215 % \def\S@nitized@rgedIndex#1#2#3{\endgroup
216 % \ArgedIndexMainAndSub{#1}{#2}{#3}}
217 % \def\S@nitizedNon@rgedIndex#1#2#3{\endgroup
218 % \special@index{#1{#3}#2}
219 % \ArgedIndexSub{#1}{#2}{#3}}
220 % \def\ArgedIndexMainAndSub#1#2#3#4{\ArgedIndexMain{#1}{#2}{#3}{#4}
221 % \ArgedIndexSub{#1}{#2}{#3}{#4}}
222 % \def\ArgedIndexMain#1#2#3#4{\begingroup
223 % \def\@tempa{\@rgedIndexMain{#1}{#2}{#3}}
224 % \def\e{}\edef\@tempb{{#4}}
225 % \expandafter\@tempa\@tempb
226 % \endgroup}
227 % \def\@rgedIndexMain#1#2#3#4{\special@index{#1{#3} (#4)#2}}
228 % \def\ArgedIndexSub#1#2#3#4{\begingroup
229 % \def\@tempa{\@rgedIndexSub{#1}{#2}{#3}}
230 % \def\e{e}\edef\@tempb{{#4}}
231 % \expandafter\@tempa\@tempb
232 % \endgroup}
233 % \def\@rgedIndexSub#1#2#3#4{\special@index{#4s:\levelchar#1{#3}#2}}
234 %
235 % \def\IndexBr@cedWith#1#2{#2\actualchar#1{#2}}
236 % \def\IndexVerb@timed#1{#1\actualchar\string\verb\quotechar*\verbatimchar
237 % #1\verbatimchar}
238 % \def\IndexM@thed#1{#1\actualchar\doll@rm@rk#1\doll@rm@rk}
239 %
240 % \def\env#1{\texttt{#1}\EnvIndex{#1}}
241 % \def\EnvIndex#1{\ArgedCodeIndex{#1}{environment}}
242 % \def\counter#1{\texttt{#1}\CounterIndex{#1}}
243 % \def\CounterIndex#1{\ArgedCodeIndex{#1}{counter}}
244 %
245 % \begingroup
246 % \catcode`\_12 \catcode`\$12
247 % \gdef\TheUnderScore{_}
248 % \gdef\doll@rm@rk{$}
249 % \endgroup
250 %
251 % \long\def\Special@Index#1#2{\@bsphack
252 % \RemoveAtFromCS{#2}
253 % \protected@edef\@tempa{\RAFCtempa
254 % \actualchar \string\verb
255 % \quotechar*\verbatimchar\string#2\verbatimchar}
256 % \expandafter\special@index\expandafter{\@tempa#1}
257 % \@esphack}
258 % \def\SpecialIndex{\Special@Index{}}
259 % \def\SpecialMainMacroIndex{\Special@Index{\encapchar main}}
260 % \def\SpecialMacroIndex{\Special@Index{\encapchar usage}}
261 % \def\SpecialArrayIndex#1{\Special@Index{${\cdot}#1$}}
262 % \def\SpecialArrayMainIndex#1{\Special@Index{${\cdot}#1$\encapchar main}}
263 % \def\SpecialArrayUsageIndex#1{\Special@Index{${\cdot}#1$\encapchar usage}}
264 %
265 % \def\Macro{\begingroup \@sanitize \iMacro}
266 % \def\iMacro#1{\endgroup
267 % \def\SpecialMainMacroIndex##1{\SWiIndex{##1}{\encapchar main}}
268 % \macro{#1}}
269 % \let\endMacro\endmacro
270 %
271 % \def\SpecialWeirdIndex{\@bsphack \begingroup \@sanitize \SWIndex{}}
272 % \def\SWIndex#1#2{\endgroup \SWiIndex{#2}{#1}}
273 % \def\SWiIndex#1#2{%
274 % \protected@edef\@tempa{#1\actualchar \string\verb
275 % \quotechar*\verbatimchar#1\verbatimchar}
276 % \expandafter\special@index\expandafter{\@tempa#2}
277 % \@esphack}
278 %
279 % \let\RAFCempty\@empty
280 % \let\RAFCgobble\@gobble
281 % \edef\RAFCIfPrefix{\expandafter\string\csname if\endcsname}
282 % \edef\RAFCIfPrefix{\expandafter\RAFCgobble\RAFCIfPrefix}
283 % \makeatother
284 % \long\def\RemoveAtFromCS#1{
285 % \edef\RAFCtempa{\expandafter\RAFCgobble\string#1}
286 % \edef\RAFCtempa{\expandafter\string\csname\RAFCtempa\endcsname}
287 % \expandafter\iRemoveAtFromCS\RAFCtempa@\NIL}
288 % \def\iRemoveAtFromCS#1#2@#3\NIL{\def\RAFCtempb{#3}
289 % \ifx\RAFCtempb\RAFCempty \def\RAFCtempa{#2}\let\next\relax
290 % \else \def\RAFCtempa{ #2@}\def\next{\iiRemoveAtFromCS#3\NIL}
291 % \def\RAFCtempb{#2}
292 % \ifx\RAFCtempb\RAFCempty
293 % \else\ifx\RAFCtempb\RAFCIfPrefix
294 % \else\ifx\RAFCtempb\CommonCSPrefix
295 % \else\ifx\RAFCtempb\CommonIfPrefix
296 % \else \def\RAFCtempa{}\def\next{\xRemoveAtFromCS#2@#3\NIL}
297 % \fi\fi\fi\fi\fi
298 % \next}
299 % \def\iiRemoveAtFromCS#1{\ifx#1@\edef\RAFCtempa{\RAFCtempa@}
300 % \let\next\iiRemoveAtFromCS
301 % \else \def\next{\xRemoveAtFromCS#1}\fi
302 % \next}
303 % \def\xRemoveAtFromCS#1@\NIL{\edef\RAFCtempa{#1\RAFCtempa}}
304 % \makeatletter
305 %
306 % \begingroup
307 % \makeatother
308 % \gdef\TheAtMark{@}
309 % \catcode`\@\active
310 % \gdef\!{\begingroup \catcode`\@\active \IndexedVerb}
311 % \gdef\IndexedVerb#1!{\def@{\TheAtMark \penalty\exhyphenpenalty}
312 % \def~{\badbreak}
313 % \rm\texttt{\string#1}\let@\TheAtMark \def~{}
314 % \edef\RAFCTempa{\expandafter\RAFCgobble\string#1}
315 % \expandafter\SpecialIndex\csname\RAFCTempa\endcsname \endgroup}
316 % \endgroup
317 % \let\Tie~
318 % \let\~\allowbreak
319 %
320 % \def\CSIndex#1{\expandafter\def\expandafter\@tempa\expandafter{\csname
321 % #1\endcsname}
322 % \edef\@tempb{\expandafter\string\@tempa}
323 % \texttt{\@tempb}
324 % \expandafter\SpecialIndex\@tempa}
325 % \def\CSINDEX#1{\expandafter\def\expandafter\@tempa\expandafter{\csname
326 % #1\endcsname}
327 % \expandafter\SpecialIndex\@tempa}
328 %
329 % \begingroup
330 % \gdef\@sverbcat{\catcode`\@\active\catcode`\#\active}
331 % \catcode`\@\active \gdef@{\char`\@\penalty\exhyphenpenalty}
332 % \catcode`\#\active \gdef#{\penalty\exhyphenpenalty}
333 % \endgroup
334 % \let\latex@sverb\@sverb
335 % \def\@sverb{\@sverbcat\latex@sverb}
336 %
337 % \def\Paracol{\textsf{paracol}}
338 % \let\LB[\let\RB]\let\LP(\let\RP)
339 % \def\LBRP#1#2{\LB#1,#2\RP}
340 % \def\In{\in\LBRP}
341 % \let\Sec\S
342 % \def\secref{\Sec\ref}
343 % \let\<\langle \let\>\rangle
344 % \let\ARG\arg
345 % \def\arg#1{\<\mathit{#1}\>}
346 % \def\Arg#1{\texttt{\char`\{}#1\texttt{\char`\}}}
347 % \def\ARg#1{\texttt{\char`\{}\textit{#1}\texttt{\char`\}}}
348 % \def\Oarg#1{\texttt{[\textit{#1}]}}
349 % \def\Sub#1{{\hbox to0pt{\hss$\scriptstyle #1$\hss}}}
350 % \def\PT{\,{\rm pt}}
351 %
352 % \def\Sloppy#1{\tolerance#1\hbadness#1\relax}
353 % \let\endSloppy\par
354 % \def\Hfuzz#1{\hfuzz#1\relax}
355 % \let\endHfuzz\par
356 % \def\KeepSpace#1{\par \vskip-\lastskip \vskip#1\baselineskip \allowbreak
357 % \vskip-#1\baselineskip\nobreak}
358 %
359 %
360 %
361 % \edef\CommonCSPrefix{\expandafter\RAFCgobble\string\pcol}
362 % \edef\CommonIfPrefix{\expandafter\RAFCgobble\string\ifpcol}
363 %
364 % \def\beginenv#1{\CSIndex{begin}\allowbreak
365 % \texttt{\char`{#1\char`}}\EnvIndex{#1}}
366 % \def\beginparacol{\beginenv{paracol}}
367 %
368 % \def\bgext{extension\Index{extension of background painting region}}
369 % \def\bginfext{infinite extension
370 % \Index{infinite extension of background painting region}}
371 % \def\bgpaint{background painting\Index{background painting}}
372 % \def\bground{background\Index{background painting}}
373 % \def\bpage{base page\Index{base page}}
374 % \def\colorctext{color context\Index{color context}}
375 % \def\colorstack{color stack\Index{color stack}}
376 % \def\cctext{column-context\Index{column-context}}
377 % \def\colpage{column-page\Index{column-page}}
378 % \def\colpream{column preamble\Index{column preamble}}
379 % \def\Colpream{preamble\Index{column preamble}}
380 % \def\cscan{column-scan\Index{column-scan}}
381 % \def\csepgap{column-separating gap\Index{column-separating rule}}
382 % \def\cseprule{column-separating rule\Index{column-separating rule}}
383 % \def\cswap{column-swapping\Index{column-swapping}}
384 % \def\cswitch{column-switching\Index{column-switching}}
385 % \def\csenv{column-switching environment\Index{column-switching environment}}
386 % \def\cwise{column-wise\Index{column-wise stuff}}
387 % \def\csync{counter synchronization\Index{counter synchronization}}
388 % \def\ccolpage{current column-page\Index{current column-page}}
389 % \def\Endparacol{\CSIndex{end}\allowbreak
390 % \texttt{\char`\{paracol\char`\}}\EnvIndex{paracol}}
391 % \def\elocal{environment-local\Index{environment-local}}
392 % \def\exsync{explicit synchronization\Index{explicit synchronization}}
393 % \def\fcolumn{float column\Index{float column}}
394 % \def\fpage{float page\Index{float page}}
395 % \def\gcounter{global counter\Index{global counter}}
396 % \def\imsync{implicit synchronization\Index{implicit synchronization}}
397 % \def\lpage{last page\Index{last page}}
398 % \def\lcommand{local command\Index{local command}}
399 % \def\lcolumn{leading column\Index{leading column}}
400 % \def\lcolpage{leading column-page\Index{leading column-page}}
401 % \def\lcounter{local counter\Index{local counter}}
402 % \def\lrep{local representation\Index{local representation}}
403 % \def\Mcfnote{column-wise footnote\Index{column-wise footnote}}
404 % \def\mcfnote{column-wise\Index{column-wise footnote}}
405 % \def\Mgfnote{merged footnote\Index{merged footnote}}
406 % \def\mgfnote{merged\Index{merged footnote}}
407 % \def\mctext{spanning text\Index{spanning text}}
408 % \def\mirror{mirror\Index{mirrored background painting}}
409 % \def\mvlfloat{MVL-float\Index{MVL-float}}
410 % \def\npaired{non-paired\Index{non-paired parallel-paging}}
411 % \def\paired{paired\Index{paired parallel-paging}}
412 % \def\parapag{parallel-pag\Index{parallel-paging}}
413 % \def\pctext{page context\Index{page context}}
414 % \def\pfcheck{pre-flushing column height check
415 % \Index{pre-flushing column height check}}
416 % \def\Postenv{post-environment\Index{post-environment stuff}}
417 % \def\postenv{post-environment stuff\Index{post-environment stuff}}
418 % \def\Preenv{pre-environment\Index{pre-environment stuff}}
419 % \def\preenv{pre-environment stuff\Index{pre-environment stuff}}
420 % \def\prespan{pre-spanning-text stuff\Index{pre-spanning-text stuff}}
421 % \def\prim{page rim\Index{page rim}}
422 % \def\pwise{page-wise\Index{page-wise stuff}}
423 % \def\pwstuff{page-wise stuff\Index{page-wise stuff}}
424 % \def\Scfnote{page-wise footnote\Index{page-wise footnote}}
425 % \def\scfnote{page-wise\Index{page-wise footnote}}
426 % \def\spanning{spanning stuff\Index{spanning stuff}}
427 % \def\sptext{spanning text\Index{spanning text}}
428 % \def\spage{starting page\Index{starting page}}
429 % \def\sync{synchroniz\Index{synchronize}}
430 % \def\tpage{top page\Index{top page}}
431 %
432 % \def\vb{\Index[$\kappa_c(\beta)$]{-k_c(-b)}\beta}
433 % \def\pd{\Index[$\kappa_c(\delta)$]{-k_c(-d)}\delta}
434 % \def\Celt{\Index[$\gamma_0^c$]{-c^c_0}\gamma_0}
435 % \def\Celtshadow{\Index[$\hat\gamma_0^c$]{-c^xc_0}\hat\gamma_0}
436 % \def\celt{\Index[$\gamma_i$]{-c^a_i}\gamma}
437 % \def\celtpop{\Index[$\gamma_i^-$]{-c^m_i}\gamma^-}
438 % \def\celtshadow{\Index[$\hat\gamma_i$]{-c^x_i}\hat\gamma}
439 % \def\mcelt{\Index[$\gamma_{i,m}$]{-c^a_i,m}\gamma}
440 % \def\mceltpop{\Index[$\gamma_{i,m}^-$]{-c^m_i,m}\gamma^-}
441 % \def\cst{\Index[$\string\mathit{\Gamma}$]{-C^a}\mathit{\Gamma}}
442 % \def\CST{\Index[$\string\mathit{\Gamma}^c$]{-C^c}\mathit{\Gamma}}
443 % \def\CSTraw{\Index[$\string\mathit{\Gamma}^c_r$]{-C^c_r}\mathit{\Gamma}_r}
444 % \def\cstraw{\Index[$\string\mathit{\Gamma}_r$]{-C^a_r}\mathit{\Gamma}_r}
445 % \def\csts{\Index[$\string\mathit{\Gamma}_s$]{-C_s}\mathit{\Gamma}_s}
446 % \def\CSTshadow{\Index[$\hat\string\mathit{\Gamma}^c$]{-C^xc}
447 % \hat\mathit{\Gamma}}
448 % \def\cstshadow{\Index[$\hat\string\mathit{\Gamma}$]{-C^x}\hat\mathit{\Gamma}}
449 % \def\ep{\Index[$\kappa_c(\varepsilon)$]{-k_c(-e)}\varepsilon}
450 % \def\clist{\Index[$\zeta(\theta)$]{-f(-j)}\zeta}
451 % \def\fh{\Index[$\kappa_c(\eta)$]{-k_c(-h)}\eta}
452 % \def\CC{\Index[$\string\mathit{\Theta}$]{-J}\mathit{\Theta}}
453 % \def\Cc{\Index[$\string\mathit{\Theta}_c$]{-J_c}\mathit{\Theta}}
454 % \def\CG{\Index[$\string\mathit{\Theta}^g$]{-J^g}\mathit{\Theta}^g}
455 % \def\cg{\Index[$\theta^g$]{-j^g}\theta^g}
456 % \def\CTL{\Index[$\string\mathit{\Theta}^l$]{-J^l}\mathit{\Theta}^l}
457 % \def\cl{\Index[$\theta^l$]{-j^l}\theta^l}
458 % \def\cc{\Index[$\kappa_c$]{-k_c}\kappa}
459 % \def\bl{\Index[$\kappa_c(\lambda_b)$]{-k_c(-l_b)}\lambda_b}
460 % \def\dl{\Index[$\kappa_c(\lambda_d)$]{-k_c(-l_d)}\lambda_d}
461 % \def\ml{\Index[$\kappa_c(\lambda_m)$]{-k_c(-l_m)}\lambda_m}
462 % \def\tl{\Index[$\kappa_c(\lambda_t)$]{-k_c(-l_t)}\lambda_t}
463 % \def\lrm{\Index[$\mu$]{-m}\mu}
464 % \def\bn{\Index[$\kappa_c(\nu_b)$]{-k_c(-n_b)}\nu_b}
465 % \def\cn{\Index[$\kappa_c(\nu_c)$]{-k_c(-n_c)}\nu_c}
466 % \def\tn{\Index[$\kappa_c(\nu_t)$]{-k_c(-n_t)}\nu_t}
467 % \def\tf{\Index[$\kappa_c(\xi)$]{-k_c(-o)}\xi}
468 % \def\PP{\Index[$\string\mathit{\Pi}$]{-P}\mathit{\Pi}}
469 % \def\PPP{\Index[$\string\mathit{\Pi}^+$]{-P+}\mathit{\Pi}^+}
470 % \def\pp{\Index[$\pi(p)$]{-p(p)}\pi}
471 % \def\br{\Index[$\kappa_c(\rho_b)$]{-k_c(-r_b)}\rho_b}
472 % \def\tr{\Index[$\kappa_c(\rho_t)$]{-k_c(-r_t)}\rho_t}
473 % \def\sw{\Index[$\kappa_c(\sigma)$]{-k_c(-s)}\sigma}
474 % \def\ft{\Index[$\kappa_c(\tau)$]{-k_c(-t)}\tau}
475 % \def\df{\Index[$\string\mathit{\Phi}$]{-U}\mathit{\Phi}}
476 %
477 % \def\bf{\Index[$b_f$]{b_f}b_f}
478 % \def\bgc{\Index[$B_a$]{B_a}B}
479 % \def\bge{\Index[$e_a(d^\pm)$]{e_a(d^+)}e}
480 % \def\bgr{\Index[$R_a$]{R_a}R}
481 % \def\C{\Index[$C$]{C}C}
482 % \def\Cfrom{\Index[$C^0$]{C0^0}{C^0}}
483 % \def\CBfrom{\Index[$C_b^0$]{C0_b^0}{C_b^0}}
484 % \def\CBto{\Index[$C_b^1$]{C0_b^1}{C_b^1}}
485 % \def\CL{\Index[$C_L$]{C0_L}C_L}
486 % \def\Cto{\Index[$C^1$]{C0^1}{C^1}}
487 % \def\cmax{\Index[$c_{\max}$]{c0_max}c_{\max}}
488 % \def\dc{\Index[$d_c$]{d_c}d_c}
489 % \def\DP{\Index[$D_P$]{D_P}D_P}
490 % \def\DT{\Index[$D_T$]{D_T}D_T}
491 % \def\false{\Index[$\string\mathit{false}$]{false}\mathit{false}}
492 % \def\Fc{\Index[$F_c(X)$]{F0_c}F_c}
493 % \def\fc{\Index[$f_c(x)$]{f0_c}f_c}
494 % \def\gap{\Index[$g_c$]{g_c}g}
495 % \def\HB{\Index[$H_B$]{H_B}H_B}
496 % \def\HM{\Index[$H_M$]{H_M}H_M}
497 % \def\HN{\Index[$H_N$]{H_N}H_N}
498 % \def\HP{\Index[$H_P$]{H_P}H_P}
499 % \def\HR{\Index[$H_R$]{H_R}H_R}
500 % \def\HS{\Index[$H_S$]{H_S}H_S}
501 % \def\HT{\Index[$H_T$]{H_T}H_T}
502 % \def\mplist{\Index[$I$]{I}I}
503 % \def\nf{\Index[$n_f$]{n_f}n_f}
504 % \def\npop{\Index[$n_{\rm pop}$]{n_pop}n_{\rm pop}}
505 % \def\mpar{\Index[$\mathit{mpar}(t_i,b_i)$]{mpar(t_i,b_i)}\mathit{mpar}}
506 % \def\mpb{\Index[$M_{\{L,R\}}^{\{l,r\}}$]{M0_{L,R}^{l,r}}M}
507 % \def\mpbout{\Index[${\string\cal{M}}$]{M1}{\cal M}}
508 % \def\mpboutz{\Index[${\string\cal{M}}_0$]{M1_0}{\cal M}_0}
509 % \def\pbase{\Index[$p_b$]{p0_b}p_b}
510 % \def\ptop{\Index[$p_t$]{p0_t}p_t}
511 % \def\page{\Index[$\string\mathit{page}(p)$]{page(p)}\mathit{page}}
512 % \def\S{\Index[$S_c$]{S_c}S}
513 % \def\SS{\Index[$S$]{S}S}
514 % \def\s{\Index[$s_c(p)$]{s_c(p)}s}
515 % \def\size{\Index[$\string\mathit{size}(x)$]{size}\mathit{size}}
516 % \def\Size{\Index[$\string\mathit{SIZE}(x)$]{SIZE}\mathit{SIZE}}
517 % \def\spt{\Index[$\mathit{span}(H_i,h_i)$]{span(H_i,h_i)}\mathit{span}}
518 % \def\T{\Index[$T$]{T}T}
519 % \def\true{\Index[$\string\mathit{true}$]{true}\mathit{true}}
520 % \def\val{\Index[$\string\mathit{val}_c(\theta)$]{val_c(j)}
521 % \mathit{val}}
522 % \def\Val{\Index[$\string\mathit{val}(\theta)$]{val(j)}
523 % \mathit{val}}
524 % \def\vc{\Index[$v_c(x)$]{v1_c}v_c}
525 % \def\VB{\Index[$V_B$]{V0_B}V_B}
526 % \def\VE{\Index[$V_E$]{V0_E}V_E}
527 % \def\VP{\Index[$V_P$]{V0_P}V_P}
528 % \def\VPP{\Index[$V'_P$]{V0_Px}V'_P}
529 % \def\VT{\Index[$V_T$]{V0_T}V_T}
530 % \def\w{\Index[$w_c$]{w1_c}w}
531 % \def\W{\Index[$W_c$]{W0_c}W}
532 % \def\WM{\Index[$W_M$]{W0_M}W_M}
533 % \def\WP{\Index[$W_P$]{W0_P}W_P}
534 % \def\WR{\Index[$W_R$]{W0_R}W_R}
535 % \def\WT{\Index[$W_T$]{W0_T}W_T}
536 %
537 %
538 %
539 % \def\bracepair{`{\tt\char`\{\char`\}'}}
540 % \@addtoreset{section}{part}
541 % \def\part#1{\refstepcounter{part}
542 % \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}
543 % \vbox to\unitlength{\vfil\centerline{\Large\bfseries PART\ \thepart}\vfil
544 % \centerline{\huge\bfseries#1}\vfil\vfil}}
545 % \def\Env#1#2{\!\begin!{\tt\char`\{\env{#1}\char`\}}#2\quad
546 % $\mathit{body}$\quad\!\end!{\tt\char`\{\env{#1}\char`\}}}
547 % \def\ENV#1#2{\!\begin!{\tt\char`\{\Midx{\env{#1}}\char`\}}#2\quad
548 % $\mathit{body}$\quad\!\end!{\tt\char`\{\env{#1}\char`\}}}
549 % \def\meta#1{\mbox{$\mathit{#1}$}}
550 %
551 % \let\l@part\l@section
552 % \def\l@section{\@dottedtocline{1}{0pt}{1.5em}}
553 %
554 % \newverbatim{Verbatim}{\topsep0pt\partopsep0pt\parsep0pt\parskip0pt\tt}{}{}{}
555 % \globalcounter{section}
556 % \globalcounter{figure}
557 % \globalcounter{table}
558 % \definethecounter{footnote}{1}{\textit{\arabic{footnote}}}
559 % \definethecounter{subsection}{1}{
560 % \texttt{\arabic{section}.\arabic{subsection}}}
561 % \addcontentsonly{toc}{0}
562 %
563 % \def\Dotfill{\leavevmode\cleaders\hbox to.44em{\hss.\hss}\hfill\kern0pt}
564 % \def\Marginpar#1{\marginpar{\raggedright#1}}
565 % \def\Emph#1{{\bfseries#1}}
566 % \def\Hrule{\hbox to\linewidth{\hrulefill}}
567 % \def\\{\hfil\break\null\ignorespaces}
568 %
569 % \let\AB\allowbreak
570 % \def\badbreak{\penalty50}
571 % \let\BB\badbreak
572 %
573 % \hyphenation{col-umn col-umns}
574 %
575 % \let\EQ\relax \let\GT\relax \let\BAR\relax \let\NEQ\relax
576 %
577 %
578 %
579 % \changes{v0.9}{2005/01/28}
580 % {The style paracol is born. (2005/01/28)}
581 % \changes{v0.91}{2011/09/16}
582 % {The style is included in CTAN with a very small
583 % modification. (2011/09/16) }
584 % \changes{v1.0}{2011/10/10}
585 % {Add this document and fix the following problems on the author's
586 % 30th wedding anniversary. (2011/10/10)}
587 % \changes{v1.1}{2012/05/11}
588 % {Add \cs{columnratio} and variable column width. (2012/05/11)}
589 % \changes{v1.2-1}{2013/05/11}
590 % {Make \string\texttt{paracol} environment accept \cs{color} and add
591 % \cs{columncolor}. (2013/05/11)}
592 % \changes{v1.2-2}{2013/05/11}
593 % {Add page-wise and merged footnote functions. (2013/05/11)}
594 % \changes{v1.2-3}{2013/05/11}
595 % {Fix a problem in synchronization. (2013/05/11)}
596 % \changes{v1.2-4}{2013/05/11}
597 % {Add column-swapping functions. (2013/05/11)}
598 % \changes{v1.2-5}{2013/05/11}
599 % {Allow a \string\texttt{paracol} envrionment is enclosed in list-like
600 % environments. (2013/05/11)}
601 % \changes{v1.2-6}{2013/05/11}
602 % {Add \cs{localcounter}. (2013/05/11)}
603 % \changes{v1.2-7}{2013/05/11}
604 % {Bug fixes and minor revisions as follows. (2013/05/11)}
605 % \changes{v1.21}{2013/06/06}
606 % {Fix the bug by which a column having empty column-pages followed by
607 % a synchronization point is lost or placed in a wrong
608 % page. (2013/06/06)}
609 % \changes{v1.22}{2013/06/30}
610 % {Fix the bug that \cs{color} and its relatives in a paragraph or
611 % around page top causes inconsistency of color context. (2013/06/30)}
612 % \changes{v1.23}{2013/07/08}
613 % {Fix the problem that a colored text has a line break candidate at
614 % its end inappropriately. (2013/07/08)}
615 % \changes{v1.24}{2013/07/27}
616 % {Fix the problem caused by the concealment of \cs{vadjust} in math
617 % group. (2013/07/27)}
618 % \changes{v1.3-1}{2013/09/17}
619 % {Fix the known problem of the placement of page-crossing spanning
620 % texts. (2013/09/17)}
621 % \changes{v1.3-2}{2013/09/17}
622 % {Introduce parallel-paging. (2013/09/17)}
623 % \changes{v1.3-3}{2013/09/17}
624 % {Introduce column-separating rule drawing and background
625 % painting. (2013/09/17) }
626 % \changes{v1.3-4}{2013/09/17}
627 % {Introduce API for column/gap width and marginal note position
628 % specification. (2013/09/17)}
629 % \changes{v1.3-5}{2013/09/17}
630 % {Introduce \cs{thecolumn} and \cs{ensurevspace},
631 % \cs{footnotelayout}, \cs{twosided} and
632 % \cs{cleardoublepage}. (2013/09/17)}
633 % \changes{v1.3-6}{2013/09/17}
634 % {Fix a few problems mainly related to synchronization and ordinary
635 % footnotes. (2013/09/17)}
636 % \changes{v1.31}{2013/10/10}
637 % {Add passing paramenters related sectioning commmands beyond
638 % \cs{end}\texttt{\char`\{paracol\char`\}} and fix misspells in
639 % error messages. (2013/10/10)}
640 % \changes{v1.32-1}{2015/10/10}
641 % {Add \cs{globalcounter*} to make all counters global. (2015/10/10)}
642 % \changes{v1.32-2}{2015/10/10}
643 % {Fix a memory leak in \cs{pcol@startcolumn}. (2015/10/10)}
644 % \changes{v1.32-3}{2015/10/10}
645 % {Fix a page-wise float problem. (2015/10/10)}
646 % \changes{v1.33-1}{2016/11/19}
647 % {Fix a marginal note problem. (2016/11/19)}
648 % \changes{v1.33-2}{2016/11/19}
649 % {Non-logical modifications to obey the coding convention, for
650 % clarification, etc.. (2016/11/19)}
651 % \changes{v1.34}{2018/05/07}
652 % {Fix a text coloring problem in non-breakable sequences of vertical
653 % items. (2018/05/07)}
654 % \changes{v1.35-1}{2018/12/31}
655 % {Fix a page break problem with a tall item in the very first line of
656 % the first column. (2018/12/31)}
657 % \changes{v1.35-2}{2018/12/31}
658 % {Fix a vertical space problem with \texttt{trivlist} immediately
659 % surrounding \texttt{paracol}. (2018/12/31)}
660 % \changes{v1.35-3}{2018/12/31}
661 % {Fix a bug in \cs{pcol@addmarginpar} and add emulation of
662 % \cs{marginnnote}. (2018/12/31)}
663 % \changes{v1.35-4}{2018/12/31}
664 % {Add \cs{belowfootnoteskip} for the additional space below the
665 % non-merged pre-environment footnotes. (2018/12/31)}
666 % \changes{v1.35-5}{2018/12/31}
667 % {Add \cs{definecolumnpreamble}. (2018/12/31)}
668 % \changes{v1.35-6}{2018/12/31}
669 % {Add error check if \texttt{paracol} environment is not in outer par
670 % mode and is with ordinary two-column typesetting. (2018/12/31)}
671 %
672 %
673 %
674 % \title{Package \textsf{paracol}:\\
675 % Yet Another Multi-Column Package to Typeset Columns in
676 % \textit{Parallel}}
677 %
678 % \author{Hiroshi Nakashima (Kyoto University, deceased)\\Markus Kurtz (\url{https://codeberg.org/mgkurtz/paracol})}
679 % \date{version \fileversion: \filedate}
680 % \setbox0\vbox{\vskip\topskip\maketitle}\unitlength\ht0\copy0
681 %
682 % \ifx\ONLYDESCRIPTION\undefined
683 % \tableofcontents
684 % \newpage \ifodd\c@page\else \hbox{}\newpage \fi
685 % \vbox to\unitlength{\unvbox0\vfil}
686 % \part{User's Manual}\label{part:man}
687 % \let\MidxSave\Midx \let\Midx\Uidx
688 % \else
689 % \addtocontents{toc}{\protect\label{toc}}
690 % \fi
691 %
692 % \begin{abstract}
693 % This package provides a \LaTeX{} environment named |paracol| in which you
694 % may {\em switch} and {\em synchronize} columns by a command
695 % |\switchcolumn| and by internal environments |column|, |nthcolumn|,
696 % |leftcolumn| and |rightcolumn|.
697 % \ifx\ONLYDESCRIPTION\undefined\else
698 % See p.\Tie\pageref{toc} for the table of contents of this manual, see \href{https://mirrors.ctan.org/macros/latex/contrib/paracol/paracol.pdf}{paracol.pdf} for code documentation.
699 % \fi
700 % \end{abstract}
701 %
702 % \tracingpages1 \tracingoutput1 \showboxdepth10000 \showboxbreadth10000
703 % \input{man.dtx}
704 % \tracingpages0 \tracingoutput0
705 % \newpage
706 % \input{ref.dtx}
707 % \newpage
708 % \input{pwfnote.dtx}
709 % \newpage
710 % \twosided
711 % \edef\OddSideMargin{\number\oddsidemargin}
712 % \advance\oddsidemargin1in
713 % \evensidemargin1.25\oddsidemargin \advance\evensidemargin-1in
714 % \oddsidemargin.75\oddsidemargin \advance\oddsidemargin-1in
715 % \input{ppts.dtx}
716 % \newpage
717 % \input{bgpaint.dtx}
718 % \newpage
719 % \twosided[]\oddsidemargin\OddSideMargin sp
720 % \resetbackgroundcolor \columnratio{}
721 % \input{probs.dtx}
722 %
723 % \IndexPrologue{\newpage\section*{Index}
724 % Underlined number refers to the page where the specification of
725 % corresponding entry is described, while italicized number is for the page
726 % in which the usage of the entry is explained.}
727 %
728 % \StopEventually{\ifx\ONLYDESCRIPTION\undefined\newpage\fi
729 % \section*{Acknowledgments}
730 % \addcontentsline{toc}{part}{\protect\numberline{}{Acknowledgments}}
731 % 
732 % The author thanks to Yacine Daddi Addoun who gave the author the
733 % motivation to write the style for his bilingual document. He also thanks
734 % to the following people;
735 % 
736 % Robin Fairbairns who kindly invited the style to CTAN after the author's
737 % lazy six years failing to upload the style;
738 % 
739 % Joseph
740 % G.\ Rosenstein and Dieter K\"ohler who suggested the author adding the
741 % function of unbalanced column width incorporated in version 1.1;
742 % 
743 % Joaqu\'in Blas who motivated the author to challenge page-wise footnotes;
744 % 
745 % Olivier Vogel who pointed out the compatibility problem with coloring
746 % packages;
747 % 
748 % Heiner Richter who asked for the possibility of swapping unbalanced
749 % columns, revealed two bugs in version 1.22 related to coloring and
750 % float pages, showed the necessity of \!\coloredwordhyphenated!, and finally
751 % found the necessity of \!\globalcounter!|*|;
752 % 
753 % an anonymous user who reported a very rare-case but severe bug in the
754 % version~1.1 by which a page can be lost (whoops!);
755 % 
756 % Olivier Gerard who found another terrible bug fixed in version 1.21 but
757 % hidden in \textsf{paracol} for two years by which a column disappears or
758 % moves to a wrong page (another whoops!\@), suggested to implement
759 % \!\setcolumnwidth!, \!\marginparthreshold! and \!\thecolumn! introduced
760 % in version 1.3, and kindly proofread this manual;
761 % 
762 % George Kamel who let the author know the coloring function newborn in
763 % version 1.2 had a bug fixed in version 1.22 to which he also made a great
764 % contribution testing many tentative versions with his own colored
765 % documents;
766 % 
767 % another anonymous user who pointed out version 1.22 had yet another
768 % coloring bug fixed in version 1.24;
769 % 
770 % Jean Druel who motivated the author to implement an advanced functionality
771 % parallel-paging;
772 % 
773 % Tilo Arens and other patient users who had wished \Paracol{} would have the
774 % capability of rule drawing in the gaps separating columns and painting
775 % backgrounds of columns and so on;
776 % 
777 % Michael Bolin who gave the author motivated examples showing the
778 % necessity of \!\ensurevspace!.
779 % 
780 % Tigran Aivazian who reported a memory leak problem fixed in version 1.32;
781 % 
782 % Marcus Zelezny and Touhami Mamouni who found an incompatibility with
783 % \LaTeX{} itself (2015/01/10 or later) and enlighten the author on the cause
784 % of the problem;
785 % 
786 % Manuel Kuehner who reported a bug in text coloring which had hidden
787 % for five years until the version 1.34 was released;
788 % 
789 % ZongXian Wang who found that the paracol misbehaves when an environment
790 % starts with an unusually tall item;
791 % 
792 % and Frank Mittelbach who pointed out bugs in \cs{marginpar} implementation
793 % and vertical spacing with \cs{trivlist}-like environments, and suggested
794 % new functionality with \cs{marginnote}, \cs{belowfootnoteskip} and
795 % \cs{definecolumnpreamble}.
796 %
797 % For the implementation of the style file, the author referred to the base
798 % implementations of \cs{output} and othe many macros of \LaTeXe{} written
799 % by Leslie Lamport, Johannes Braams and other authors. The author also
800 % referred to \textsf{color} written by David Carlisle and
801 % \textsf{marginnote} written by Markus Kohm to make the package working
802 % well with them.
803 %
804 % \ifx\ONLYDESCRIPTION\undefined\else
805 % \newpage\tableofcontents
806 % \fi
807 %
808 % \PrintIndex}
809 %
810 % \newpage
811 % \addtocounter{page}{2}
812 % \let\Midx\MidxSave
813 % \advance\oddsidemargin1in\evensidemargin\oddsidemargin
814 % \advance\textwidth-1in\columnwidth\textwidth
815 % \hsize\textwidth \linewidth\textwidth
816 % \part{Implementation}\label{part:impl}
817 % \input{impl.dtx}
818 %
819 % \IndexPrologue{\newpage\section*{Index}
820 % \addcontentsline{toc}{part}{\protect\numberline{}{Index}}
821 %
822 % Underlined number refers to the page where the implementation or the
823 % definition of the correspoinding entry is described, while italicized
824 % number is for the page in which the specificatoin or usage of the entry is
825 % explained.
826 % 
827 % To find a control sequence, remove prefixes \cs{@}, \cs{if@}, \cs{pcol@} and
828 % \cs{ifpcol@} from its name if it has one of them.}
829 % \Finale
830 % \GlossaryPrologue{\newpage\section*{Revision History}
831 % \addcontentsline{toc}{part}{\protect\numberline{}{Revision History}}}
832 % \def\EQ{=} \def\GT{>} \def\BAR{|} \def\NEQ{\neq} \def\S{\Sec}
833 % \PrintChanges
834 \endinput