| 1 |
% \def\Dotquad{\leavevmode\cleaders\hbox to.44em{\hss.\hss}% |
| 2 |
% \hskip\parindent\kern0pt} |
| 3 |
% \def\fnpar#1#2{#1 paragraph\Dotfill\\\Dotfill with a footnote#2\Dotfill |
| 4 |
% in it.\par} |
| 5 |
% \def\Fnpar#1#2#3{#1 paragraph\Dotfill\\\Dotfill with a footnote#2\Dotfill |
| 6 |
% in it.\\#3\par} |
| 7 |
% |
| 8 |
% \section{Numbering and Placement of Page-Wise Footnotes} |
| 9 |
% \label{sec:fnnp} |
| 10 |
% \changes{v1.2-2}{2013/05/11} |
| 11 |
% {Add the section ``Numbering and Placement of Single-Columned |
| 12 |
% Footnotes'' to describe page-wise footnotes in detail.} |
| 13 |
% \changes{v1.3-5}{2013/09/17} |
| 14 |
% {Rename the section title from ``Numbering and Placement of |
| 15 |
% Single-Columned Footnotes''to ``Numbering and Placement of |
| 16 |
% ``Page-Wise Footnotes'' following new naming.} |
| 17 |
% |
| 18 |
% Here we have a simple example of \scfnote{} but not-merged |
| 19 |
% footnotes\footnote{. |
| 20 |
% |
| 21 |
% Because of the non-merged typesetting, this footnote is put above the |
| 22 |
% example.\par\Hrule\label{fn:preenv}}. |
| 23 |
% |
| 24 |
% \footnoteplacement{p} |
| 25 |
% \begin{paracol}{2} |
| 26 |
% \fnpar{First left-column}{\footnote{First left-column footnote.}} |
| 27 |
% \fnpar{Second left-column}{\footnote{Second left-column footnote.}} |
| 28 |
% \switchcolumn |
| 29 |
% \fnpar{First right-column}{\footnote{First right-column footnote.}} |
| 30 |
% \fnpar{Second right-column}{\footnote{Second right-column footnote. |
| 31 |
% This and all other footnotes above are \scfnote{} and, since footnote |
| 32 |
% typesetting is non-merged, they are put above the \postenv.}} |
| 33 |
% \end{paracol} |
| 34 |
% \Hrule |
| 35 |
% |
| 36 |
% As shown above, it is easy to have a reasonable result of footnote |
| 37 |
% numbering and placement as far as your \env{paracol} environment is |
| 38 |
% completely included in a page and you accept the numbering in |
| 39 |
% left-column-first manner constructing the environment as follows |
| 40 |
% exploiting the fact \counter{footnote} is made global, where $b$ is the |
| 41 |
% value of \counter{footnote} counter at \beginparacol, i.e., the number |
| 42 |
% given to the footnote just preceding the environment, and thus |
| 43 |
% $b=\ref{fn:preenv}$ in the example above. |
| 44 |
% |
| 45 |
% \begin{quote}\vskip-1pt |
| 46 |
% |\begin{paracol}{2}|\\ |
| 47 |
% \textit{left-column stuff having $n$ footnotes numbered $b+1$, $b+2$, |
| 48 |
% \ldots, $b+n$}\\ |
| 49 |
% |\switchcolumn|\\ |
| 50 |
% \textit{right-column stuff having $m$ footnotes numbered $b+n+1$, $b+n+2$, |
| 51 |
% \ldots, $b+n+m$}\\ |
| 52 |
% |\end{paracol}| |
| 53 |
% \end{quote}\vskip-1pt |
| 54 |
% |
| 55 |
% The real life is, however, tougher than that, because the assumptions above |
| 56 |
% are too optimistic as described in the following subsections. |
| 57 |
% \vskip-3pt\vskip0pt |
| 58 |
% |
| 59 |
% |
| 60 |
% \subsection{Multiple \cs{switchcolumn} in a Page} |
| 61 |
% \label{sec:fnnp-multsc} |
| 62 |
% |
| 63 |
% Here we have an example with three \!\switchcolumn! commands in a page |
| 64 |
% having six footnotes. Hereafter, footnotes are typeset with |
| 65 |
% \Uidx{\!\footnoteplacement!}|{m}|\footnote{ |
| 66 |
% |
| 67 |
% And thus this footnote is merged with those in the \env{paracol} |
| 68 |
% environment.}. |
| 69 |
% |
| 70 |
% \footnoteplacement{m} |
| 71 |
% \Hrule |
| 72 |
% \begin{paracol}{2} |
| 73 |
% \fnpar{First left-column}{\footnote{First left-column |
| 74 |
% footnote.\label{fn:2L1}}} |
| 75 |
% \Fnpar{Second left-column}{\footnote{Second left-column |
| 76 |
% footnote.\label{fn:2L2}}}{ |
| 77 |
% It is followed by a \cs{switchcolumn}.} |
| 78 |
% \switchcolumn |
| 79 |
% \Fnpar{First right-column}{\footnote{First right-column footnote but |
| 80 |
% following the second left-column one.\label{fn:2R1}}}{It is followed by a |
| 81 |
% \cs{switchcolumn*}.} |
| 82 |
% \switchcolumn* |
| 83 |
% \Fnpar{Third and synchronized left-column}{\footnote{Third left-column |
| 84 |
% footnote but following the first right-column one.\label{fn:2L3}}}{It is |
| 85 |
% followed by a \cs{switchcolumn}.} |
| 86 |
% \switchcolumn |
| 87 |
% \fnpar{Second and synchronized right-column}{\footnote{Second right-column |
| 88 |
% footnote but following the third left-column one.\label{fn:2R2}}} |
| 89 |
% \fnpar{Third right-column}{\footnote{Third right-column |
| 90 |
% footnote.\label{fn:2R3}}} |
| 91 |
% \end{paracol} |
| 92 |
% \newpage |
| 93 |
% |
| 94 |
% The example in the previous page should look weird because the order of |
| 95 |
% the third footnote in the left column \ref{fn:2L3} and the first in the |
| 96 |
% right \ref{fn:2R1} are reversed in their numbers and in the stack at the |
| 97 |
% page bottom. However, the result is \emph{natural} because they are |
| 98 |
% numbered and stacked in the order of occurrence in the source |.tex| as |
| 99 |
% always done in any documents without \textsf{paracol} and with it but |
| 100 |
% \mcfnote{} footnote typesetting. Since the \textsf{paracol} cannot |
| 101 |
% maintain the order automatically\footnote{ |
| 102 |
% |
| 103 |
% So far, because the maintenance is extremely tough. But since it is not |
| 104 |
% impossible, some day you could have an improved version of |
| 105 |
% \textsf{paracol} with the automatic ordering.}, |
| 106 |
% |
| 107 |
% you have to maintain it by yourself. |
| 108 |
% |
| 109 |
% The problem is partly solved by using \!\footnote! with its optional |
| 110 |
% argument \oarg{num} to number the first right-column and the third |
| 111 |
% left-column footnotes explicitly, i.e., to give |
| 112 |
% $\mathit{num}=\ref{fn:2L3}$ to the former and $\mathit{num}=\ref{fn:2R1}$ |
| 113 |
% to the latter. One caution is that you have to remember that \!\footnote! |
| 114 |
% with the optional \meta{num} does not update \counter{footnote} counter |
| 115 |
% and thus you have to do |
| 116 |
% \!\setcounter!|{footnote}{|\texttt{\ref{fn:2L3}}|}| or |
| 117 |
% \!\addtocounter!|{footnote}{2}| after the third left-column footnote. |
| 118 |
% |
| 119 |
% This remedy, however, cannot change the stacking order of these two |
| 120 |
% footnotes of course. Therefore, you need another trick with |
| 121 |
% \!\footnotemark! and \!\footnotetext! to stack the third left-column |
| 122 |
% footnote above the first right-column one. More specifically, you can |
| 123 |
% solve the problem inserting |
| 124 |
% |
| 125 |
% \begin{quote} |
| 126 |
% \!\footnotetext!\texttt{[\ref{fn:2R1}]} |
| 127 |
% |{|\textit{text for the third left footnote}|}| |
| 128 |
% \end{quote} |
| 129 |
% |
| 130 |
% somewhere between \!\footnote! commands for the second left-column and the |
| 131 |
% first right-column ones, e.g., at the end of the second left-column |
| 132 |
% paragraph, and attaching its mark to the appropriate word for the footnote |
| 133 |
% by \!\footnotemark!\texttt{[\ref{fn:2R1}]}, to have the following. |
| 134 |
% |
| 135 |
% \Hrule |
| 136 |
% \begin{paracol}{2} |
| 137 |
% \fnpar{First left-column}{\footnote{First left-column |
| 138 |
% footnote.\label{fn:3L1}}} |
| 139 |
% \Fnpar{Second left-column}{\footnote{Second left-column |
| 140 |
% footnote.\label{fn:3L2}}}{ |
| 141 |
% It is followed by \cs{footnotetext}\texttt{[\ref{fn:3L3}]}\marg{text} |
| 142 |
% and a \cs{switchcolumn}.} |
| 143 |
% \addtocounter{footnote}{1} |
| 144 |
% \footnotetext[\arabic{footnote}]{Third left-column footnote given by |
| 145 |
% \cs{footnotetext}\texttt{[\ref{fn:3L3}]}\marg{text} placed at the end of |
| 146 |
% the second left-column paragraph.\label{fn:3L3}} |
| 147 |
% \switchcolumn |
| 148 |
% \addtocounter{footnote}{1} |
| 149 |
% \Fnpar{First right-column}{\footnote[\arabic{footnote}]{First right-column |
| 150 |
% footnote whose number \ref{fn:3R1} is explicitly given by |
| 151 |
% \cs{footnote}\texttt{[\ref{fn:3R1}]}\marg{text}.\label{fn:3R1}}}{It is |
| 152 |
% followed by a \cs{switchcolumn*}.} |
| 153 |
% \addtocounter{footnote}{-1} |
| 154 |
% \switchcolumn* |
| 155 |
% Third and synchronized left-column paragraph\Dotfill\\ |
| 156 |
% \Dotfill with a footnote whose mark |
| 157 |
% here\footnotemark[\arabic{footnote}]\Dotfill\\ |
| 158 |
% \Dotfill is given by \!\footnotemark!\texttt{[\ref{fn:3L3}]}\Dotfill in |
| 159 |
% it.\\ |
| 160 |
% It is followed by \!\addtocounter!|{footnote}{2}| and a \!\switchcolumn!. |
| 161 |
% \addtocounter{footnote}{1} |
| 162 |
% \switchcolumn |
| 163 |
% \fnpar{Second and synchronized right-column}{\footnote{Second right-column |
| 164 |
% footnote correctly following the first right-column one.\label{fn:3R2}}} |
| 165 |
% \fnpar{Third right-column}{\footnote{Third right-column |
| 166 |
% footnote.\label{fn:3R3}}} |
| 167 |
% \end{paracol} |
| 168 |
% \Hrule |
| 169 |
% |
| 170 |
% Though this solution gives a good result, however, it has the following |
| 171 |
% two problems. First, you have to explicitly specify the footnote number |
| 172 |
% through the optional arguments \oarg{num} of \!\footnote!, |
| 173 |
% \!\footnotetext! and \!\footnotemark!. This problem is quite severe |
| 174 |
% because, for example, if you add a footnote somewhere preceding the |
| 175 |
% \env{paracol} environment in question, you have to modify all |
| 176 |
% \oarg{num} arguments of footnote-related commands in the environment. |
| 177 |
% This means that when the footnote addition is done in the first page of a |
| 178 |
% 100-page document having \env{paracol} environments with explicitly numbered |
| 179 |
% footnotes in every page, you have to make the corrections for environments |
| 180 |
% in 99 pages. The other a little bit less severe problem is that you have |
| 181 |
% to keep \counter{footnote} counter having correct value by |
| 182 |
% \!\setcounter!, \!\addtocounter! or \!\stepcounter! for footnotes following |
| 183 |
% those with explicit numbering so that their numbers are given by the |
| 184 |
% default action of \!\footnote!. |
| 185 |
% |
| 186 |
% To cope with these two problems, \textsf{paracol} provides you with the |
| 187 |
% \emph{starred} versions of \!\footnote! and its relatives as introduced in |
| 188 |
% Section~\ref{sec:ref-scfnote} and detailedly explained in the next |
| 189 |
% Section~\ref{sec:fnnp-starred}. |
| 190 |
% |
| 191 |
% |
| 192 |
% |
| 193 |
% \subsection{Commands \cs{footnote*} and Relatives} |
| 194 |
% \label{sec:fnnp-starred} |
| 195 |
% |
| 196 |
% \begin{description} |
| 197 |
% \item[\Midx{\!\footnote!}\texttt{*}\oarg{|+|disp}\marg{text}]\mbox{} |
| 198 |
% \Item[\Midx{\!\footnote!}\texttt{*}\oarg{|-|disp}\marg{text}]\mbox{} |
| 199 |
% \Item[\Midx{\!\footnote!}\texttt{*}\oarg{disp}\marg{text}]\mbox{}\par |
| 200 |
% The command is similar to its non-starred counterpart but the explicit |
| 201 |
% numbering with the optional argument is done in \emph{self-relative} or |
| 202 |
% \emph{base-displacement} style. That is, if the optional argument has a |
| 203 |
% leading `|+|' or `|-|', the number given to the footnote is |
| 204 |
% $f+\meta{disp}$ or $f-\meta{disp}$ respectively where $f$ is the value of |
| 205 |
% \counter{footnote} counter, or in other words the number given to the last |
| 206 |
% footnote\footnote{ |
| 207 |
% |
| 208 |
% If it is put by the ordinary \cs{footnote}.}. |
| 209 |
% |
| 210 |
% Otherwise, i.e., the optional argument is a number without |+|/|-| sign, |
| 211 |
% the number given to the footnote is $b+\meta{disp}$ where $b$ is the base |
| 212 |
% value of \counter{footnote} counter at \beginparacol{} for the environment |
| 213 |
% in which the command appears, or in other words the number given to the |
| 214 |
% last \Preenv{} footnote\footnote{ |
| 215 |
% |
| 216 |
% Or the last footnote in the previous \env{paracol} environment, |
| 217 |
% etc.\label{fn:4L0}}. |
| 218 |
% |
| 219 |
% In addition, unlike the non-starred version, this command updates |
| 220 |
% \counter{footnote} counter with the number given to the footnote, i.e., |
| 221 |
% $f\gets f+\meta{disp}$, $f\gets f-\meta{disp}$ or $f\gets b+\meta{disp}$ |
| 222 |
% is performed, so that following \!\footnote! without explicit numbering |
| 223 |
% option have numbers $f+1$, $f+2$ and so on with new $f$. |
| 224 |
% |
| 225 |
% \begin{itemize} |
| 226 |
% \item |
| 227 |
% If the optional argument is not provided, it is assumed that |[+1]| is |
| 228 |
% given and thus \!\footnote!|*|\marg{text} acts as \!\footnote!\marg{text}. |
| 229 |
% \end{itemize} |
| 230 |
% |
| 231 |
% \item[\Midx{\!\footnotemark!}\rm|*[|{[|+-|]}\meta{disp}{|]|}]\mbox{}\par |
| 232 |
% This command is a mixture of its non-starred counterpart and |
| 233 |
% \!\footnote!|*|. That is the number for the footnote mark is calculated |
| 234 |
% in the way of \!\footnote!|*| and \counter{footnote} counter is updated. |
| 235 |
% |
| 236 |
% \item[\Midx{\!\footnotetext!}\rm|*[|{[|+-|]}\meta{disp}{|]|}\marg{text}] |
| 237 |
% \mbox{}\par |
| 238 |
% Without the optional argument |[|[|+-|]\meta{disp}|]|, this command does what |
| 239 |
% \!\footnotetext!\marg{text} does but in addition increments |
| 240 |
% \counter{footnote} counter before that. With the optional argument, on |
| 241 |
% the other hand, the number given to the footnote \meta{text} is calculated |
| 242 |
% as done in \!\footnote!, but the \counter{footnote} counter is not |
| 243 |
% updated. |
| 244 |
% \end{description} |
| 245 |
% |
| 246 |
% With these starred commands, you can produce the following using the |
| 247 |
% base-displacement mechanism without worrying about the absolute value of |
| 248 |
% \!\footnote! counter and its change. |
| 249 |
% |
| 250 |
% \Hrule |
| 251 |
% \begin{paracol}{2} |
| 252 |
% \tolerance5000\hbadness5000 |
| 253 |
% \fnpar{First left-column}{\footnote{First left-column |
| 254 |
% footnote.\label{fn:4L1}}} |
| 255 |
% \Fnpar{Second left-column}{\footnote{Second left-column |
| 256 |
% footnote.\label{fn:4L2}}}{ |
| 257 |
% It is followed by \cs{footnotetext}|*[3]|\marg{text} and a |
| 258 |
% \cs{switchcolumn}.} |
| 259 |
% \footnotetext*[3]{Third left-column footnote given by |
| 260 |
% \cs{footnotetext}|*[3]|\marg{text} placed at the end of |
| 261 |
% the second left-column paragraph to have |
| 262 |
% $\ref{fn:4L3}=\ref{fn:4L0}+3$.\label{fn:4L3}} |
| 263 |
% \switchcolumn |
| 264 |
% \Fnpar{First right-column}{\footnote*[4]{First right-column |
| 265 |
% footnote whose number \ref{fn:4R1} is given by |
| 266 |
% \cs{footnote}|*[4]|\marg{text} because |
| 267 |
% $\ref{fn:4R1}=\ref{fn:4L0}+4$.\label{fn:4R1}}}{It is followed by a |
| 268 |
% \cs{switchcolumn*}.} |
| 269 |
% \switchcolumn* |
| 270 |
% Third and synchronized left-column paragraph\Dotfill\\ |
| 271 |
% \Dotfill with a footnote whose mark |
| 272 |
% here\footnotemark*[3]\Dotfill\\ |
| 273 |
% is given by \!\footnotemark!|*[3]| because $\ref{fn:4L3}=\ref{fn:4L0}+3$. |
| 274 |
% It is followed by a \!\switchcolumn!. |
| 275 |
% \switchcolumn |
| 276 |
% \fnpar{Second and synchronized right-column}{\footnote*[5]{Second right-column |
| 277 |
% footnote produced by \cs{footnote}|*[5]|\marg{text} because |
| 278 |
% $\ref{fn:4R2}=\ref{fn:4L0}+5$.\label{fn:4R2}}} |
| 279 |
% \fnpar{Third right-column}{\footnote{Third right-column |
| 280 |
% footnote produced by \cs{footnote}\marg{text} because |
| 281 |
% $\ref{fn:4R3}=\ref{fn:4R2}+1$.\label{fn:4R3}}} |
| 282 |
% \end{paracol} |
| 283 |
% \newpage |
| 284 |
% |
| 285 |
% The other way to produce the same result except for the absolute footnote |
| 286 |
% numbers is to use the self-relative mechanism and to exploit the progress |
| 287 |
% of \counter{footnote} counter as follows. |
| 288 |
% |
| 289 |
% \Hrule |
| 290 |
% \begin{paracol}{2} |
| 291 |
% \tolerance5000\hbadness5000 |
| 292 |
% \fnpar{First left-column}{\footnote{First left-column |
| 293 |
% footnote.\label{fn:5L1}}} |
| 294 |
% \Fnpar{Second left-column}{\footnote{Second left-column |
| 295 |
% footnote.\label{fn:5L2}}}{ |
| 296 |
% It is followed by \cs{footnotetext}|*|\marg{text} and a |
| 297 |
% \cs{switchcolumn}.} |
| 298 |
% \footnotetext*{Third left-column footnote given by |
| 299 |
% \cs{footnotetext}|*|\marg{text} placed at the end of |
| 300 |
% the second left-column paragraph because it follows the second footnote |
| 301 |
% \ref{fn:5L2}.\label{fn:5L3}} |
| 302 |
% \switchcolumn |
| 303 |
% \Fnpar{First right-column}{\footnote{First right-column |
| 304 |
% footnote whose number \ref{fn:5R1} is given by |
| 305 |
% \cs{footnote}\marg{text} because |
| 306 |
% $\ref{fn:5R1}=\ref{fn:5L3}+1$ and \cs{footnotetext*} for \ref{fn:5L3} lets |
| 307 |
% \counter{footnote} have the value.\label{fn:5R1}}}{It is followed by a |
| 308 |
% \cs{switchcolumn*}.} |
| 309 |
% \switchcolumn* |
| 310 |
% Third and synchronized left-column paragraph\Dotfill\\ |
| 311 |
% \Dotfill with a footnote whose mark |
| 312 |
% here\footnotemark*[-1]\Dotfill\\ |
| 313 |
% is given by \!\footnotemark!|*[-1]| because $\ref{fn:5L3}=\ref{fn:5R1}-1$. |
| 314 |
% It is followed by a \!\switchcolumn!. |
| 315 |
% \switchcolumn |
| 316 |
% \fnpar{Second and synchronized right-column}{\footnote*[+2]{Second |
| 317 |
% right-column footnote produced by \cs{footnote}|*[+2]|\marg{text} because |
| 318 |
% $\ref{fn:5R2}=\ref{fn:5L3}+2$.\label{fn:5R2}}} |
| 319 |
% \fnpar{Third right-column}{\footnote{Third right-column |
| 320 |
% footnote produced by \cs{footnote}\marg{text} because |
| 321 |
% $\ref{fn:5R3}=\ref{fn:5R2}+1$.\label{fn:5R3}}} |
| 322 |
% \end{paracol} |
| 323 |
% \Hrule |
| 324 |
% |
| 325 |
% It depends on the structure of your document which of the |
| 326 |
% base-displacement and self-relative is better. If your document has |
| 327 |
% frequent switching between single- and multi-column text typesetting and |
| 328 |
% thus the contents of a \env{paracol} environment is relatively small, the |
| 329 |
% base-displacement is a good choice because you may concentrate on one |
| 330 |
% base value of \counter{footnote} counter. Otherwise, especially when your |
| 331 |
% document consists of one single and large \env{paracol} environment, the |
| 332 |
% base-displacement is almost equivalent to maintaining absolute values and |
| 333 |
% thus the self-relative should be preferred. |
| 334 |
% |
| 335 |
% Note that if the last \!\footnote! or \!\footnotemark! in a \env{paracol} |
| 336 |
% environment is starred, the command lets \counter{footnote} counter have |
| 337 |
% some value smaller than that for the last stacked footnote. For example, |
| 338 |
% if the second and third right-column footnotes \ref{fn:5R2} and |
| 339 |
% \ref{fn:5R3} are omitted from the example above, the last footnote-related |
| 340 |
% command will be \!\footnotemark!|*[-1]| which makes the counter at |
| 341 |
% \Endparacol{} \ref{fn:5L3} rather than \ref{fn:5R1}. You may not worry |
| 342 |
% about this problem, however, because \Endparacol{} automatically maintains |
| 343 |
% the counter letting it have $b+n$ where $n$ is the number of \!\footnote! |
| 344 |
% and \!\footnotemark! in the environment, if the maintenance is ordered by |
| 345 |
% the command \!\fncounteradjustment! which is automatically executed by |
| 346 |
% \!\footnoteplacement! with the argument |p| or |m|. |
| 347 |
% |
| 348 |
% |
| 349 |
% |
| 350 |
% \subsection{Page Break} |
| 351 |
% \label{sec:fnnp-pbreak} |
| 352 |
% |
| 353 |
% When a \env{paracol} environment with footnotes lays across a page boundary, |
| 354 |
% you could have some weird result even if the environment have just one |
| 355 |
% \!\switchcolumn! as shown below. |
| 356 |
% |
| 357 |
% \Hrule |
| 358 |
% \begin{paracol}{2} |
| 359 |
% First left-column paragraph \Dotfill\\ |
| 360 |
% \Dotfill with a footnote\footnote{First left-column |
| 361 |
% footnote.\label{fn:6L1}}\Dotfill\\ |
| 362 |
% \Dotfill\\ \Dotfill\\ \Dotfill\\ \Dotfill\\ \Dotfill\\ |
| 363 |
% \Dotfill in it. |
| 364 |
% \par |
| 365 |
% Second left-column paragraph \Dotfill\\ |
| 366 |
% \Dotfill with a footnote\footnote{Second left-column |
| 367 |
% footnote.\label{fn:6L2}} |
| 368 |
% \Dotfill in it. |
| 369 |
% \switchcolumn |
| 370 |
% First right-column paragraph \Dotfill\\ |
| 371 |
% \Dotfill with a footnote\footnote{First right-column |
| 372 |
% footnote weirdly placed here while the footnoted main text is in the |
| 373 |
% previous page.\label{fn:6R1}}\Dotfill\\ |
| 374 |
% \Dotfill\\ \Dotfill\\ \Dotfill\\ \Dotfill\\ \Dotfill\\ |
| 375 |
% \Dotfill in it. |
| 376 |
% \par |
| 377 |
% Second right-column paragraph \Dotfill\\ |
| 378 |
% \Dotfill with a footnote\footnote{Second right-column |
| 379 |
% footnote whose mark in the main text gives impression that footnote |
| 380 |
% numbering jumps from \ref{fn:6L2} to \ref{fn:6R2}.\label{fn:6R2}} |
| 381 |
% \Dotfill in it. |
| 382 |
% \end{paracol} |
| 383 |
% \Hrule |
| 384 |
% |
| 385 |
% Since the part of the source |.tex| for this example above is |
| 386 |
% fundamentally same as that in p.~\pageref{sec:fnnp} at the beginning of |
| 387 |
% this Section~\ref{sec:fnnp}, footnotes are simply numbered in |
| 388 |
% left-column-first manner without any tricks. However it results in |
| 389 |
% giving an impression that two paragraphs in each of both columns at the |
| 390 |
% bottom of the last page have footnote marks of inconsecutive numbers |
| 391 |
% \ref{fn:6L1} and \ref{fn:6R1} due to the second left-column paragraph and |
| 392 |
% the footnote \ref{fn:6L2} in it. More weirdly, the first right-column |
| 393 |
% footnote \ref{fn:6R1} is not put in the last page where its mark is shown |
| 394 |
% but is stacked below \ref{fn:6L2} in this page. |
| 395 |
% |
| 396 |
% The reason why this happens is that a footnote is not immediately put to |
| 397 |
% the bottom of the page where its mark resides but to the page constructing |
| 398 |
% at the time when the footnote is processed at the end of the paragraph in |
| 399 |
% which the corresponding \!\footnote! (or \!\footnotetext!) |
| 400 |
% occurs\footnote{ |
| 401 |
% |
| 402 |
% More accurately, the footnote is kept in a place in \TeX{} together with |
| 403 |
% other preceding but still unprocessed footnotes and then \TeX{} examines |
| 404 |
% them at the end of a paragraph in which a page break is found to decide |
| 405 |
% whether each of them is included in the page just being completed.}. |
| 406 |
% |
| 407 |
% Therefore, it may happen even in an ordinary single-column document or a |
| 408 |
% \env{paracol}ed multi-column one with \Mcfnote{}s that a |
| 409 |
% footnote is thrown to the page $p+1$ next to the page $p$ in which its |
| 410 |
% mark is left, when the mark is placed around the bottom of the page |
| 411 |
% $p$. |
| 412 |
% |
| 413 |
% This footnote placement mechanism becomes clearly visible in the example |
| 414 |
% above in which the footnote \ref{fn:6R1} is processed {\em after} the |
| 415 |
% second left-column paragraph is processed to complete the last page giving |
| 416 |
% no chance to the footnote placed in the page\footnote{% |
| 417 |
% |
| 418 |
% In fact, even \cs{footnote} for the footnote is processed after the page |
| 419 |
% break in this case.}. |
| 420 |
% |
| 421 |
% Therefore, the solution of this placement problem is to let the first |
| 422 |
% right-column footnote processed {\em before} the page is broken by the |
| 423 |
% progress of the left-column. That is, in the solution shown below the |
| 424 |
% author inserted \!\switchcolumn! after the first left-column paragraph to |
| 425 |
% let the first right-column paragraph and its footnote are processed, and |
| 426 |
% then did \!\switchcolumn! again after the right-column paragraph to go |
| 427 |
% back to the left-column. |
| 428 |
% |
| 429 |
% \Hrule |
| 430 |
% \begin{paracol}{2} |
| 431 |
% First left-column paragraph \Dotfill\\ |
| 432 |
% \Dotfill with a footnote\footnote{First left-column |
| 433 |
% footnote.\label{fn:7L1}}\Dotfill\\ |
| 434 |
% \Dotfill\\ \Dotfill\\ \Dotfill\\ \Dotfill\\ \Dotfill\\ \Dotfill\\ \Dotfill\\ |
| 435 |
% \Dotfill\\ \Dotfill\\ \Dotfill\\ \Dotfill\\ \Dotfill\\ \Dotfill\\ \Dotfill\\ |
| 436 |
% \Dotfill\\ |
| 437 |
% \Dotfill in it.\\ |
| 438 |
% It is followed by a \!\switchcolumn!. |
| 439 |
% \par\switchcolumn |
| 440 |
% First right-column paragraph \Dotfill\\ |
| 441 |
% \Dotfill with a footnote\footnote{First right-column |
| 442 |
% footnote which is now placed in this page where its mark \ref{fn:7R1} |
| 443 |
% resides.\label{fn:7R1}}\Dotfill\\ |
| 444 |
% \Dotfill\\ \Dotfill\\ \Dotfill\\ \Dotfill\\ \Dotfill\\ \Dotfill\\ \Dotfill\\ |
| 445 |
% \Dotfill\\ \Dotfill\\ \Dotfill\\ \Dotfill\\ \Dotfill\\ \Dotfill\\ \Dotfill\\ |
| 446 |
% \Dotfill in it.\\ |
| 447 |
% It is followed by a \!\switchcolumn! to go back to the left column. |
| 448 |
% \par\newpage\switchcolumn |
| 449 |
% Second left-column paragraph \Dotfill\\ |
| 450 |
% \Dotfill with a footnote\footnote{Second left-column |
| 451 |
% footnote whose number \ref{fn:7L2} follows the right-column footnote |
| 452 |
% \ref{fn:7R1} in the last page.\label{fn:7L2}} |
| 453 |
% \Dotfill in it.\\ |
| 454 |
% It is also followed by a \!\switchcolumn!. |
| 455 |
% \switchcolumn |
| 456 |
% Second right-column paragraph \Dotfill\\ |
| 457 |
% \Dotfill with a footnote\footnote{Second right-column |
| 458 |
% footnote whose number \ref{fn:7R2} follows the left-column footnote |
| 459 |
% \ref{fn:7L2}.\label{fn:7R2}} |
| 460 |
% \Dotfill in it. |
| 461 |
% \end{paracol} |
| 462 |
% \Hrule |
| 463 |
% |
| 464 |
% Unfortunately, this tactics does not always solve the problem. If a |
| 465 |
% left-column paragraph has a page break in it and a footnote before the |
| 466 |
% break, doing \!\switchcolumn! after the paragraph is too late to let |
| 467 |
% right-column footnotes reside in the page just having been broken, while |
| 468 |
% inserting \!\switchcolumn! before the paragraph should cause incorrect |
| 469 |
% stacking order. |
| 470 |
% |
| 471 |
% The remedy for this problem is similar to that shown in |
| 472 |
% Section~\ref{sec:fnnp-multsc} to cope with multiple \!\switchcolumn! in a |
| 473 |
% \env{paracol} environment. Here it is shown a little bit more formally. |
| 474 |
% Suppose we have a page in a \env{paracol} environment in which a page |
| 475 |
% break occurs in $p_l$-th and $p_r$-th paragraphs in the left and right |
| 476 |
% columns respectively. Thus we have $p_l-1$ and $p_r-1$ completed |
| 477 |
% paragraphs in each of both columns. Let $n_l$ (resp.\ $n_r$) be the |
| 478 |
% number of footnotes in the pre-break left-column (resp.\ right-column) |
| 479 |
% paragraphs, and $m_l$ (resp.\ $m_r$) be the number of pre-break footnotes |
| 480 |
% in the $p_l$-th (resp.\ $p_r$-th) paragraph. Thus we have $n_l+m_l$ |
| 481 |
% (resp.\ $n_r+m_r$) footnotes in the left (resp.\ right) column of the page |
| 482 |
% before the break. The following construct assures that those footnotes |
| 483 |
% are properly numbered and stacked at the bottom of the page. |
| 484 |
% |
| 485 |
% \begin{list}{}{\rightmargin\leftmargin \itemindent-.5\leftmargin |
| 486 |
% \listparindent\itemindent \leftmargin1.5\leftmargin \parsep0pt}\it\item |
| 487 |
% First to $(p_l-1)$-th paragraphs with $n_l$ footnotes in total given by |
| 488 |
% {\rm\!\footnote!\marg{text}}.\par |
| 489 |
% {\rm\!\footnotetext!|*{|{\it 1st footnote in $p_l$-th paragraph}|}|}\par |
| 490 |
% \mbox{\qquad}\ldots\par |
| 491 |
% {\rm\!\footnotetext!|*{|{\it$m_l$-th footnote in $p_l$-th paragraph}|}|}\par |
| 492 |
% \!\switchcolumn!\par |
| 493 |
% First to $(p_r-1)$-th paragraphs with $n_r$ footnotes in total given by |
| 494 |
% {\rm\!\footnote!\marg{text}}.\par |
| 495 |
% {\rm\!\footnotetext!|*{|{\it 1st footnote in $p_r$-th paragraph}|}|}\par |
| 496 |
% \mbox{\qquad}\ldots\par |
| 497 |
% {\rm\!\footnotetext!|*{|{\it$m_r$-th footnote in $p_r$-th paragraph}|}|}\par |
| 498 |
% \!\switchcolumn!\par |
| 499 |
% $p_l$-th paragraph whose first footnote mark is given by |
| 500 |
% {\rm\!\footnotemark!|*[-|$(m_l{+}n_r{+}m_r{-1})$|]|}, while second to |
| 501 |
% $m_l$-th ones are given by \!\footnotemark! without {\rm|*|} nor optional |
| 502 |
% {\rm\oarg{num}}. The first subsequent footnotes beyond the page break, if |
| 503 |
% any, is given by {\rm\!\footnote!|*[+|$(n_r{+}m_r{+1})$|]|\marg{text}} |
| 504 |
% while further subsequent ones are given by |
| 505 |
% {\rm\!\footnote!\marg{text}}.\par |
| 506 |
% \!\switchcolumn!\par |
| 507 |
% $p_r$-th paragraph whose first footnote mark is given by |
| 508 |
% {\rm\!\footnotemark!|*[-|$(m_r{+}k_l{-1})$|]|} where $k_l$ is the number |
| 509 |
% of left-column footnotes beyond the break, while second to $m_r$-th ones |
| 510 |
% are given by \!\footnotemark!. The first subsequent footnotes beyond the |
| 511 |
% page break, if any, is given by |
| 512 |
% {\rm\!\footnote!|*[+|$(k_l{+1})$|]|\marg{text}}, while further subsequent |
| 513 |
% ones are given by {\rm\!\footnote!\marg{text}}. |
| 514 |
% \end{list} |
| 515 |
% % |
| 516 |
% The example shown in the next two pages is for the case of |
| 517 |
% $p_l=p_r=n_l=n_r=m_l=m_r=k_l=2$. |
| 518 |
% |
| 519 |
% \newpage |
| 520 |
% \Hrule |
| 521 |
% \begin{paracol}{2} |
| 522 |
% First left-column paragraph with two footnotes\break |
| 523 |
% \mbox{}\Dotquad here\footnote{First left-column footnote given by |
| 524 |
% \cs{footnote}\marg{text}.\label{fn;8L1}} by |
| 525 |
% \!\footnote!\marg{text}\Dotfill\\ |
| 526 |
% \Dotquad and here\footnote{Second left-column footnote also given by |
| 527 |
% \cs{footnote}\marg{text}.\label{fn:8L2}} also by |
| 528 |
% \!\footnote!\marg{text}\Dotfill\\ |
| 529 |
% \Dotfill\\\Dotfill\\\Dotfill\\\Dotfill\\\Dotfill\\ |
| 530 |
% \Dotfill\\\Dotfill\\\Dotfill\\\Dotfill\\\Dotfill\\ |
| 531 |
% \Dotfill\\\Dotfill\\\Dotfill\\\Dotfill\\\Dotfill\\ |
| 532 |
% followed by a series of \!\footnotetext!|*|\marg{text} and then a |
| 533 |
% \!\switchcolumn!. |
| 534 |
% \footnotetext*{Third left-column footnote given by |
| 535 |
% \cs{footnotetext*}\marg{text}.\label{fn:8L3}} |
| 536 |
% \footnotetext*{Fourth left-column footnote given by |
| 537 |
% \cs{footnotetext*}\marg{text}.\label{fn:8L4}} |
| 538 |
% |
| 539 |
% \switchcolumn |
| 540 |
% First right-column paragraph with two footnotes\break |
| 541 |
% \mbox{}\Dotquad here\footnote{First right-column footnote given by |
| 542 |
% \cs{footnote}\marg{text}.\label{fn;8R1}} by |
| 543 |
% \!\footnote!\marg{text}\Dotfill\\ |
| 544 |
% \Dotquad and here\footnote{Second right-column footnote also given by |
| 545 |
% \cs{footnote}\marg{text}.\label{fn:8R2}} also by |
| 546 |
% \!\footnote!\marg{text}\Dotfill\\ |
| 547 |
% \Dotfill\\\Dotfill\\\Dotfill\\\Dotfill\\\Dotfill\\ |
| 548 |
% \Dotfill\\\Dotfill\\\Dotfill\\\Dotfill\\\Dotfill\\ |
| 549 |
% \Dotfill\\\Dotfill\\\Dotfill\\\Dotfill\\\Dotfill\\ |
| 550 |
% followed by a series of \!\footnotetext!|*|\marg{text} and then a |
| 551 |
% \!\switchcolumn!. |
| 552 |
% \footnotetext*{Third right-column footnote given by |
| 553 |
% \cs{footnotetext*}\marg{text}.\label{fn:8R3}} |
| 554 |
% \footnotetext*{Fourth right-column footnote given by |
| 555 |
% \cs{footnotetext*}\marg{text}.\label{fn:8R4}} |
| 556 |
% |
| 557 |
% \switchcolumn |
| 558 |
% Second left-column paragraph across two pages\break |
| 559 |
% \mbox{}\Dotquad with two pre-break footnotes\Dotfill\\ |
| 560 |
% \Dotquad here\footnotemark*[-5] by \!\footnotemark!|*[-5]| |
| 561 |
% because $m_l+n_r+m_r-1=2+2+2-1=5$ and thus |
| 562 |
% $\ref{fn:8L3}=\ref{fn:8R4}-5$\Dotfill\\ |
| 563 |
% \Dotquad and here\footnotemark{} by \!\footnotemark!\Dotfill\\ |
| 564 |
% \Dotfill\\\Dotfill\\\Dotfill\\\Dotfill\\\Dotfill\\ |
| 565 |
% \Dotfill\\\Dotfill\\\Dotfill\\\Dotfill\\\Dotfill\\ |
| 566 |
% \Dotfill\\\Dotfill\\\Dotfill\\\Dotfill\\\Dotfill\\ |
| 567 |
% \Dotfill\\\Dotfill\\ |
| 568 |
% \Dotquad and two post-break footnotes\Dotfill\\ |
| 569 |
% \Dotquad here\footnote*[+5]{Fifth left-column footnote given by |
| 570 |
% \cs{footnote}|*[+5]| because $n_r+m_r+1=2+2+1=5$ and thus |
| 571 |
% $\ref{fn:8L5}=\ref{fn:8L4}+5$.\label{fn:8L5}} by |
| 572 |
% \!\footnote!|*[+5]|\marg{text}\Dotfill\\ |
| 573 |
% \Dotquad and here\footnote{Sixth left-column footnote given by |
| 574 |
% \cs{footnote}\marg{text}.\label{fn:8L6}} by |
| 575 |
% \!\footnote!\marg{text}\Dotfill\\ |
| 576 |
% followed by a \!\switchcolumn!. |
| 577 |
% |
| 578 |
% \switchcolumn |
| 579 |
% Second right-column paragraph across two pages\break |
| 580 |
% \mbox{}\Dotquad with two pre-break footnotes\Dotfill\\ |
| 581 |
% \Dotquad here\footnotemark*[-3] by \!\footnotemark!|*[-3]| |
| 582 |
% because $m_r+k_l-1=2+2-1=3$ and thus |
| 583 |
% $\ref{fn:8R3}=\ref{fn:8L6}-3$\Dotfill\\ |
| 584 |
% \Dotquad and here\footnotemark{} by \!\footnotemark!\Dotfill\\ |
| 585 |
% \Dotfill\\\Dotfill\\\Dotfill\\\Dotfill\\\Dotfill\\ |
| 586 |
% \Dotfill\\\Dotfill\\\Dotfill\\\Dotfill\\\Dotfill\\ |
| 587 |
% \Dotfill\\\Dotfill\\\Dotfill\\\Dotfill\\\Dotfill\\ |
| 588 |
% \Dotfill\\\Dotfill\\ |
| 589 |
% \Dotquad and two post-break footnotes\Dotfill\\ |
| 590 |
% \Dotquad here\footnote*[+3]{Fifth right-column footnote given by |
| 591 |
% \cs{footnote}|*[+3]| because $k_l+1=3$ and thus |
| 592 |
% $\ref{fn:8R5}=\ref{fn:8R4}+3$.\label{fn:8R5}} by |
| 593 |
% \!\footnote!|*[+3]|\marg{text}\Dotfill\\ |
| 594 |
% \Dotquad and here\footnote{Sixth right-column footnote given by |
| 595 |
% \cs{footnote}\marg{text}.\label{fn:8R6}} by |
| 596 |
% \!\footnote!\marg{text}\Dotfill. |
| 597 |
% \end{paracol} |
| 598 |
% \Hrule |
| 599 |
% |
| 600 |
% Note that though the remedy works well as shown above, it is not a good |
| 601 |
% idea to do that when you are writing draft versions of your document |
| 602 |
% because page break points go up and down by your modifications to the |
| 603 |
% document. Therefore, it is recommended to put all footnotes by |
| 604 |
% non-starred \!\footnote! until your document becomes perfect except for |
| 605 |
% footnote numbering and placement and then to adjust them by the technique |
| 606 |
% described in this section. |
| 607 |
% |
| 608 |
% \endinput |