Debian Codegraph @

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

raw
1 %% newbug.tex 2005/04/17 demonstrates tameflts.sty bug.
2 %% (C) 2005 Uwe Lueck http://contact-ednotes.sty.de.vu
3 %%
4 %% RIGHTS: LaTeX Project Public License (LPPL) v1.3
5 %% -- author-maintained.
6 %
7 % Remove the next `%' to see the bug (bug? see bottom):
8
9 \documentclass[12pt]{article}
10
11 % \usepackage{tameflts}
12
13 \nofiles
14 \begin{document}
15
16 \newcommand{\footnobreakpar}{Test.\footnote{A note.}\par\nobreak}
17 \footnobreakpar \footnobreakpar \footnobreakpar \footnobreakpar
18 \footnobreakpar \footnobreakpar \footnobreakpar \footnobreakpar
19 \footnobreakpar \footnobreakpar \footnobreakpar \footnobreakpar
20 \footnobreakpar \footnobreakpar \footnobreakpar \footnobreakpar
21 \footnobreakpar \footnobreakpar \footnobreakpar
22 Test.\footnote{A note.}
23 \begin{figure}
24 \begin{center}
25 \leavevmode\vrule height 10em
26 \end{center}
27 \caption{An upright stroke.}
28 \end{figure}
29
30 \newcommand{\testpar}{Test.\par}
31 \testpar \testpar \testpar \testpar \testpar \testpar
32 \testpar \testpar \testpar \testpar \testpar \testpar
33 \testpar \testpar \testpar \testpar \testpar
34
35 \enddocument
36
37 REMARKS:
38 * Bug? This may be a matter of taste. However, I expect
39 agreement here that it is better to use two pages instead of
40 three (unless the user explicitly demands that the figure goes
41 to its own page).
42 * I think the present example is rather artificial.
43 * `License' may be funny with a demo file. Yet the part of LPPL
44 on changing/redistributing is useful here especially with the
45 \usepackage line, which should remain commented out for
46 distribution.
47