[texhax] Changing \skip\footins locally

tom sgouros tomfool at as220.org
Wed Feb 11 17:28:13 CET 2009


Here's a try at a solution.  It appends a \changefoot command to the end
of the \output routine.  By redefining \changefoot, you can sneak
changes into the page measurements, and have them reflected in the pages
you're outputting.

Warning: this isn't what you'd call kosher, since messing with \output
often has unexpected consequences, but in the context of trying to muck
around with the final copy of a particular book, you may find it useful.
Note that I think you'll need to change the \changefoot definition
somewhere on the previous page to the one you're trying to fidget with.
But mess around with this, and I bet you'll see how to make it work for
you.

Hope this helps, 

 -tom



\documentclass{article}

\def\changefoot{\global\skip\footins=5\bigskipamount}

\newtoks\newoutput%
\global\newoutput\expandafter{\the\output}%
\global\output{%
  \expandafter\the\newoutput%
  \changefoot}%
\AtBeginDocument{\changefoot}


\newcommand{\lotsoftext}{Now is the time for all good men to change
  their documents to Unicode with the help of Yannis Haralambous's
  excellent book. }

\begin{document}

\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext\footnote{I'm not sure}
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext\footnote{What do we have here?}
\lotsoftext\def\changefoot{\global\skip\footins=10\bigskipamount}
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext

Hi there.

\lotsoftext
\lotsoftext
\lotsoftext\footnote{Did it change?}
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext
\lotsoftext

\end{document}



-- 
 ------------------------
 tomfool at as220 dot org
 http://sgouros.com  
 http://whatcheer.net


More information about the texhax mailing list