summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-12 23:51:27 +0000
committerKarl Berry <karl@freefriends.org>2006-01-12 23:51:27 +0000
commit45415f6d5b60151d6e5d12dcab86d65e518a3826 (patch)
treef609783cb63489f15da939d7f07faf895be8b7d8 /Master/texmf-dist/tex/latex
parentba7546dbb6d29446ccc74f4143ad74c3abca10a0 (diff)
anysize
git-svn-id: svn://tug.org/texlive/trunk@667 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/anysize/anysize.sty89
1 files changed, 89 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/anysize/anysize.sty b/Master/texmf-dist/tex/latex/anysize/anysize.sty
new file mode 100644
index 00000000000..da692cceb95
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/anysize/anysize.sty
@@ -0,0 +1,89 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% anysize.sty --- version 1.0 --- Aug 13, 1994
+% set the paper&margin sizes in \LaTeX2e
+% This style is LaTeX2e-conformant
+% and will not run under ANY older version of LaTeX!
+% idea and first implementation: Michael Salzenberg
+% further programming, documentation and maintainance:
+% Thomas Esser (te@informatik.uni-hannover.de)
+% Dirk Hillbrecht (hillbrec@informatik.uni-hannover.de)
+% documentation: anysize.tex/dvi
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{anysize}[1994/08/13 setting margin sizes]
+\typeout{document style option `anysize' loaded}
+\typeout{Michael Salzenberg, Thomas Esser, Dirk Hillbrecht}
+\typeout{Version 1.0, Aug 13, 1994}
+%
+\DeclareOption{a4paper}
+ {\setlength\paperheight {297mm}%
+ \setlength\paperwidth {210mm}}
+\DeclareOption{a5paper}
+ {\setlength\paperheight {210mm}%
+ \setlength\paperwidth {148mm}}
+\DeclareOption{b5paper}
+ {\setlength\paperheight {250mm}%
+ \setlength\paperwidth {176mm}}
+\DeclareOption{letterpaper}
+ {\setlength\paperheight {11in}%
+ \setlength\paperwidth {8.5in}}
+\DeclareOption{legalpaper}
+ {\setlength\paperheight {14in}%
+ \setlength\paperwidth {8.5in}}
+\DeclareOption{executivepaper}
+ {\setlength\paperheight {10.5in}%
+ \setlength\paperwidth {7.25in}}
+\DeclareOption{landscape}
+ {\setlength\@tempdima {\paperheight}%
+ \setlength\paperheight {\paperwidth}%
+ \setlength\paperwidth {\@tempdima}}
+%
+% change paragraphe indenting (as in lkurz.dvi)
+\DeclareOption{germanpar}
+ {\setlength{\parindent}{0pt}%
+ \setlength{\parskip}{5pt plus 2pt minus 1pt}}
+% A4 is default paper size, if there is nothing set in the documentclass-statement
+\ExecuteOptions{a4paper}
+\ProcessOptions
+% standard settings (DIN A4)
+\newdimen\@Leftmargin \@Leftmargin=3.0cm
+\newdimen\@Rightmargin \@Rightmargin=2.0cm
+\newdimen\@Topmargin \@Topmargin=2.0cm
+\newdimen\@Bottommargin \@Bottommargin=2.0cm
+%
+\def\InitLayout{
+ \setlength{\textwidth}{\paperwidth}
+ \addtolength{\textwidth}{-\@Leftmargin}
+ \addtolength{\textwidth}{-\@Rightmargin}
+ \setlength{\textheight}{\paperheight}
+ \addtolength{\textheight}{-\@Topmargin}
+ \addtolength{\textheight}{-\@Bottommargin}
+ \addtolength{\textheight}{-\headheight}
+ \addtolength{\textheight}{-\headsep}
+ \addtolength{\textheight}{-\footskip}
+ \setlength{\oddsidemargin}{\@Leftmargin}
+ \addtolength{\oddsidemargin}{-1in}
+ \setlength{\evensidemargin}{\@Rightmargin}
+ \addtolength{\evensidemargin}{-1in}
+ \setlength{\topmargin}{\@Topmargin}
+ \addtolength{\topmargin}{-1in}
+}
+%
+\InitLayout
+%
+\def\papersize#1#2{
+ \paperwidth=#2
+ \paperheight=#1
+ \InitLayout
+}
+%
+\def\marginsize#1#2#3#4{
+ \@Leftmargin=#1
+ \@Rightmargin=#2
+ \@Topmargin=#3
+ \@Bottommargin=#4
+ \InitLayout
+}
+%
+\endinput