summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tamefloats
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-08-08 17:56:22 +0000
committerKarl Berry <karl@freefriends.org>2012-08-08 17:56:22 +0000
commitdad94a4dcb71392996b045db358e9b09affeef74 (patch)
tree3e6bb4bc7dd773003f6ec21e736c8d8662cdd541 /Master/texmf-dist/doc/latex/tamefloats
parentcdb33d59d9cec048bac89cb1c4bc3aa2cfa9b19b (diff)
new old latex package tamefloats
git-svn-id: svn://tug.org/texlive/trunk@27345 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/tamefloats')
-rw-r--r--Master/texmf-dist/doc/latex/tamefloats/README.txt25
-rw-r--r--Master/texmf-dist/doc/latex/tamefloats/deml3541.tex37
-rw-r--r--Master/texmf-dist/doc/latex/tamefloats/fltfltdk.tex34
-rw-r--r--Master/texmf-dist/doc/latex/tamefloats/newbug.tex47
4 files changed, 143 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/tamefloats/README.txt b/Master/texmf-dist/doc/latex/tamefloats/README.txt
new file mode 100644
index 00000000000..cc67fb8fb11
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/tamefloats/README.txt
@@ -0,0 +1,25 @@
+README for tameflts.sty, 2004/04/21,
+Uwe Lueck http://contact-ednotes.sty.de.vu .
+
+The files address the problem that LaTeX floats and \marginpar
+may cause misplacement of footnotes or footnote splits. (The
+LaTeX code makes me also expect problems with \enlargethispage).
+
+tameflts.sty provides
+ * a simple, experimental fix, maybe just as a
+ contribution to discussion and as a summary of
+ what other authors have contributed;
+ * many explanations -- so go on reading there.
+
+deml3541.tex demonstrates the fix and adds a few explanations.
+
+newbug.tex demonstrates a weakness of tameflts, or that such a
+ simple approach does not perfectly suffice, rather
+ LaTeX needs an essentially new mechanism for
+ handling floats indeed.
+
+fltfltdk.tex varies deml3541.tex to test interaction with Mats
+ Dahlgren's package floatflt.
+
+(The package was called `noreins.sty' earlier, in folder
+`noreinserts'. Added infos on compatibility 2005/04/21.)
diff --git a/Master/texmf-dist/doc/latex/tamefloats/deml3541.tex b/Master/texmf-dist/doc/latex/tamefloats/deml3541.tex
new file mode 100644
index 00000000000..da68ebef425
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/tamefloats/deml3541.tex
@@ -0,0 +1,37 @@
+%% deml3451.tex 2005/04/17
+% Basically David Kastrup's test code from latex/3541,
+% edited by Uwe Lueck, http://contact-ednotes.sty.de.vu.
+% Demonstrates bug and its fix by tameflts.sty.
+% Run this and watch the order of the numbers in the
+% footnote, and where it has its footnote mark; then
+% remove the next `%' for the fix.
+
+\documentclass[12pt]{article}
+
+% \usepackage{tameflts}
+
+\newcounter{xxx}
+\usepackage{ifthen}
+\nofiles
+\begin{document}
+Test a footnote\footnote{%
+ \whiledo{\value{xxx}<69}{%
+ \stepcounter{xxx}
+ This is just test line \thexxx. \par
+ }%
+} and then a marginal note:\marginpar{\sffamily Look!}
+\end{document}
+
+REMARKs:
+* It is essential that \marginpar comes after \footnote. This
+ indicates how to avoid the problem in many situations without
+ changing the output routine. Marginal notes are often used
+ only at the beginning of a paragraph; then it is good to start
+ with the \marginpar's, making sure that they appear in
+ horizontal mode.
+* The editing of the example from latex/3541 consisted in
+ structuring and replacing TeX commands by LaTeX commands. The
+ essence is, like in latex/3719 a very long footnote, with a
+ \marginpar shortly following.
+-- U.L.
+
diff --git a/Master/texmf-dist/doc/latex/tamefloats/fltfltdk.tex b/Master/texmf-dist/doc/latex/tamefloats/fltfltdk.tex
new file mode 100644
index 00000000000..c1c104fb079
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/tamefloats/fltfltdk.tex
@@ -0,0 +1,34 @@
+%% fltfltdk.tex 2005/04/17
+% like deml3541.tex, but tests usage of tameflts.sty with
+% Mats Dahlgren's floatflt.sty which is available from
+% tex-archive/macros/latex/contrib/floatflt (through
+% .dtx and .ins).
+
+\documentclass[12pt]{article}
+\usepackage{floatflt}
+
+% \usepackage{tameflts}
+
+\newcounter{xxx}
+\usepackage{ifthen}
+\nofiles
+\begin{document}
+Test a footnote\footnote{%
+ \whiledo{\value{xxx}<46}{%
+ \stepcounter{xxx}
+ This is just test line \thexxx. \par
+ }%
+} and then a ``floating figure'':
+\begin{floatingfigure}{.4\linewidth}
+\vspace*{3\baselineskip}
+\textsf{Space for notes}
+\end{floatingfigure}
+\setcounter{xxx}{0}%
+\whiledo{\value{xxx}<39}{%
+ \stepcounter{xxx}
+ Testtext.
+}%
+
+\end{document}
+
+
diff --git a/Master/texmf-dist/doc/latex/tamefloats/newbug.tex b/Master/texmf-dist/doc/latex/tamefloats/newbug.tex
new file mode 100644
index 00000000000..0b479f20bfe
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/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.
+