## Foldmarks - or how to make TeX think there isn't got anything

### Foldmarks - or how to make TeX think there isn't got anything

I wanted to put some foldmarks on a document (a leaflet type thing).
I am quite happy to call a macro from inside the document to place
them. My approach was to stick everything into a \vbox, or an \hbox,
with length/width zero. It works all right and does not mess with the
other things on the page. Well, sorta.

The problem ist that if I do this at the beginning of the page (there
I know where I am, so that the marks get where I want them), TeX
thinks that there is something on the page (obviously),
whether empty or not, and does not remove the vspace any more it would
otherwise remove at the beginning of the page. I can't easily take
the vspace out myself because it is produced by*environments
(e.g. center).

Is there a solution for placing something on the page without
changing the state TeX is in with respect to removing space?

Thanks a lot for any ideas!

Volker

### Foldmarks - or how to make TeX think there isn't got anything

Quote:> [...]

>Is there a solution for placing something on the page without
>changing the state TeX is in with respect to removing space?

What about putting the macro for the foldmarks into the page heading ?

Quote:

>Thanks a lot for any ideas!

>Volker

Stephan

---

I'm a student at the University of Dortmund, Germany.
All opinions are mine.

Just today I became aware of the flafter' package, which the _The_LaTeX_
_Companion_ describes like this (page 144):

The float placement algorithm prefers to put floats at the top of the
page, even if this means placing them before the actual reference.
This is not always acceptable but there is no easy cure for this
problem short of substantially changing LaTeX's algorithm.  This is
done in the flafter' package (by Frank Mittelbach) which ensures that
floats never come before their reference.

This sounds like just what I need for formatting my thesis!  My University's
thesis formatting rules say that a table or figure may not appear before its
first reference in the text of the thesis --- a float may not appear at the top
of the page on which it is first referenced.  So flafter' does just what I
want...

...but not quite.  What I've discovered is that flafter' really doesn't pay
attention to references; it simply prevents a float from appearing before its
point of definition in the LaTeX source file.  So long as I define each float
after its first reference, there's no problem, right?  Not quite.  Sometimes I
have this situation:

Start of paragraph .... .... .... .... .... .... .... .... ....
.... .... .... .... .... .... as illustrated in Figure N .... .... ....
.... .... .... .... .... .... .... .... .... .... .... .... .... ....
.... .... .... .... .... .... .... .... .... .... .... .... .... ....

------------------------------ PAGE BREAK -----------------------------

.... .... .... .... .... .... .... .... .... .... .... .... .... ....
.... .... .... .... .... .... .... .... .... .... .... .... .... ....
.... .... .... .... .... .... .... .... .... .... .... .... .... ....
.... .... .... .... .... .... .... .... .... .... .... .... and this
ends the paragraph.

<defintion of Figure N comes here in the LaTeX source>

In this new paragraph we .... .... .... ...

In these circumstances, it would be OK (and preferable) for Figure N to appear
at the top of the new page, because the initial reference to the figure fell on
the previous page.  But if I use flafter', the figure ends up at the bottom of
the page on which it appears.  While this seems to be OK by my University's
rules, it would be much better if flafter' were a little more flexible.

Any ideas?

Eric.

--
-------------------------------------------------------------------------------
Eric Eide          |          University of Utah Department of Computer Science