diff options
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/tex/latex/stdpage/stdpage.sty | 135 |
1 files changed, 135 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/stdpage/stdpage.sty b/Master/texmf-dist/tex/latex/stdpage/stdpage.sty new file mode 100644 index 00000000000..dd6c16f0fed --- /dev/null +++ b/Master/texmf-dist/tex/latex/stdpage/stdpage.sty @@ -0,0 +1,135 @@ +%% +%% This is file `stdpage.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% stdpage.dtx (with options: `package') +%% +%% This is a generated file. +%% +%% Copyright (C) 2004 by Georg Michael Verweyen <Georg.Verweyen@rub.de> +%% +%% This file may be distributed and/or modified under the conditions of +%% the LaTeX Project Public License, either version 1.2 of this license +%% or (at your option) any later version. The latest version of this +%% license is in: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% and version 1.2 or later is part of all distributions of LaTeX version +%% 1999/12/01 or later. +%% +\NeedsTeXFormat{LaTeX2e}[1999/12/01] +\ProvidesPackage{stdpage} + [2004/12/20 v0.5 stdpage.sty] + + \RequirePackage{typearea% + ,ragged2e% + ,ifthen% + ,keyval% + ,lineno% + }% + \RequirePackage[htt]{hyphenat}% +\renewcommand{\familydefault}{\ttdefault}% +\renewcommand{\RaggedRightParindent}{\parindent}% + \newlength{\St@ndardLinewidth}% + \newlength{\St@ndardTextwidth}% + \newlength{\CharsX}% + \newlength{\CharsI}% + \newboolean{st@ndardjust}% + \newboolean{st@ndardnoindent}% + \newboolean{st@ndardnumbers}% + \newboolean{st@ndardhyphen}% + \setboolean{st@ndardhyphen}{true}% + \newboolean{st@ndardparskip}% + \setboolean{st@ndardparskip}{false}% + \newcommand*{\zeichenzahl}{60}% + \newcommand*{\zeilenzahl}{30}% + + +\define@key{stdpage}{block}[true]{%Aus kompatibilitätsgründen auf deutsch + \setboolean{st@ndardjust}{#1}% +}% +\define@key{stdpage}{just}[true]{% + \setboolean{st@ndardjust}{#1}% +}% +\define@key{stdpage}{noindent}[true]{% + \setboolean{st@ndardnoindent}{#1}% +}% +\define@key{stdpage}{linenumbers}[true]{% + \setboolean{st@ndardnumbers}{#1}% +}% +\define@key{stdpage}{hyphen}[true]{% + \setboolean{st@ndardhyphen}{#1}% +}% +\define@key{stdpage}{parskip}[true]{% + \setboolean{st@ndardparskip}{#1}% +}% +\define@key{stdpage}{chars}[60]{% + \renewcommand{\zeichenzahl}{#1}% +}% +\define@key{stdpage}{lines}[60]{% + \renewcommand{\zeilenzahl}{#1}% +}% +\define@key{stdpage}{baselinestretch}[1]{% + \renewcommand{\baselinestretch}{#1}% +}% +\def\ProcessOptionsWithKV#1{% + \let\@tempc\relax% + \let\stdpage@tempa\@empty% + \@for\CurrentOption:=\@classoptionslist\do{% + \@ifundefined{KV@#1@\CurrentOption}% + {}% + {\edef\stdpage@tempa{\stdpage@tempa,\CurrentOption,}}% + }% + \edef\stdpage@tempa{% + \noexpand\setkeys{#1}{% + \stdpage@tempa\@ptionlist{\@currname.\@currext}% + }% + }% + \stdpage@tempa% +}% +\AtBeginDocument{ + \settowidth{\CharsX}{1234567890}% + \setlength{\CharsI}{.1\CharsX}% + \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@ndardjust}}% + {}% + {% + \ifthenelse{\boolean{st@ndardhyphen}}% + {% + \setlength{\RaggedRightRightskip}{0em}% plus .5em minus .5em}% + \RaggedRight% + }% + {% + \raggedright% + }% + }% + \ifthenelse{\boolean{st@ndardnoindent}}% + {\setlength{\parindent}{0mm}}{}% + \ifthenelse{\boolean{st@ndardnumbers}}{% + \modulolinenumbers[5]% + \linenumbers% + \pagewiselinenumbers% + }{}% +}% + \frenchspacing + \emergencystretch=3em% +\ProcessOptionsWithKV{stdpage} +\AtEndOfPackage{% + \let\@unprocessedoptions\relax +} +\endinput% +\endinput +%% +%% End of file `stdpage.sty'. |