From 86d7ee7f07e962b1b62426b2db62a35ea40be057 Mon Sep 17 00:00:00 2001 From: Manuel Pégourié-Gonnard Date: Mon, 7 Jul 2008 13:54:04 +0000 Subject: refman update git-svn-id: svn://tug.org/texlive/trunk@9332 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/refman/refart.cls | 55 +++++++++++++++++-------- Master/texmf-dist/tex/latex/refman/refrep.cls | 59 ++++++++++++++++++--------- 2 files changed, 78 insertions(+), 36 deletions(-) (limited to 'Master/texmf-dist/tex/latex/refman') diff --git a/Master/texmf-dist/tex/latex/refman/refart.cls b/Master/texmf-dist/tex/latex/refman/refart.cls index 0e22bcb1226..2416b18a3a5 100644 --- a/Master/texmf-dist/tex/latex/refman/refart.cls +++ b/Master/texmf-dist/tex/latex/refman/refart.cls @@ -35,7 +35,7 @@ %% Right brace \} Tilde \~} \NeedsTeXFormat{LaTeX2e}[1995/12/01] \ProvidesClass{refart} - [2003/05/31 v2.0d + [2006/11/13 v2.0e LaTeX document class] \newcommand\@ptsize{} \newif\if@restonecol @@ -59,12 +59,35 @@ \DeclareOption{executivepaper} {\setlength\paperheight {10.5in}% \setlength\paperwidth {7.25in}} +\newlength\papermarginwidth +\setlength\papermarginwidth {1in} +\DeclareOption{smallborder} + {\setlength\papermarginwidth {0.25in}} \DeclareOption{landscape} {\setlength\@tempdima {\paperheight}% \setlength\paperheight {\paperwidth}% \setlength\paperwidth {\@tempdima}} \DeclareOption{square} {\setlength\paperheight {\paperwidth}} +\DeclareOption{dvips}{\AtBeginDocument{\AtBeginDvi{% + \special{papersize=\the\paperwidth,\the\paperheight}}}} + +\DeclareOption{pdftex}{\AtBeginDocument{% + \pdfpagewidth=\paperwidth \pdfpageheight=\paperheight}} +\newcommand{\ref@ifpdfoutput}[2]{% + \begingroup\@ifundefined{pdfoutput}{\endgroup #2}{\endgroup% + \ifnum\pdfoutput>0\relax #1\else #2\fi}}% +\@ifundefined{ifpdfoutput}{% + \let\ifpdfoutput\ref@ifpdfoutput}{% +\PackageInfo{refart} + {\string\ifpdfoutput\space already defined.\MessageBreak + If \string\ifpdfoutput\space does not behave like\MessageBreak + is is described at the Refman manual, try find out\MessageBreak + at which package \string\ifpdfoutput\space was defined.}} +\DeclareOption{pagesize}{\AtBeginDocument{% + \ref@ifpdfoutput + {\pdfpagewidth=\paperwidth\pdfpageheight=\paperheight} + {\AtBeginDvi{\special{papersize=\the\paperwidth,\the\paperheight}}}}} \DeclareOption{10pt}{\renewcommand\@ptsize{0}} \DeclareOption{11pt}{\renewcommand\@ptsize{1}} \DeclareOption{12pt}{\renewcommand\@ptsize{2}} @@ -114,26 +137,24 @@ \newdimen\emptyheadtopmargin \newcommand\settextfraction[1]% { - \setlength\@tempdima{\paperwidth} - \addtolength\@tempdima{-2in} + \setlength\fullwidth{\paperwidth} + \addtolength\fullwidth{-2\papermarginwidth} + \@settopoint\fullwidth \if@twocolumn - \setlength\textwidth{\@tempdima} + \setlength\textwidth{\fullwidth} \else - \setlength\fullwidth{\@tempdima} - \@settopoint\fullwidth - \setlength\textwidth{#1\fullwidth} % This may change + \setlength\textwidth{#1\fullwidth} \fi \@settopoint\textwidth \setlength\leftmarginwidth{\fullwidth} \addtolength\leftmarginwidth{-\textwidth} - \setlength\@tempdima {\paperwidth} - \addtolength\@tempdima {-2in} - \addtolength\@tempdima {-\fullwidth} - \setlength\oddsidemargin {.5\@tempdima} + \setlength\oddsidemargin {-1in} + \addtolength\oddsidemargin {\papermarginwidth} \addtolength\oddsidemargin {\leftmarginwidth} \@settopoint\oddsidemargin \setlength\evensidemargin {\oddsidemargin} - \setlength\marginparwidth {\oddsidemargin} + \setlength\marginparwidth {\leftmarginwidth + } \addtolength\marginparwidth {-\marginparsep} \setlength\marginparpush {0\p@} } @@ -141,19 +162,19 @@ \settextfraction {0.7} \setlength\@tempdima {\paperheight} -\addtolength\@tempdima{-2in} +\addtolength\@tempdima{-2\papermarginwidth} \addtolength\@tempdima{-.5in} \divide\@tempdima\baselineskip \@tempcnta=\@tempdima \setlength\textheight{\@tempcnta\baselineskip} \advance\textheight by \topskip -\setlength\topmargin{\paperheight} -\addtolength\topmargin{-2in} +\setlength\topmargin {\paperheight} \addtolength\topmargin{-\headheight} \addtolength\topmargin{-\headsep} \addtolength\topmargin{-\textheight} \addtolength\topmargin{-\footskip} % this might be wrong! \addtolength\topmargin{-.5\topmargin} +\addtolength\topmargin{-1in} \@settopoint\topmargin \setlength\emptyfoottopmargin {\topmargin} \addtolength\emptyfoottopmargin{\baselineskip} @@ -342,7 +363,7 @@ \global\@topnum\z@ % Prevents figures from going at top of page. \@maketitle \fi - \thispagestyle{plain}\@thanks + \thispagestyle{empty}\@thanks \endgroup \setcounter{footnote}{0}% \global\let\thanks\relax @@ -744,7 +765,7 @@ \twocolumn[\section*{\indexname}]% \@mkboth{\indexname}% {\indexname}% - \thispagestyle{plain}\parindent\z@ + \parindent\z@ \parskip\z@ \@plus .3\p@\relax \let\item\@idxitem} {\end{fullpage}\if@restonecol\onecolumn\else\clearpage\fi} diff --git a/Master/texmf-dist/tex/latex/refman/refrep.cls b/Master/texmf-dist/tex/latex/refman/refrep.cls index e7018512829..dc8f8bf4140 100644 --- a/Master/texmf-dist/tex/latex/refman/refrep.cls +++ b/Master/texmf-dist/tex/latex/refman/refrep.cls @@ -35,7 +35,7 @@ %% Right brace \} Tilde \~} \NeedsTeXFormat{LaTeX2e}[1995/12/01] \ProvidesClass{refrep} - [2003/05/31 v2.0d + [2006/11/13 v2.0e LaTeX document class] \newcommand\@ptsize{} \newif\if@restonecol @@ -60,12 +60,35 @@ \DeclareOption{executivepaper} {\setlength\paperheight {10.5in}% \setlength\paperwidth {7.25in}} +\newlength\papermarginwidth +\setlength\papermarginwidth {1in} +\DeclareOption{smallborder} + {\setlength\papermarginwidth {0.25in}} \DeclareOption{landscape} {\setlength\@tempdima {\paperheight}% \setlength\paperheight {\paperwidth}% \setlength\paperwidth {\@tempdima}} \DeclareOption{square} {\setlength\paperheight {\paperwidth}} +\DeclareOption{dvips}{\AtBeginDocument{\AtBeginDvi{% + \special{papersize=\the\paperwidth,\the\paperheight}}}} + +\DeclareOption{pdftex}{\AtBeginDocument{% + \pdfpagewidth=\paperwidth \pdfpageheight=\paperheight}} +\newcommand{\ref@ifpdfoutput}[2]{% + \begingroup\@ifundefined{pdfoutput}{\endgroup #2}{\endgroup% + \ifnum\pdfoutput>0\relax #1\else #2\fi}}% +\@ifundefined{ifpdfoutput}{% + \let\ifpdfoutput\ref@ifpdfoutput}{% +\PackageInfo{refrep} + {\string\ifpdfoutput\space already defined.\MessageBreak + If \string\ifpdfoutput\space does not behave like\MessageBreak + is is described at the Refman manual, try find out\MessageBreak + at which package \string\ifpdfoutput\space was defined.}} +\DeclareOption{pagesize}{\AtBeginDocument{% + \ref@ifpdfoutput + {\pdfpagewidth=\paperwidth\pdfpageheight=\paperheight} + {\AtBeginDvi{\special{papersize=\the\paperwidth,\the\paperheight}}}}} \DeclareOption{10pt}{\renewcommand\@ptsize{0}} \DeclareOption{11pt}{\renewcommand\@ptsize{1}} \DeclareOption{12pt}{\renewcommand\@ptsize{2}} @@ -117,26 +140,24 @@ \newdimen\emptyheadtopmargin \newcommand\settextfraction[1]% { - \setlength\@tempdima{\paperwidth} - \addtolength\@tempdima{-2in} + \setlength\fullwidth{\paperwidth} + \addtolength\fullwidth{-2\papermarginwidth} + \@settopoint\fullwidth \if@twocolumn - \setlength\textwidth{\@tempdima} + \setlength\textwidth{\fullwidth} \else - \setlength\fullwidth{\@tempdima} - \@settopoint\fullwidth - \setlength\textwidth{#1\fullwidth} % This may change + \setlength\textwidth{#1\fullwidth} \fi \@settopoint\textwidth \setlength\leftmarginwidth{\fullwidth} \addtolength\leftmarginwidth{-\textwidth} - \setlength\@tempdima {\paperwidth} - \addtolength\@tempdima {-2in} - \addtolength\@tempdima {-\fullwidth} - \setlength\oddsidemargin {.5\@tempdima} + \setlength\oddsidemargin {-1in} + \addtolength\oddsidemargin {\papermarginwidth} \addtolength\oddsidemargin {\leftmarginwidth} \@settopoint\oddsidemargin \setlength\evensidemargin {\oddsidemargin} - \setlength\marginparwidth {\oddsidemargin} + \setlength\marginparwidth {\leftmarginwidth + } \addtolength\marginparwidth {-\marginparsep} \setlength\marginparpush {0\p@} } @@ -144,19 +165,19 @@ \settextfraction {0.7} \setlength\@tempdima {\paperheight} -\addtolength\@tempdima{-2in} +\addtolength\@tempdima{-2\papermarginwidth} \addtolength\@tempdima{-.5in} \divide\@tempdima\baselineskip \@tempcnta=\@tempdima \setlength\textheight{\@tempcnta\baselineskip} \advance\textheight by \topskip -\setlength\topmargin{\paperheight} -\addtolength\topmargin{-2in} +\setlength\topmargin {\paperheight} \addtolength\topmargin{-\headheight} \addtolength\topmargin{-\headsep} \addtolength\topmargin{-\textheight} \addtolength\topmargin{-\footskip} % this might be wrong! \addtolength\topmargin{-.5\topmargin} +\addtolength\topmargin{-1in} \@settopoint\topmargin \setlength\emptyfoottopmargin {\topmargin} \addtolength\emptyfoottopmargin{\baselineskip} @@ -345,7 +366,7 @@ \global\@topnum\z@ % Prevents figures from going at top of page. \@maketitle \fi - \thispagestyle{plain}\@thanks + \thispagestyle{empty}\@thanks \endgroup \setcounter{footnote}{0}% \global\let\thanks\relax @@ -400,7 +421,7 @@ \else \clearpage \fi - \thispagestyle{plain}% + \thispagestyle{empty}% \if@twocolumn \onecolumn \@tempswatrue @@ -443,7 +464,7 @@ \@afterheading} \newcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi \if@pageperchapter\setcounter{page}{1}\fi - \thispagestyle{plain}% + \thispagestyle{empty}% \global\@topnum\z@ \@afterindentfalse \secdef\@chapter\@schapter} @@ -844,7 +865,7 @@ \fi \@mkboth{\indexname}% {\indexname}% - \thispagestyle{plain}\parindent\z@ + \parindent\z@ \parskip\z@ \@plus .3\p@\relax \let\item\@idxitem} {\end{fullpage}\if@restonecol\onecolumn\else\clearpage\fi} -- cgit v1.2.3