summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/dlfltxb/dlfltxbtocconfig.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-08-08 00:11:15 +0000
committerKarl Berry <karl@freefriends.org>2008-08-08 00:11:15 +0000
commit8b8a5ec42a2b505d7e21eb76bc3c60ce1a665cbd (patch)
treecfca5e5bb573f489ca3f8261abd8da0341954598 /Master/texmf-dist/tex/latex/dlfltxb/dlfltxbtocconfig.sty
parent3d71e200413af24908303ea9b75aa8cd6fcf0a07 (diff)
dlfltxb update (7aug08)
git-svn-id: svn://tug.org/texlive/trunk@10155 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/dlfltxb/dlfltxbtocconfig.sty')
-rw-r--r--Master/texmf-dist/tex/latex/dlfltxb/dlfltxbtocconfig.sty41
1 files changed, 29 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/dlfltxb/dlfltxbtocconfig.sty b/Master/texmf-dist/tex/latex/dlfltxb/dlfltxbtocconfig.sty
index 8c34150d82a..07bac330fdb 100644
--- a/Master/texmf-dist/tex/latex/dlfltxb/dlfltxbtocconfig.sty
+++ b/Master/texmf-dist/tex/latex/dlfltxb/dlfltxbtocconfig.sty
@@ -1,4 +1,4 @@
-\ProvidesPackage{dlfltxbtocconfig}[2008/01/22 v0.6 by Lars Madsen]
+\ProvidesPackage{dlfltxbtocconfig}[2008/08/05 v0.65 by Lars Madsen]
% This package be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -19,6 +19,13 @@
% 20071227 a few internal macros changed to reflect changes in
% mempatch 4.9
% 20080122 made the toc titlenames configurable (\contentsname and \shortcontentsname)
+% 20080131 bugfix, the \ToCSubsectionIndentsPullBack and
+% \ToCSubsectionIndentsBackToNormal should also set toc
+% levels, otherwise hyperref bookmarks comes out wrong.
+% 20080207 bugfix, \spart renamed to \specialpart, end the bookmark
+% for it is removed
+% 20080708 small cosmetic changes
+
% we need to be running under the memoir class
\@ifclassloaded{memoir}{}{%
@@ -36,12 +43,13 @@
% add a \par to the end of the TOC
\AtEndDocument{\addtocontents{toc}{\par}}
-% we will use a special spart in the short ToC only the short ToC uses
+% we will use a special specialpart in the short ToC only the short ToC uses
% this so we define it to do nothing
-\providecommand\l@spart[2]{}
+\providecommand\l@specialpart[2]{}
% similar to \part but only adds something to the ToC
-\newcommand\spart[1]{\cleartorecto\phantomsection\addcontentsline{toc}{spart}{\protect\partnumberline{}#1}}
-
+\newcommand\specialpart[1]{\cleartorecto\phantomsection\addcontentsline{toc}{specialpart}{\protect\partnumberline{}#1}}
+% apparently a bookmark level of 100 removes it from the list of book marks
+\newcommand\toclevel@specialpart{100}%
% this is now directly included in memoir
% % the command inserted into the ToC holding the hook
@@ -98,12 +106,15 @@
\renewcommand\partnumberline[1]{}
% no parts
\renewcommand\l@part[2]{}
- % we will use spart ToC entries and ignore parts
- \renewcommand\l@spart[2]{%
+ % we will use specialpart ToC entries and ignore parts
+ \renewcommand\l@specialpart[2]{%
\noindent
- \qquad\qquad\hrulefill\par%
+% \qquad\qquad\hrulefill\par%
+ \vskip5pt\par
\noindent%
- \raisebox{-3pt}[0pt][0pt]{\qquad\qquad\parbox[t]{0.35\textwidth}{\itshape\bfseries ##1}}%
+% \raisebox{-3pt}[0pt][0pt]{\qquad\qquad\parbox[t]{0.35\textwidth}{\itshape\bfseries ##1}}%
+% \raisebox{-4pt}[0pt][0pt]{\qquad\qquad\parbox[t]{0.35\textwidth}{##1}}%
+ \raisebox{-4pt}[0pt][0pt]{\parbox[t]{0.35\textwidth}{\raggedleft##1} \qquad\qquad}%
\vskip-\baselineskip
\par
}
@@ -178,7 +189,8 @@
\begingroup%
\fboxsep=2pt%
{\parbox{\linewidth-2\fboxsep-2\fboxrule}%
- {\itshape\LARGE \strut\hfill {##1} \hfill\strut}}%
+% {\itshape\LARGE \strut\hfill {##1} \hfill\strut}}%
+ {\scshape\Large \strut\hfill {##1} \hfill\strut}}%
\endgroup%
}
@@ -370,9 +382,14 @@
}
\newcommand\ToCSubsectionIndentsPullBack{%
- \addtocontents{toc}{\protect\cftSubsectionIndentsPullBack}}
+ \addtocontents{toc}{\protect\cftSubsectionIndentsPullBack}%
+ \renewcommand\toclevel@subsubsection{2}%
+}
+
\newcommand\ToCSubsectionIndentsBackToNormal{%
- \addtocontents{toc}{\protect\cftSubsectionIndentsBackToNormal}}
+ \addtocontents{toc}{\protect\cftSubsectionIndentsBackToNormal}%
+ \renewcommand\toclevel@subsubsection{3}%
+}
% preserving some old syntax
\let\RedofelineEmulSubSubSec\ToCSubsectionIndentsBackToNormal