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.sty19
1 files changed, 14 insertions, 5 deletions
diff --git a/Master/texmf-dist/doc/latex/memoir/memsty.sty b/Master/texmf-dist/doc/latex/memoir/memsty.sty
index a0427c232b1..b3362e981e7 100644
--- a/Master/texmf-dist/doc/latex/memoir/memsty.sty
+++ b/Master/texmf-dist/doc/latex/memoir/memsty.sty
@@ -92,6 +92,7 @@
\let\oldprecistoctext\precistoctext
\renewcommand{\precistoctext}[1]{}
\let\oldcftchapterfillnum\cftchapterfillnum
+ \let\oldcftchapterformatpnum\cftchapterformatpnum
\renewcommand*{\changetocdepth}[1]{}
\setcounter{tocdepth}{0}% chapters
\renewcommand*{\cftchapterfont}{\hfill\sffamily}
@@ -100,10 +101,16 @@
\renewcommand*{\cftchapterafterpnum}{\cftparfillskip}
%% \setpnumwidth{0em}
%% \setpnumwidth{1.5em}
- \renewcommand*{\cftchapterfillnum}[1]{%
- {\cftchapterleader}\nobreak
- \hbox to 1.5em{\cftchapterpagefont ##1\hfil}\cftchapterafterpnum\par}
+% \renewcommand*{\cftchapterfillnum}[1]{%
+% {\cftchapterleader}\nobreak
+% \hbox to 2.5em{\cftchapterpagefont
+% ##1\hfil}\cftchapterafterpnum\par}
+ % make the box left aligned not right aliged
+ \renewcommand*{\cftchapterformatpnum}[1]{%
+ \cftchapterformatpnumhook{##1}%
+ \hb@xt@\@pnumwidth{\cftchapterpagefont ##1\hfil}}
\setrmarg{0.3\textwidth}
+% \setpnumwidth{6em}
\setlength{\unitlength}{\@tocrmarg}
\addtolength{\unitlength}{1.5em}
\let\oldcftpartformatpnum\cftpartformatpnum
@@ -141,6 +148,7 @@
\let\changetocdepth\oldchangetocdepth
\let\precistoctext\oldprecistoctext
\let\cftchapterfillnum\oldcftchapterfillnum
+ \let\cftchapterformatpnum\oldcftchapterformatpnum
\addtodef{\cftchapterbreak}{\par}{}
\renewcommand*{\cftchapterfont}{\normalfont\sffamily}
\renewcommand*{\cftchapterleader}{\sffamily\cftdotfill{\cftchapterdotsep}}
@@ -1025,6 +1033,7 @@ chapterstyle. It is one of several styles that come as part of the
\settypeblocksize{7.75in}{33pc}{*}
\setulmargins{4cm}{*}{*}
\setlrmargins{1.25in}{*}{*}
+%\setlrmargins{*}{*}{1}
\setmarginnotes{17pt}{51pt}{\onelineskip}
\setheadfoot{\onelineskip}{2\onelineskip}
\setheaderspaces{*}{2\onelineskip}{*}
@@ -1052,8 +1061,8 @@ it to use the new width for the margin par}
%%%%% Pavlic `fix' for index
-\let\original@wrindexm@m\@wrindexm@m
-\def\@wrindexm@m{\catcode`\ =10 \original@wrindexm@m}
+%\let\original@wrindexm@m\@wrindexm@m
+%\def\@wrindexm@m{\catcode`\ =10 \original@wrindexm@m}
% for letter group bookmarks for glossary items
\newcommand\doglobookmark[1]{%