diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-13 00:00:27 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-13 00:00:27 +0000 |
commit | e9351f8ac4f8603d6020be78e092e939e24d89d0 (patch) | |
tree | 8685ab79522a6950137c99cb014279dedf34e334 /Master/texmf-dist/tex/latex/ncclatex/nccfit.clo | |
parent | 1fa165c67ca6c4bade32ffbec3cfcc8ea860507c (diff) |
ncclatex
git-svn-id: svn://tug.org/texlive/trunk@1131 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ncclatex/nccfit.clo')
-rw-r--r-- | Master/texmf-dist/tex/latex/ncclatex/nccfit.clo | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/ncclatex/nccfit.clo b/Master/texmf-dist/tex/latex/ncclatex/nccfit.clo new file mode 100644 index 00000000000..4bf31fc1d36 --- /dev/null +++ b/Master/texmf-dist/tex/latex/ncclatex/nccfit.clo @@ -0,0 +1,43 @@ +\ProvidesFile{nccfit.clo} + [2002/01/25 v1.00 Fit to page option (NCC)] +% +% Fits \textwidth, \textheight, and \marginparwidth to paper size. +% Got from standard size options. +% +\ifcase\@ptsize \setlength\textwidth{345\p@} +\or \setlength\textwidth{360\p@} +\or \setlength\textwidth{390\p@} +\or\or \setlength\textwidth{470\p@} +\fi +\if@twocolumn + \setlength\textwidth{2\textwidth} + \addtolength\textwidth{\columnsep} +\fi +\setlength\@tempdima{\paperwidth} +\addtolength\@tempdima{-2in} +\ifdim\@tempdima<\textwidth \setlength\textwidth{\@tempdima} \fi +\@settopoint\textwidth +% +\setlength\@tempdima{\paperheight} +\addtolength\@tempdima{-3.5in} +\divide\@tempdima\baselineskip +\@tempcnta=\@tempdima +\setlength\textheight{\@tempcnta\baselineskip} +\addtolength\textheight{\topskip} +% +\if@twoside + \setlength\@tempdima {\paperwidth} + \addtolength\@tempdima {-\textwidth} + \setlength\marginparwidth {.6\@tempdima} + \addtolength\marginparwidth {-\marginparsep} + \addtolength\marginparwidth {-.4in} +\else + \setlength\@tempdima {\paperwidth} + \addtolength\@tempdima {-\textwidth} + \setlength\marginparwidth {.5\@tempdima} + \addtolength\marginparwidth {-\marginparsep} + \addtolength\marginparwidth {-.8in} +\fi +\ifdim \marginparwidth >2in \setlength\marginparwidth{2in}\fi +\@settopoint\marginparwidth +\endinput |