# This is -*- tcl -*- script which adds page footers of following
# format:
#
#<copyright sign>  , , <year>
#
# and page headers with small cap'ed current section name.
#
# $Id: jet_rus,v 1.3 1998/11/03 07:19:50 tobotras Exp $

# Can't be used with page_headers (yet).

global TEItools_page_headers_in_use
if { [info exists TEItools_page_headers_in_use] } {
    puts stderr "\n*** 'jet_pages' style can't be used with 'page_headers'!\n"
    exit 1
}

rename extraPreamble extraPreamble_JetRus

proc extraPreamble {} {
    return "
% Page layout

\\usepackage{fancyhdr}
\\pagestyle{fancy}
\\fancyhead{}
\\fancyfoot{}
\\fancyhead\[LE,RO\]{\\thepage}
\\fancyhead\[LO,RE\]{\\rightmark}
\\fancyfoot\[LO,RE\]{\\copyright{} Qualix Corp., 1997}
\\fancyfoot\[LE,RO\]{\\copyright{} \\textit{\cyr << >>, , [exec date +%Y]}}
\\renewcommand{\\headrulewidth}{0.75pt}
\\renewcommand{\\footrulewidth}{0.75pt}
\\renewcommand{\\sectionmark}\[1\]{\\markright{\\textsc{\\small \#1}}}
\\renewcommand{\\subsectionmark}\[1\]{}
\\renewcommand{\\subsubsectionmark}\[1\]{}
\\renewcommand{\\paragraphmark}\[1\]{}
\\renewcommand{\\subparagraphmark}\[1\]{}
%\\addtolength{\\headheight}{2\\baselineskip}
% 

[extraPreamble_JetRus]
"
}

rename defineTitlePageStyle {}

proc defineTitlePageStyle {} {
    return "%\\thispagestyle{empty}\n"
}
