summaryrefslogtreecommitdiff
path: root/macros/latex209/contrib/misc/floatnohead.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex209/contrib/misc/floatnohead.sty')
-rw-r--r--macros/latex209/contrib/misc/floatnohead.sty13
1 files changed, 13 insertions, 0 deletions
diff --git a/macros/latex209/contrib/misc/floatnohead.sty b/macros/latex209/contrib/misc/floatnohead.sty
new file mode 100644
index 0000000000..7c29b5d915
--- /dev/null
+++ b/macros/latex209/contrib/misc/floatnohead.sty
@@ -0,0 +1,13 @@
+% if there are floats around
+% then set pagestyle to be empty
+% Original version posted to comp.text.tex Sebastian Rahtz
+% Modified by Don Hosek so that message is done with \message rather than
+% \typeout--this causes the message to appear when the page is output rather
+% than when it is processed.
+\def\@tryfcolumn #1{\global\@fcolmadefalse \xdef\@trylist{#1}\xdef\@failedlist
+ {}\begingroup \let\@elt\@xtryfc \@trylist \endgroup
+ \if@fcolmade
+ \message{Page with floats and nothing else}
+ \thispagestyle{empty}
+\@vtryfc #1
+\fi}