summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tamefloats/newbug.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/tamefloats/newbug.tex
Initial commit
Diffstat (limited to 'macros/latex/contrib/tamefloats/newbug.tex')
-rw-r--r--macros/latex/contrib/tamefloats/newbug.tex47
1 files changed, 47 insertions, 0 deletions
diff --git a/macros/latex/contrib/tamefloats/newbug.tex b/macros/latex/contrib/tamefloats/newbug.tex
new file mode 100644
index 0000000000..0b479f20bf
--- /dev/null
+++ b/macros/latex/contrib/tamefloats/newbug.tex
@@ -0,0 +1,47 @@
+%% newbug.tex 2005/04/17 demonstrates tameflts.sty bug.
+%% (C) 2005 Uwe Lueck http://contact-ednotes.sty.de.vu
+%%
+%% RIGHTS: LaTeX Project Public License (LPPL) v1.3
+%% -- author-maintained.
+%
+% Remove the next `%' to see the bug (bug? see bottom):
+
+\documentclass[12pt]{article}
+
+% \usepackage{tameflts}
+
+\nofiles
+\begin{document}
+
+\newcommand{\footnobreakpar}{Test.\footnote{A note.}\par\nobreak}
+\footnobreakpar \footnobreakpar \footnobreakpar \footnobreakpar
+\footnobreakpar \footnobreakpar \footnobreakpar \footnobreakpar
+\footnobreakpar \footnobreakpar \footnobreakpar \footnobreakpar
+\footnobreakpar \footnobreakpar \footnobreakpar \footnobreakpar
+\footnobreakpar \footnobreakpar \footnobreakpar
+Test.\footnote{A note.}
+\begin{figure}
+\begin{center}
+\leavevmode\vrule height 10em
+\end{center}
+\caption{An upright stroke.}
+\end{figure}
+
+\newcommand{\testpar}{Test.\par}
+\testpar \testpar \testpar \testpar \testpar \testpar
+\testpar \testpar \testpar \testpar \testpar \testpar
+\testpar \testpar \testpar \testpar \testpar
+
+\enddocument
+
+REMARKS:
+* Bug? This may be a matter of taste. However, I expect
+ agreement here that it is better to use two pages instead of
+ three (unless the user explicitly demands that the figure goes
+ to its own page).
+* I think the present example is rather artificial.
+* `License' may be funny with a demo file. Yet the part of LPPL
+ on changing/redistributing is useful here especially with the
+ \usepackage line, which should remain commented out for
+ distribution.
+