[texhax] Top of Page

William Adams will.adams at frycomm.com
Sat Jul 29 18:47:08 CEST 2006


On Jul 29, 2006, at 11:49 AM, Peter Abbott wrote:

> I would like to be able to store a parameter value in a macro in
> LaTeX such that it prints at the top of each page. Is it possible?

The way I'd do this would be to define the header so that it  
contained a call to a macro which would initially be set to do  
nothing. Then, when the parameter value is set, renewcommand the  
macro so that it outputs the parameter value, if the parameter value  
is unset, renewcommand the macro to \relax.

You may want to check out the esopic package which may have a more  
elegant way of doing this.

If you want it to print out within the text block area, this is a  
trickier problem, requiring you to insert the macro in a float, or  
adjusting the text block area for that page only. This is doable, but  
it's tricky in some circumstances.

William

-- 
William Adams
senior graphic designer
Fry Communications



This email message and any files transmitted with it contain information
which is confidential and intended only for the addressee(s). If you are
not the intended recipient(s), any usage,  dissemination, disclosure, or
action taken in  reliance on it is prohibited.  The reliability of  this
method of communication cannot be guaranteed.  Email can be intercepted,
corrupted, delayed, incompletely transmitted, virus-laden,  or otherwise
affected during transmission. Reasonable steps have been taken to reduce
the risk of viruses, but we cannot accept liability for damage sustained
as a result of this message. If you have received this message in error,
please immediately delete it and all copies of it and notify the sender.


More information about the texhax mailing list