summaryrefslogtreecommitdiff
path: root/info/examples/ltt/literat.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /info/examples/ltt/literat.sty
Initial commit
Diffstat (limited to 'info/examples/ltt/literat.sty')
-rw-r--r--info/examples/ltt/literat.sty44
1 files changed, 44 insertions, 0 deletions
diff --git a/info/examples/ltt/literat.sty b/info/examples/ltt/literat.sty
new file mode 100644
index 0000000000..14b85fefed
--- /dev/null
+++ b/info/examples/ltt/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}{}
+ }
+ }