diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/latex-tipps-und-tricks/literat.sty')
-rw-r--r-- | Master/texmf-dist/doc/latex/latex-tipps-und-tricks/literat.sty | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/literat.sty b/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/literat.sty new file mode 100644 index 00000000000..53686be1bae --- /dev/null +++ b/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/literat.sty @@ -0,0 +1,44 @@ +% Seitenstil fuer Literarisches +\RequirePackage{ifthen} + +\ifthenelse{\boolean{@twoside}} + % zweiseitig + {\newcommand{\ps@literature}{ + \let\@mkboth\markboth + \renewcommand{\chaptermark}[1] + {\markboth{\@chapapp~\thechapter% + \hspace{1em}##1}{}} + \renewcommand{\sectionmark}[1] + {\markright{\thesection\hspace{1em}##1}} + \renewcommand{\subsectionmark}[1]{} + \renewcommand{\@oddfoot}{} + \renewcommand{\@evenfoot}{} + \renewcommand{\@oddhead} + {\vbox{\hsize=\textwidth + \hbox to \textwidth{\hfil% + {\small\scshape\rightmark}\hfil\thepage}% + \vskip3pt\hrule height1pt \vskip1pt \hrule}} + \renewcommand{\@evenhead} + {\vbox{\hsize=\textwidth + \hbox to \textwidth{\thepage\hfil% + \small\scshape\leftmark\hfil}% + \vskip3pt\hrule height1pt \vskip1pt \hrule}} + } + } + % einseitig + {\newcommand{\ps@literature}{ + \let\@mkboth\markboth + \renewcommand{\chaptermark}[1]{} + \renewcommand{\sectionmark}[1] + {\markright{\thesection\hspace{1em}##1}} + \renewcommand{\subsectionmark}[1]{} + \renewcommand{\@oddfoot}{} + \renewcommand{\@evenfoot}{} + \renewcommand{\@oddhead} + {\vbox{\hsize=\textwidth + \hbox to \textwidth{\hfil% + {\small\scshape\rightmark}\hfil\thepage}% + \vskip3pt\hrule height1pt \vskip1pt \hrule}} + \renewcommand{\@evenhead}{} + } + } |