I'm looking for a conditional that checks if the visual processor puts the depictable content of the macro that is going to be expanded at a specific place on the page where the content is placed.
The conditional should help me with the following task:
I have consecutive paragraphs that are separated by ornaments. Each ornament should only be processed if it's not the first box on the current page and if it's not the last box on the current page.
If my limited knowledge is right TeX
's text processor has nothing to do with the placement of the calculated boxes on the actual page. So the questioned conditional should instruct the visual processor to put the wanted information into an auxiliary file that could be read on the second pass.
Is it possible to request such information from the visual processor to operate with it in the source file?
Addendum:
Although it takes a while until i grasp the effect of the \leaders
directive i managed it with your help!
This is how it looks without using any leaders directive:
This is how it looks with \cleaders
:
\documentclass{article}
\usepackage[pdf]{pstricks}
\usepackage{psvectorian}
\usepackage{lipsum}
\newlength\TextDividerHeight
\setlength\TextDividerHeight{11ex}
\newcommand{\TextDivider}{%
\cleaders
\vbox to \TextDividerHeight{%
\vfil
\centering%
\psvectorian[color=black,scale=0.35]{88}%
\vfil
}%
\vskip \TextDividerHeight
}
\begin{document}
\section{section}
\lipsum[1]
\TextDivider
\lipsum[1]
\TextDivider
\lipsum[1]
\TextDivider
\lipsum[1]
\TextDivider
\lipsum[1]
\TextDivider
\lipsum[1]
\TextDivider
\lipsum[1]
\TextDivider
\lipsum[1]
\TextDivider
\section{section}
\end{document}
\leaders
, so it behaves like glue that disappears at page breaks. Can you add an example, please?\leaders
!