diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/stdpage')
-rw-r--r-- | Master/texmf-dist/tex/latex/stdpage/stdpage.sty | 64 |
1 files changed, 46 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/latex/stdpage/stdpage.sty b/Master/texmf-dist/tex/latex/stdpage/stdpage.sty index dd6c16f0fed..981afa265ec 100644 --- a/Master/texmf-dist/tex/latex/stdpage/stdpage.sty +++ b/Master/texmf-dist/tex/latex/stdpage/stdpage.sty @@ -22,8 +22,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{stdpage} - [2004/12/20 v0.5 stdpage.sty] - + [2005/03/30 v0.6 stdpage.sty] \RequirePackage{typearea% ,ragged2e% ,ifthen% @@ -31,6 +30,7 @@ ,lineno% }% \RequirePackage[htt]{hyphenat}% + \RequirePackage[rigidchapters]{titlesec}% \renewcommand{\familydefault}{\ttdefault}% \renewcommand{\RaggedRightParindent}{\parindent}% \newlength{\St@ndardLinewidth}% @@ -38,17 +38,20 @@ \newlength{\CharsX}% \newlength{\CharsI}% \newboolean{st@ndardjust}% + \setboolean{st@ndardjust}{false}% \newboolean{st@ndardnoindent}% + \setboolean{st@ndardnoindent}{false}% \newboolean{st@ndardnumbers}% + \setboolean{st@ndardnumbers}{false}% \newboolean{st@ndardhyphen}% \setboolean{st@ndardhyphen}{true}% \newboolean{st@ndardparskip}% \setboolean{st@ndardparskip}{false}% + \newboolean{st@ndardtypewriter}% + \setboolean{st@ndardtypewriter}{false}% \newcommand*{\zeichenzahl}{60}% \newcommand*{\zeilenzahl}{30}% - - -\define@key{stdpage}{block}[true]{%Aus kompatibilitätsgründen auf deutsch +\define@key{stdpage}{block}[true]{%Aus Kompatibilitätsgründen (zu v. 0.4) auf deutsch \setboolean{st@ndardjust}{#1}% }% \define@key{stdpage}{just}[true]{% @@ -69,12 +72,15 @@ \define@key{stdpage}{chars}[60]{% \renewcommand{\zeichenzahl}{#1}% }% -\define@key{stdpage}{lines}[60]{% +\define@key{stdpage}{lines}[30]{% \renewcommand{\zeilenzahl}{#1}% }% -\define@key{stdpage}{baselinestretch}[1]{% +\define@key{stdpage}{baselinestretch}[1.25]{% \renewcommand{\baselinestretch}{#1}% }% +\define@key{stdpage}{typewriter}[true]{% + \setboolean{st@ndardtypewriter}{#1}% +}% \end{macrocode} \def\ProcessOptionsWithKV#1{% \let\@tempc\relax% \let\stdpage@tempa\@empty% @@ -96,19 +102,24 @@ \setlength{\St@ndardLinewidth}{\zeichenzahl\CharsI}% \setlength{\St@ndardTextwidth}{0pt}%\topskip}% \addtolength{\St@ndardTextwidth}{\zeilenzahl\baselineskip}% - \ifthenelse{\boolean{st@ndardjust}}% - {% - \areaset[current]{.976\St@ndardLinewidth}{\St@ndardTextwidth}% - }% - {% - \areaset[current]{\St@ndardLinewidth}{\St@ndardTextwidth}% - }% + \ifthenelse{\boolean{st@ndardparskip}}% + {\setlength{\parskip}{\baselineskip}}{} +%%% \ifthenelse{\boolean{st@ndardjust}}% +%%% {% + \areaset[current]{.976\St@ndardLinewidth}{\St@ndardTextwidth}% +%%% }% +%%% {% +%%% \areaset[current]{\St@ndardLinewidth}{\St@ndardTextwidth}% +%%% }% \ifthenelse{\boolean{st@ndardjust}}% - {}% {% + \spaceskip=1\CharsI plus 1.5pt minus 0pt + }% + {% + \spaceskip=1\CharsI plus 0pt minus 0pt \ifthenelse{\boolean{st@ndardhyphen}}% {% - \setlength{\RaggedRightRightskip}{0em}% plus .5em minus .5em}% + \setlength{\RaggedRightRightskip}{0em minus .75em} \RaggedRight% }% {% @@ -122,9 +133,26 @@ \linenumbers% \pagewiselinenumbers% }{}% -}% + \ifthenelse{\boolean{st@ndardtypewriter}}% + {% + \let\sectfont\normalfont + \renewcommand{\footnotesize}{\normalsize} + \titleformat{\part}{\normalfont\normalsize\bfseries}{\thepart}{1em}{} + \titleformat{\chapter}{\normalfont\normalsize\bfseries}{\thechapter}{1em}{} + \titleformat{\section}{\normalfont\normalsize\bfseries}{\thesection}{1em}{} + \titleformat{\subsection}{\normalfont\normalsize\bfseries}{\thesubsection}{1em}{} + \titleformat{\subsubsection}{\normalfont\normalsize\bfseries}{\thesubsubsection}{1em}{} + \titleformat{\paragraph}{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{} + \titlespacing*{\part}{0pt}{5\baselineskip}{3\baselineskip} + \titlespacing*{\chapter}{0pt}{4\baselineskip}{3\baselineskip} + \titlespacing*{\section}{0pt}{3\baselineskip}{2\baselineskip} + \titlespacing*{\subsection}{0pt}{2\baselineskip}{1\baselineskip} + \titlespacing*{\subsubsection}{0pt}{1\baselineskip}{0pt} + \titlespacing*{\paragraph}{0pt}{1\baselineskip}{0pt} + }{}% \frenchspacing - \emergencystretch=3em% + \emergencystretch=2em% +}% \ProcessOptionsWithKV{stdpage} \AtEndOfPackage{% \let\@unprocessedoptions\relax |