Debian Codegraph @

texmf-dist/doc/latex/tamefloats/deml3541.tex

raw
1 %% deml3451.tex 2005/04/17
2 % Basically David Kastrup's test code from latex/3541,
3 % edited by Uwe Lueck, http://contact-ednotes.sty.de.vu.
4 % Demonstrates bug and its fix by tameflts.sty.
5 % Run this and watch the order of the numbers in the
6 % footnote, and where it has its footnote mark; then
7 % remove the next `%' for the fix.
8
9 \documentclass[12pt]{article}
10
11 % \usepackage{tameflts}
12
13 \newcounter{xxx}
14 \usepackage{ifthen}
15 \nofiles
16 \begin{document}
17 Test a footnote\footnote{%
18 \whiledo{\value{xxx}<69}{%
19 \stepcounter{xxx}
20 This is just test line \thexxx. \par
21 }%
22 } and then a marginal note:\marginpar{\sffamily Look!}
23 \end{document}
24
25 REMARKs:
26 * It is essential that \marginpar comes after \footnote. This
27 indicates how to avoid the problem in many situations without
28 changing the output routine. Marginal notes are often used
29 only at the beginning of a paragraph; then it is good to start
30 with the \marginpar's, making sure that they appear in
31 horizontal mode.
32 * The editing of the example from latex/3541 consisted in
33 structuring and replacing TeX commands by LaTeX commands. The
34 essence is, like in latex/3719 a very long footnote, with a
35 \marginpar shortly following.
36 -- U.L.
37