summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/memoir/memsty.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/memoir/memsty.sty')
-rw-r--r--Master/texmf-dist/doc/latex/memoir/memsty.sty36
1 files changed, 21 insertions, 15 deletions
diff --git a/Master/texmf-dist/doc/latex/memoir/memsty.sty b/Master/texmf-dist/doc/latex/memoir/memsty.sty
index bf2c27748cd..a59bd4d4556 100644
--- a/Master/texmf-dist/doc/latex/memoir/memsty.sty
+++ b/Master/texmf-dist/doc/latex/memoir/memsty.sty
@@ -113,26 +113,29 @@
\renewcommand*{\cftbookformatpnum}[1]{%
\hbox to\unitlength{{\cftbookpagefont ##1}}}}
+
\newcommand*{\setupparasubsecs}{%
- \let\oldnumberline\numberline
- \renewcommand*{\cftsubsectionfont}{\itshape}
- \renewcommand*{\cftsubsectionpagefont}{\itshape}
- \renewcommand{\l@subsection}[2]{
- \ifnum\c@tocdepth > 1\relax
+ \let\oldnumberline\numberline%
+ \renewcommand*{\cftsubsectionfont}{\itshape}%
+ \renewcommand*{\cftsubsectionpagefont}{\itshape}%
+ \renewcommand{\l@subsection}[2]{%
+ \ifnum\c@tocdepth > 1\relax%
\def\numberline####1{\textit{####1}~}%
- \leftskip=\cftsubsectionindent
- \rightskip=\@tocrmarg
+ \leftskip=\cftsubsectionindent%
+ \rightskip=\@tocrmarg%
%% \advance\rightskip 0pt plus \hsize % uncomment this for raggedright
%% \advance\rightskip 0pt plus 2em % uncomment this for semi-ragged
- \parfillskip=\fill
- \ifhmode ,\ \else\noindent\fi
- \ignorespaces
+ \parfillskip=\fill%
+ \ifhmode ,\ \else\noindent\fi%
+ \ignorespaces%
{\cftsubsectionfont ##1}~{\cftsubsectionpagefont##2}%
- \let\numberline\oldnumberline\ignorespaces
+ \let\numberline\oldnumberline\ignorespaces%
\fi}}
+
\AtEndDocument{\addtocontents{toc}{\par}}%%% OK
+
\newcommand*{\setupmaintoc}{%
\renewcommand{\contentsname}{Contents}
\let\changetocdepth\oldchangetocdepth
@@ -524,6 +527,7 @@ chapterstyle. It is one of several styles that come as part of the
\LMnote{2011/05/25}{I've moved the demochaps to an appendix, so
\cs{@chapapp} need a little redoing}
\newenvironment{demochap}[2][\onelineskip]{%
+% \typeout{Chapter value going in: \thechapter}
\savechapcnt=\c@chapter
\saveseccnt=\c@section
\savesubseccnt=\c@subsection
@@ -539,7 +543,7 @@ chapterstyle. It is one of several styles that come as part of the
\begingroup
%% \hrule
\let\@chapapp\chaptername% such that appendix does not disturb
- \renewcommand{\theHchapter}{\thepage.\thechapter}
+% \renewcommand{\theHchapter}{\thepage.\thechapter.showcase}
\renewcommand\thechapter{\arabic{chapter}}
\vspace*{#1}
\chapterstyle{#2}
@@ -548,6 +552,7 @@ chapterstyle. It is one of several styles that come as part of the
\renewcommand*{\addcontentsline}[3]{}
\renewcommand*{\thispagestyle}[1]{}
\renewcommand*{\markboth}[2]{}
+ \let\refstepcounter\stepcounter
\chapter{Demonstration of the #2 chapter style}
\chaptext{#2}
\vspace{\onelineskip}
@@ -559,9 +564,9 @@ chapterstyle. It is one of several styles that come as part of the
\global\demochapcnt=0\relax
\fi
\c@chapter=\savechapcnt
- \advance\c@chapter\m@ne
- \renewcommand{\theHchapter}{\thepage.\thechapter-\the\demochapcnt.\thesheetsequence}
- \refstepcounter{chapter}%
+% \advance\c@chapter\m@ne
+% \renewcommand{\theHchapter}{\thepage.\thechapter-\the\demochapcnt.\thesheetsequence.showcase}
+% \refstepcounter{chapter}%
% \stepcounter{chapter}
\begin{center}
\caption{The #2 chapterstyle}\label{dc#2}
@@ -572,6 +577,7 @@ chapterstyle. It is one of several styles that come as part of the
}{%\gdef\theHchapter{\thechapter}
\end{figure}
\counterwithin{figure}{chapter}
+ \global\c@chapter=\savechapcnt
\global\c@section=\saveseccnt
\global\c@subsection=\savesubseccnt
\global\c@footnote=\saveftncnt}