summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/literat.sty
blob: 53686be1bae941f3564c4dea639a70782709e801 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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}{}
   }
  }