summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/memoir/memoir.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/memoir/memoir.cls')
-rw-r--r--Master/texmf-dist/tex/latex/memoir/memoir.cls160
1 files changed, 106 insertions, 54 deletions
diff --git a/Master/texmf-dist/tex/latex/memoir/memoir.cls b/Master/texmf-dist/tex/latex/memoir/memoir.cls
index eb63021a2c9..ff916f2dbdb 100644
--- a/Master/texmf-dist/tex/latex/memoir/memoir.cls
+++ b/Master/texmf-dist/tex/latex/memoir/memoir.cls
@@ -26,7 +26,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{memoir}%
- [2010/04/19 v3.6 configurable book, report, article document class]
+ [2010/07/01 v3.6d configurable book, report, article document class]
\newcommand*{\@ptsize}{}
\newcommand*{\@memptsize}{}
\newlength{\onelineskip}
@@ -1530,54 +1530,92 @@
\mem@ps@safe@change{#1}%
\@namedef{#1headvplacement}{#2}\@namedef{#1footvplacement}{#3}}
+\newcommand\mem@ps@HLH[4]{%
+ % #1 ps name
+ % #2 type: head, foot
+ % #3 odd/even
+ % #4 odd/even short (o,e)
+ \@namedef{#1@#3#2}{%
+ \@nameuse{#1#3hpl}\hb@xt@\@nameuse{#1#2runwidth}{\m@mhe@dreset%
+ \vbox{\nametest{#2}{foot}\ifsamename\@nameuse{#1#2rule}\fi%
+ \hbox{%
+ \rlap{%
+ \parbox[\@nameuse{#1#2vplacement}]{\@nameuse{#1#2runwidth}}{%
+ \raggedright\@nameuse{#1ps#2strut}%
+ \@nameuse{#1#4#2l}%
+ \@nameuse{#1ps#2strut}}}\hfill
+ \parbox[\@nameuse{#1#2vplacement}]{\@nameuse{#1#2runwidth}}{%
+ \centering\@nameuse{#1ps#2strut}%
+ \@nameuse{#1#4#2c}%
+ \@nameuse{#1ps#2strut}}\hfill
+ \llap{%
+ \parbox[\@nameuse{#1#2vplacement}]{\@nameuse{#1#2runwidth}}{%
+ \raggedleft\@nameuse{#1ps#2strut}%
+ \@nameuse{#1#4#2r}%
+ \@nameuse{#1ps#2strut}}}%
+ }%
+ \nametest{#2}{head}\ifsamename\@nameuse{#1#2rule}\fi%
+ }}\@nameuse{#1#3hpr}}%
+ \@namedef{@#3#2}{\@nameuse{#1@#3#2}}%
+}
\newcommand{\makepagestyle}[1]{%
\mem@set@ps@xtra@info{#1}{}{01}%
\@namedef{ps@#1}{%
- \@namedef{#1@evenhead}{%
- \@nameuse{#1evenhpl}\hb@xt@\@nameuse{#1headrunwidth}{\m@mhe@dreset%
- \vbox{\hbox{%
- \rlap{\parbox[\@nameuse{#1headvplacement}]{\@nameuse{#1headrunwidth}}{%
- \raggedright\@nameuse{#1eheadl}\strut}}\hfill
- \parbox[\@nameuse{#1headvplacement}]{\@nameuse{#1headrunwidth}}{%
- \centering\@nameuse{#1eheadc}\strut}\hfill
- \llap{\parbox[\@nameuse{#1headvplacement}]{\@nameuse{#1headrunwidth}}{%
- \raggedleft\@nameuse{#1eheadr}\strut}}}%
- \@nameuse{#1headrule}}}\@nameuse{#1evenhpr}}%
- \@namedef{#1@oddhead}{%
- \@nameuse{#1oddhpl}\hb@xt@\@nameuse{#1headrunwidth}{\m@mhe@dreset%
- \vbox{\hbox{%
- \rlap{\parbox[\@nameuse{#1headvplacement}]{\@nameuse{#1headrunwidth}}{%
- \raggedright\@nameuse{#1oheadl}\strut}}\hfill
- \parbox[\@nameuse{#1headvplacement}]{\@nameuse{#1headrunwidth}}{%
- \centering\@nameuse{#1oheadc}\strut}\hfill
- \llap{\parbox[\@nameuse{#1headvplacement}]{\@nameuse{#1headrunwidth}}{%
- \raggedleft\@nameuse{#1oheadr}\strut}}}%
- \@nameuse{#1headrule}}}\@nameuse{#1oddhpr}}%
- \@namedef{#1@evenfoot}{%
- \@nameuse{#1evenfpl}\hb@xt@\@nameuse{#1footrunwidth}{\m@mhe@dreset%
- \vbox{\@nameuse{#1footrule}\hbox{%
- \rlap{\parbox[\@nameuse{#1footvplacement}]{\@nameuse{#1footrunwidth}}{%
- \raggedright\@nameuse{#1efootl}\strut}}\hfill
- \parbox[\@nameuse{#1footvplacement}]{\@nameuse{#1footrunwidth}}{%
- \centering\@nameuse{#1efootc}\strut}\hfill
- \llap{\parbox[\@nameuse{#1footvplacement}]{\@nameuse{#1footrunwidth}}{%
- \raggedleft\@nameuse{#1efootr}\strut}}}%
- }}\@nameuse{#1evenfpr}}%
- \@namedef{#1@oddfoot}{%
- \@nameuse{#1oddfpl}\hb@xt@\@nameuse{#1footrunwidth}{\m@mhe@dreset%
- \vbox{\@nameuse{#1footrule}\hbox{%
- \rlap{\parbox[\@nameuse{#1footvplacement}]{\@nameuse{#1footrunwidth}}{%
- \raggedright\@nameuse{#1ofootl}\strut}}\hfill
- \parbox[\@nameuse{#1footvplacement}]{\@nameuse{#1footrunwidth}}{%
- \centering\@nameuse{#1ofootc}\strut}\hfill
- \llap{\parbox[\@nameuse{#1footvplacement}]{\@nameuse{#1footrunwidth}}{%
- \raggedleft\@nameuse{#1ofootr}\strut}}}%
- }}\@nameuse{#1oddfpr}}%
- \def\@evenhead{\@nameuse{#1@evenhead}}%
- \def\@oddhead{\@nameuse{#1@oddhead}}%
- \def\@evenfoot{\@nameuse{#1@evenfoot}}%
- \def\@oddfoot{\@nameuse{#1@oddfoot}}%
+ \mem@ps@HLH{#1}{head}{even}{e}%
+ \mem@ps@HLH{#1}{head}{odd}{o}%
+ \mem@ps@HLH{#1}{foot}{even}{e}%
+ \mem@ps@HLH{#1}{foot}{odd}{o}%
+ % \@namedef{#1@evenhead}{%
+ % \@nameuse{#1evenhpl}\hb@xt@\@nameuse{#1headrunwidth}{\m@mhe@dreset%
+ % \vbox{\hbox{%
+ % \rlap{\parbox[\@nameuse{#1headvplacement}]{\@nameuse{#1headrunwidth}}{%
+ % \raggedright\@nameuse{#1eheadl}\strut}}\hfill
+ % \parbox[\@nameuse{#1headvplacement}]{\@nameuse{#1headrunwidth}}{%
+ % \centering\@nameuse{#1eheadc}\strut}\hfill
+ % \llap{\parbox[\@nameuse{#1headvplacement}]{\@nameuse{#1headrunwidth}}{%
+ % \raggedleft\@nameuse{#1eheadr}\strut}}}%
+ % \@nameuse{#1headrule}}}\@nameuse{#1evenhpr}}%
+ % \@namedef{#1@oddhead}{%
+ % \@nameuse{#1oddhpl}\hb@xt@\@nameuse{#1headrunwidth}{\m@mhe@dreset%
+ % \vbox{\hbox{%
+ % \rlap{\parbox[\@nameuse{#1headvplacement}]{\@nameuse{#1headrunwidth}}{%
+ % \raggedright\@nameuse{#1oheadl}\strut}}\hfill
+ % \parbox[\@nameuse{#1headvplacement}]{\@nameuse{#1headrunwidth}}{%
+ % \centering\@nameuse{#1oheadc}\strut}\hfill
+ % \llap{\parbox[\@nameuse{#1headvplacement}]{\@nameuse{#1headrunwidth}}{%
+ % \raggedleft\@nameuse{#1oheadr}\strut}}}%
+ % \@nameuse{#1headrule}}}\@nameuse{#1oddhpr}}%
+ % \@namedef{#1@evenfoot}{%
+ % \@nameuse{#1evenfpl}\hb@xt@\@nameuse{#1footrunwidth}{\m@mhe@dreset%
+ % \vbox{\@nameuse{#1footrule}\hbox{%
+ % \rlap{\parbox[\@nameuse{#1footvplacement}]{\@nameuse{#1footrunwidth}}{%
+ % \raggedright\@nameuse{#1efootl}\strut}}\hfill
+ % \parbox[\@nameuse{#1footvplacement}]{\@nameuse{#1footrunwidth}}{%
+ % \centering\@nameuse{#1efootc}\strut}\hfill
+ % \llap{\parbox[\@nameuse{#1footvplacement}]{\@nameuse{#1footrunwidth}}{%
+ % \raggedleft\@nameuse{#1efootr}\strut}}}%
+ % }}\@nameuse{#1evenfpr}}%
+ % \@namedef{#1@oddfoot}{%
+ % \@nameuse{#1oddfpl}\hb@xt@\@nameuse{#1footrunwidth}{\m@mhe@dreset%
+ % \vbox{\@nameuse{#1footrule}\hbox{%
+ % \rlap{\parbox[\@nameuse{#1footvplacement}]{\@nameuse{#1footrunwidth}}{%
+ % \raggedright\@nameuse{#1ofootl}\strut}}\hfill
+ % \parbox[\@nameuse{#1footvplacement}]{\@nameuse{#1footrunwidth}}{%
+ % \centering\@nameuse{#1ofootc}\strut}\hfill
+ % \llap{\parbox[\@nameuse{#1footvplacement}]{\@nameuse{#1footrunwidth}}{%
+ % \raggedleft\@nameuse{#1ofootr}\strut}}}%
+ % }}\@nameuse{#1oddfpr}}%
+ % \def\@evenhead{\@nameuse{#1@evenhead}}%
+ % \def\@oddhead{\@nameuse{#1@oddhead}}%
+ % \def\@evenfoot{\@nameuse{#1@evenfoot}}%
+ % \def\@oddfoot{\@nameuse{#1@oddfoot}}%
\@nameuse{#1pshook}}%
+ \nametest{#1}{empty}%
+ \ifsamename%
+ \@namedef{#1psheadstrut}{}\@namedef{#1psfootstrut}{}%
+ \else%
+ \@namedef{#1psheadstrut}{\strut}\@namedef{#1psfootstrut}{\strut}%
+ \fi%
\makeevenhead{#1}{}{}{}%
\makeoddhead{#1}{}{}{}%
\makeevenfoot{#1}{}{}{}%
@@ -1615,6 +1653,8 @@
\@namedef{#1oddfpr}{\@nameuse{#2oddfpr}}%
\@namedef{#1headrule}{\@nameuse{#2headrule}}%
\@namedef{#1footrule}{\@nameuse{#2footrule}}%
+ \@namedef{#1psheadstrut}{\@nameuse{#2psheadstrut}}
+ \@namedef{#1psfootstrut}{\@nameuse{#2psfootstrut}}
\makepsmarks{#1}{\@nameuse{#2pshook}}}
\newcommand{\ifonlyfloats}[2]{\if@fcolmade #1\else #2\fi}
@@ -1633,6 +1673,8 @@
\@namedef{#1pshook}{\@nameuse{#2pshook}}%
}}
+\newcommand*\makeheadfootstrut[3]{%
+ \@namedef{#1psheadstrut}{#2}\@namedef{#1psfootstrut}{#3}}
\makepagestyle{empty}
\makepagestyle{plain}
@@ -3019,13 +3061,18 @@
\normalfont\Huge\bfseries\sffamily\raggedleft}
\renewcommand*{\chapternamenum}{}
\renewcommand*{\printchapternum}{%
- \makebox[0pt][l]{\hspace{0.4em}
+ \makebox[0pt][l]{\hspace{0.4em}%
\resizebox{!}{4ex}{%
- \chapnamefont\bfseries\sffamily\thechapter}
+ \chapnamefont\bfseries\sffamily\thechapter}%
}%
}%
\renewcommand*{\printchapternonum}{%
- \chapnamefont \phantom{\printchaptername \chapternamenum \printchapternum}
+ \chapnamefont \phantom{\printchaptername \chapternamenum%
+ \makebox[0pt][l]{\hspace{0.4em}%
+ \resizebox{!}{4ex}{%
+ \chapnamefont\bfseries\sffamily 1}%
+ }%
+ }%
\afterchapternum %
}%
\renewcommand*{\afterchapternum}{%
@@ -7539,6 +7586,7 @@
\newcommand*{\postchapterprecis}{\end{quote}}
\newcommand{\precistocfont}{\normalfont\itshape}
+\newcommand{\precistocformat}{\noindent}
\newcommand{\chapterprecistoc}[1]{%
\addtocontents{toc}{\precistoctext{#1}}}
\DeclareRobustCommand{\precistoctext}[1]{%
@@ -7548,7 +7596,7 @@
\advance\memRTLleftskip \cftchapternumwidth\relax
%%% \rightskip \@tocrmarg\relax
\memRTLrightskip \@tocrmarg\relax
- \precistocfont #1\par}}
+ \precistocformat\precistocfont #1\par}}
\newcommand{\cftlocalchange}[3]{%
\addtocontents{#1}{\protect\setpnumwidth{#2} \protect\setrmarg{#3}}}
\newcommand{\cftaddtitleline}[4]{%
@@ -9499,11 +9547,11 @@
\newcommand{\feetbelowfloat}{\gdef\@makecol{\mem@makecolbf}}
\feetabovefloat
-\gdef\@reinserts{%
- \ifvoid\footins\else\insert\footins{\unvbox\footins}\fi
- \m@mdodoreinextrafeet
- \ifvbox\@kludgeins\insert\@kludgeins{\unvbox\@kludgeins}\fi
- \ifvoid\sideins\else\insert\sideins{\unvbox\sideins}\fi}
+ % \gdef\@reinserts{%
+ % \ifvoid\footins\else\insert\footins{\unvbox\footins}\fi
+ % \m@mdodoreinextrafeet
+ % \ifvbox\@kludgeins\insert\@kludgeins{\unvbox\@kludgeins}\fi
+ % \ifvoid\sideins\else\insert\sideins{\unvbox\sideins}\fi}
\newif\ifm@mfnmargin
\newcommand*{\footnotesatfoot}{\m@mfnmarginfalse}
@@ -12147,7 +12195,11 @@
\space\number\day, \number\year}
\setlength\columnsep{10\p@}
\setlength\columnseprule{0\p@}
+\ifartopt
+\pagestyle{plain}
+\else
\pagestyle{headings}
+\fi
\pagenumbering{arabic}
\setcounter{part}{0}