Please tell me how to design a page (to be coded in the \pagestyle design code) in which only "text area" is boxed. Margins, header and footer must of out of this box. Plus i want to control the thickness and colour of the box.

Thanks, Satyendra

1 Answer 1


The following borrows the mechanism to place the frame from the showframe package. The \pagestyle mechanism isn't really necessary, but just because you asked for it I added it to this. The framedpage style doesn't change anything from the current page style (but you could add code that does), but just sets \myframetrue so that the frame is displayed. You can control the colour and thickness by redefining \myframecolor and \myframethickness.



\pretocmd\pagestyle{\myframefalse}{}{\GenericError{}{Patching failed}{}{}}

\usepackage{duckuments} % only for dummy text


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .