summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/stdpage
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2006-11-06 01:06:06 +0000
committerNorbert Preining <preining@logic.at>2006-11-06 01:06:06 +0000
commit6ebd159ea2e62827f832b12137ec75a322e32ec0 (patch)
tree317793a8c1f76e8d6dcf3046420392fbd599f4ba /Master/texmf-dist/tex/latex/stdpage
parent3d2caaeddabf9f9bf2b309c6d3ba42e6b5dc71fa (diff)
Again loads of updates due to a long train ride
updates to: eskdx screenplay syntax (dvi->pdf) swebib substr (dvi->pdf) stdpage (one new test file) stdclsdv (dvi->pdf) ssqquote sseq sprite splitbib snapshot (pdf doc) smartref (new doc) smalltableof (new doc) siggraph sidecap shorttoc (new doc) sffms script (new doc) scientificpaper (new doc) scale savefnmark (new doc) sauterfonts (new doc) rtkinenc (new doc) added to tpm-ctan-check: tableaux syntax swebib svn supertabular substr subfloat subeqnarray subeqn stdpage stdclsdv stage stack ssqquote sseq srcltx sprite splitbib splines spie soul snapshot smartref smalltableof slideshow siggraph sidecap showlabels showdim shorttoc shadbox sffms seqsplit semaphor script scientificpaper scalebar scale savetrees savesym savefnmark sauterfonts rtkinenc most of them license checked in the TeX Catalogue git-svn-id: svn://tug.org/texlive/trunk@2392 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/stdpage')
-rw-r--r--Master/texmf-dist/tex/latex/stdpage/stdpage.sty64
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