summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/einfuehrung/05-02-8.ltx2
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-02-06 00:47:46 +0000
committerKarl Berry <karl@freefriends.org>2012-02-06 00:47:46 +0000
commitf2fb432b14a3c467c6ddfee4a19874fea886307d (patch)
tree4fbba0fc79f546e17e07adbb3db78860e4d39ed8 /Master/texmf-dist/doc/latex/einfuehrung/05-02-8.ltx2
parent27d1d1646fa5dc2daba1e09c2d2175c211d93def (diff)
new examples from (voss) german book einfuehrung (2feb12)
git-svn-id: svn://tug.org/texlive/trunk@25301 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/einfuehrung/05-02-8.ltx2')
-rw-r--r--Master/texmf-dist/doc/latex/einfuehrung/05-02-8.ltx269
1 files changed, 69 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/einfuehrung/05-02-8.ltx2 b/Master/texmf-dist/doc/latex/einfuehrung/05-02-8.ltx2
new file mode 100644
index 00000000000..539c47afd4c
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/einfuehrung/05-02-8.ltx2
@@ -0,0 +1,69 @@
+%%
+%% Ein Beispiel der DANTE-Edition
+%%
+%% Beispiel 05-02-8 auf Seite 131.
+%%
+%% Copyright (C) 2012 Herbert Voss
+%%
+%% It may be distributed and/or modified under the conditions
+%% of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%%
+%% See http://www.latex-project.org/lppl.txt for details.
+%%
+%%
+%% ====
+% Show page(s) 1,2,3
+%%
+\documentclass[]{screxabook}
+\pagestyle{empty}
+\setlength\parindent{0pt}
+\setlength\parskip{0.5\normalbaselineskip}
+\usepackage[T1]{fontenc}
+\usepackage[ngerman]{babel}
+\usepackage{geometry,blindtext,xcolor}
+\geometry{paperheight=239mm,paperwidth=169mm,tmargin=5mm,textwidth=124mm,textheight=195mm,
+ rmargin=22mm,heightrounded,includeheadfoot,headheight=5mm,headsep=8mm,foot=18mm,
+ marginparsep=2mm,marginparwidth=18mm}
+\makeatletter
+\newcommand\s@pt{\hspace{6pt}}
+\newcommand\chaptertext{K\s@pt a\s@pt p\s@pt i\s@pt t\s@pt e\s@pt l}
+\DeclareRobustCommand\headingfont{\sffamily\bfseries}
+\renewcommand\@makechapterhead[1]{\begingroup
+ \flushright
+ {\topskip\z@\null}
+ \headingfont\mdseries
+ \fontsize{14.4}{5.5pc minus .5pc}\selectfont
+ \textbf{\chaptertext}
+ \fontsize{36}{\f@baselineskip}\selectfont\ \thechapter\kern-2pt
+ \par
+ \fontsize{28}{24pt}\selectfont
+ \begin{minipage}{\linewidth}\flushright
+ \rule{0pt}{5pc}\normalfont\headingfont #1
+ \end{minipage}%
+ \null
+ \par\endgroup
+ \rule{0pt}{7.5pc}\par}
+\setcounter{chapter}{4}
+
+\usepackage{fancyhdr} \pagestyle{fancy}
+\fancypagestyle{plain}{\fancyhf{}\def\headrulewidth{0pt}}
+\fancyhf{} \fancyheadoffset[RO,LE]{30mm}
+\fancyhead[LE]{\mbox{\headingfont\smash{%
+ \setlength\fboxsep{0pt}\colorbox{black!80}{\makebox[22mm]{\hfill%
+ \ifnum\value{chapter}>0 \textcolor{white}{\fontsize{18}{19}\selectfont\thechapter}~\fi
+ \rule[-2.85pt]{2mm}{12mm}}}}\quad\small\leftmark}}
+\fancyhead[RO]{\small\headingfont\rightmark\quad\makebox[22mm]{}}
+\fancyfoot[LE]{\small\headingfont\llap{\thepage\ \rule[-13mm]{.6pt}{18mm}\hspace{1mm}}}
+\fancyfoot[RO]{\small\headingfont~
+ \hfill \rlap{\hspace{1mm}\rule[-13mm]{.6pt}{18mm}\ \thepage}}
+\renewcommand\chaptermark[1]{\markboth{#1}{}}
+\renewcommand\sectionmark[1]{\markright{\ifnum\c@secnumdepth>\@ne \thesection\quad#1\fi}}
+\makeatother
+
+\begin{document}
+\chapter{Textformatierungen}\section{Seitenstil}\blindtext\par\blindtext\newpage
+\section{Das Paket \texttt{scrpage2}} \blindtext[2]\par\blindtext\newpage
+\section{foobar}\blindtext[2]\par\blindtext\newpage
+\blindtext[2]
+\end{document}