# This is -*- tcl -*- script which adds page headers of following
# format:

# <SECTION NUMBER>   <SECTION NAME>                        <PAGE>
# ---------------------------------------------------------------

# $Id: page_headers,v 1.5 1998/11/14 14:27:34 tobotras Exp $

rename pageLayout pageLayout_PageHeaders

proc pageLayout {} {
    return "
% Page layout

\\usepackage{fancyhdr}
\\pagestyle{fancy}
\\fancyhead{}
\\fancyfoot\[L,R,C\]{}
\\fancyhead\[LO,RE\]{\\parbox\[t\]{\\textwidth}{\\hfil\\rightmark\\hfil}}
\\fancyhead\[LE,RO\]{\\thepage}
\\renewcommand{\\headrulewidth}{0.75pt}
\\renewcommand{\\footrulewidth}{0pt}
\\renewcommand{\\sectionmark}\[1\]{\\markright{\\textsc{\#1}}}
\\renewcommand{\\subsectionmark}\[1\]{}
\\renewcommand{\\subsubsectionmark}\[1\]{}
\\renewcommand{\\paragraphmark}\[1\]{}
\\renewcommand{\\subparagraphmark}\[1\]{}
\\addtolength{\\headheight}{2\\baselineskip}
% 

[pageLayout_PageHeaders]
"
}
