diff options
author | Karl Berry <karl@freefriends.org> | 2018-12-12 21:24:10 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-12-12 21:24:10 +0000 |
commit | 5c9613c8e5ee20a6d2a318def5ec195d866ef734 (patch) | |
tree | f4d31360d0add93dd9da21f01dc670269e449f4d /Master/texmf-dist/doc/latex/memoir/memsty.sty | |
parent | 07419f17633908b8ff6f03a58fdc582f676d2ddd (diff) |
memoir (12dec18)
git-svn-id: svn://tug.org/texlive/trunk@49394 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/memoir/memsty.sty')
-rw-r--r-- | Master/texmf-dist/doc/latex/memoir/memsty.sty | 36 |
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} |