summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/anysize
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/anysize
Initial commit
Diffstat (limited to 'macros/latex/contrib/anysize')
-rw-r--r--macros/latex/contrib/anysize/README27
-rw-r--r--macros/latex/contrib/anysize/anysize.pdfbin0 -> 44577 bytes
-rw-r--r--macros/latex/contrib/anysize/anysize.sty89
-rw-r--r--macros/latex/contrib/anysize/anysize.tex86
4 files changed, 202 insertions, 0 deletions
diff --git a/macros/latex/contrib/anysize/README b/macros/latex/contrib/anysize/README
new file mode 100644
index 0000000000..c097a3c420
--- /dev/null
+++ b/macros/latex/contrib/anysize/README
@@ -0,0 +1,27 @@
+Anysize is a simple package that can be used to set up the margins
+of a document.
+
+This package is obsolete. Use the package typearea to define your
+margins typographically correct. Use the package geometry or vmargin
+for everything else.
+
+The files of this distribution are:
+ README the file that you are just reading
+ anysize.tex source code for the documentation
+ anysize.sty LaTeX package file
+
+Installation instructions for a TDS compiant system:
+
+1) process the documentation
+ latex anysize
+
+2) install the files (texmf stands for the root of your texmf system)
+ anysize.sty -> texmf/tex/latex/misc
+ README, anysize.dvi -> texmf/doc/latex/anysize
+
+Legal stuff:
+
+All these files are hereby put into the public domain. Please change
+the name of the package if you make changes.
+
+Thoams Esser, te@informatik.uni-hannover.de, Nov. 2001
diff --git a/macros/latex/contrib/anysize/anysize.pdf b/macros/latex/contrib/anysize/anysize.pdf
new file mode 100644
index 0000000000..3055a78ea0
--- /dev/null
+++ b/macros/latex/contrib/anysize/anysize.pdf
Binary files differ
diff --git a/macros/latex/contrib/anysize/anysize.sty b/macros/latex/contrib/anysize/anysize.sty
new file mode 100644
index 0000000000..da692cceb9
--- /dev/null
+++ b/macros/latex/contrib/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
diff --git a/macros/latex/contrib/anysize/anysize.tex b/macros/latex/contrib/anysize/anysize.tex
new file mode 100644
index 0000000000..167d1dbb4a
--- /dev/null
+++ b/macros/latex/contrib/anysize/anysize.tex
@@ -0,0 +1,86 @@
+% Documentation for the anysize-Styleoption
+\NeedsTeXFormat{LaTeX2e}
+
+\documentclass[a4paper]{article}
+\usepackage{anysize}
+\usepackage{ae}
+
+% Options for anysize
+\marginsize{3cm}{3cm}{3cm}{3cm}
+
+\newcommand{\anysize}{{\large a}{\small\bf n}{\sl y}{\Large\tt s}{\it i}{\sf\footnotesize z}e}
+
+\begin{document}
+
+\title{{\tt anysize.sty} ---
+to set the margin sizes in \LaTeX}
+
+\author{
+first version: Michael Salzenberg,\\
+conversion to \LaTeX2e{}: Thomas Esser,\\
+documentation: Dirk Hillbrecht\thanks{eMail--addresses:
+{\tt te@informatik.uni-hannover.de}, {\tt dh@chitec.de}}
+}
+\date{v1.0, Aug 13, 1994}
+\maketitle
+\thispagestyle{empty}
+
+\section{Overview}
+
+\anysize{} is a \LaTeX{} package set the papersize and the margins of
+a document. These settings are done by one simple command.
+
+\anysize{} is \LaTeX2e--compilant and does not run with the
+obsolete \LaTeX{} 2.09 format.
+
+Many thanks go to Michael Salzenberg, who made the first implementation of
+this style. He does not want to be bothered with the wide-area-publication
+of the style, so Thomas --- who converted it to \LaTeX2e{} --- and me,
+who documented it properly (I hope {\tt :-)}), maintain it now. Therefore,
+are only our email adresses are given.
+
+\section{Usage}
+
+\anysize{} is usually loaded by the \verb|\usepackage|--directive. The
+style knows options for defining the paper size ({\tt a4paper}, {\tt a5paper}
+etc.) and one additional option {\tt germanpar}, that changes the margins of
+the paragraphes in the document particulary.
+
+After inclusion of \anysize{}, there are two new commands available for the document preamble:
+
+\begin{itemize}
+\item \verb|\papersize{|{\it width}\verb|}{|{\it height}\verb|}|: sets the paper size. This command
+ should not be used anymore, as there are standardized style options for the standard paper sizes
+ to be passed through the \verb|\documentclass|--command in the header of the document.
+\item \verb|\marginsize{|{\it left}\verb|}{|{\it right}\verb|}{|{\it
+top}\verb|}{|{\it bottom}\verb|}|:
+ sets the margin sizes. This is the really interesting thing of the whole one. In two--sided
+ documents, left and right margin are those ones for the rectos. For the backs, they are swapped.
+\end{itemize}
+
+These are the default settings, as long as none of the above commands is given:
+$$\mbox{\begin{tabular}{lr}
+\multicolumn{2}{l}{paper size\footnotemark{}:} \\
+\hline
+width & 21,0 cm \\
+height & 29,7 cm \\
+\multicolumn{2}{l}{(DIN A4)} \\
+\\
+\end{tabular}}
+\hspace{5em}
+\mbox{\begin{tabular}{lr}
+\multicolumn{2}{l}{margin sizes:} \\
+\hline
+left & 3,0 cm \\
+right & 2,0 cm \\
+top & 2,0 cm \\
+bottom & 2,0 cm \\
+\end{tabular}}$$
+
+\footnotetext{only if there is no style option for the paper size}
+
+\end{document}
+%% Local Variables: ***
+%% mode: LaTeX
+%% TeX-command-default: LaTeX2e
+%% End: ***