summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/interfaces/interfaces-tocloft.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/interfaces/interfaces-tocloft.sty')
-rw-r--r--Master/texmf-dist/tex/latex/interfaces/interfaces-tocloft.sty67
1 files changed, 39 insertions, 28 deletions
diff --git a/Master/texmf-dist/tex/latex/interfaces/interfaces-tocloft.sty b/Master/texmf-dist/tex/latex/interfaces/interfaces-tocloft.sty
index 15f05840ad1..580a28a09bd 100644
--- a/Master/texmf-dist/tex/latex/interfaces/interfaces-tocloft.sty
+++ b/Master/texmf-dist/tex/latex/interfaces/interfaces-tocloft.sty
@@ -8,7 +8,7 @@
%%
%% This is a generated file.
%%
-%% interfaces : 2011/01/17 v2.8 - interfaces : interfaces with keys for other packages (FC)
+%% interfaces : 2011/01/19 v2.9 - interfaces : interfaces with keys for other packages (FC)
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
@@ -44,8 +44,9 @@
%% Copyright (C) 2010 by Florent Chervet <florent.chervet@free.fr>
%%
\let\CTANLinks=y
+\let\interfacesquick=n
\ProvidesPackage{interfaces-tocloft}
- [2011/01/17 v2.8 pgfkeys macros for tocloft (FC)]
+ [2011/01/19 v2.9 pgfkeys macros for tocloft (FC)]
\RequirePackage{interfaces-base}
\itf@Check@Package{tocloft}
\newrobustcmd\tocsetup[1]{%
@@ -162,17 +163,25 @@
multicols/after/.alias=multicols/end,%
}% \pgfkeys
\itf@AfterPackage{interfaces-bookmark}{%
+ \def\itf@tocloft@bookmark@handler##1##2{%
+ \pgfkeysEaddvalue{/itf/tocloft/##1/bookmark}{}{,##2}%
+ \pgfkeysgetvalue{/itf/tocloft/##1/bookmark/text}\itf@tp
+ \ifx \itf@tp\@empty
+ \pgfkeyssetvalue{/itf/tocloft/##1/bookmark/text}\contentsname \fi}%
\pgfqkeys{/itf/tocloft/#1}{%
bookmark/.is multiple choice,%
- bookmark/bold/.true=\pgfkeysaddvalue{/itf/tocloft/#1/bookmark}{}{,bold=true},%
- bookmark/bold/.false=\pgfkeysaddvalue{/itf/tocloft/#1/bookmark}{}{,bold=false},%
- bookmark/italic/.true=\pgfkeysaddvalue{/itf/tocloft/#1/bookmark}{}{,italic=true},%
- bookmark/italic/.false=\pgfkeysaddvalue{/itf/tocloft/#1/bookmark}{}{,italic=false},%
- bookmark/color/.code=\pgfkeysaddvalue{/itf/tocloft/#1/bookmark}{}{,color={##1}},%
- bookmark/level/.code=\pgfkeysEaddvalue{/itf/tocloft/#1/bookmark}{}{,level={%
+ bookmark/bold/.true=\itf@tocloft@bookmark@handler{#1}{bold=true},%
+ bookmark/bold/.false=\itf@tocloft@bookmark@handler{#1}{bold=false},%
+ bookmark/italic/.true=\itf@tocloft@bookmark@handler{#1}{italic=true},%
+ bookmark/italic/.false=\itf@tocloft@bookmark@handler{#1}{italic=false},%
+ bookmark/color/.code=\itf@tocloft@bookmark@handler{#1}{color={##1}},%
+ bookmark/level/.code=\pgfkeysEsetvalue{/itf/tocloft/#1/bookmark/level}{%
\ifcsname toclevel@##1\endcsname
\csname toclevel@##1\endcsname
- \else##1\fi}},%
+ \else##1\fi}%
+ \itf@tocloft@bookmark@handler{#1}{},%
+ bookmark/level/.default=-1,%
+ bookmark/level/.initial=-1,%
bookmark/text/.store as code,%
bookmark/text/.default=\contentsname,%
bookmark/.unknown/.code=\pgfkeysEaddvalue{/itf/tocloft/#1/bookmark}
@@ -204,10 +213,10 @@
\expandafter\pretocmd\csname @cftmake#1title\expandafter\endcsname
\expandafter{\expandafter\itf@tocloft\csname cft#1title\endcsname{#1}{listof#2}}
{\@PackageInfoNoLine{interfaces-tocloft}
- {Command \expandafter\string\csname @cftmake#1title\endcsname\space
+ {\expandafter\string\csname @cftmake#1title\endcsname\space
successfully augmented}}
{\@PackageWarningNoLine{interfaces-tocloft}
- {Command \expandafter\string\csname @cftmake#1title\endcsname\space
+ {\expandafter\string\csname @cftmake#1title\endcsname\space
\space could not be patched
\MessageBreak Keys label and bookmark won't work for \string\listofsetup}}%
\fi
@@ -361,44 +370,44 @@
\itf@patch\pretocmd\@cftmaketoctitle
{\itf@tocloft\contentsname{toc}{tableofcontents}}
{\@PackageInfoNoLine{interfaces-tocloft}
- {Command \string\@cftmaketoctitle\space successfully augmented}}
+ {\string\@cftmaketoctitle\space successfully augmented}}
{\@PackageWarningNoLine{interfaces-tocloft}
- {Command \string\@cftmaketoctitle\space could not be patched
+ {\string\@cftmaketoctitle\space could not be patched
\MessageBreak label and bookmark keys for \string\tocsetup\space won't work}}%
\itf@patch\pretocmd\@cftmakeloftitle
{\itf@tocloft\listfigurename{lof}{listoffigures}}
{\@PackageInfoNoLine{interfaces-tocloft}
- {Command \string\@cftmakeloftitle\space successfully augmented}}
+ {\string\@cftmakeloftitle\space successfully augmented}}
{\@PackageWarningNoLine{interfaces-tocloft}
- {Command \string\@cftmakeloftitle\space could not be patched
+ {\string\@cftmakeloftitle\space could not be patched
\MessageBreak label and bookmark keys for \string\lofsetup\space won't work}}%
\itf@patch\pretocmd\@cftmakelottitle
{\itf@tocloft\listtablename{lot}{listoftables}}
{\@PackageInfoNoLine{interfaces-tocloft}
- {Command \string\@cftmakelottitle\space successfully augmented}}
+ {\string\@cftmakelottitle\space successfully augmented}}
{\@PackageWarningNoLine{interfaces-tocloft}
- {Command \string\@cftmakelottitle\space could not be patched
+ {\string\@cftmakelottitle\space could not be patched
\MessageBreak label and bookmark keys for \string\lotsetup\space won't work}}%
\expandafter\itf@patch\expandafter\patchcmd\csname\string\newlistof\endcsname
{#4}{\csname cft#3title\endcsname}
{\@PackageInfoNoLine{interfaces-tocloft}
- {Command \string\newlistof\space successfully patched}}
+ {\string\newlistof\space successfully patched}}
{\@PackageWarningNoLine{interfaces-tocloft}
- {Command \string\newlistof\space could not be patched
+ {\string\newlistof\space could not be patched
\MessageBreak \string\listofsetup\space will not work}}%
\expandafter\itf@patch\expandafter\apptocmd\csname\string\newlistof\endcsname
{\itf@cft@newlistof{#3}{#2}{#4}}
{\@PackageInfoNoLine{interfaces-tocloft}
- {Command \string\newlistof\space successfully augmented}}
+ {\string\newlistof\space successfully augmented}}
{\@PackageWarningNoLine{interfaces-tocloft}
- {Command \string\newlistof\space could not be patched
+ {\string\newlistof\space could not be patched
\MessageBreak \string\listofsetup\space will not work}}%
\expandafter\itf@patch\expandafter\apptocmd\csname\string\newlistentry\endcsname
{\itf@cft@newsection{#3}{#2}}
{\@PackageInfoNoLine{interfaces-tocloft}
- {Command \string\newlistentry\space successfully augmented}}
+ {\string\newlistentry\space successfully augmented}}
{\@PackageWarningNoLine{interfaces-tocloft}
- {Command \string\newlistentry\space could not be patched
+ {\string\newlistentry\space could not be patched
\MessageBreak \string\listofsetup\space will not work}}
\def\itf@tocloft#1#2#3{%
\expandafter\def\expandafter#1\expandafter{%
@@ -412,23 +421,25 @@
{%
\raisedhyperdef{interfaces}{#4}{#2}%
\pgfkeysgetvalue{/itf/tocloft/#3/bookmark/text}\itf@tp
- \ifx\itf@tp\@empty\else
+ \ifx \itf@tp\@empty \else
\pgfkeysgetvalue{/itf/tocloft/#3/bookmark}\@tempa
\expandafter\bookmark\expandafter[%
- \expandafter{\@tempa,dest=interfaces.#4}]%
- {\pgfkeysvalueof{/itf/tocloft/#3/bookmark/text}}%
+ \expandafter{\@tempa,
+ dest=interfaces.#4,%
+ level=\pgfkeysvalueof{/itf/tocloft/#3/bookmark/level}%
+ }]{\pgfkeysvalueof{/itf/tocloft/#3/bookmark/text}}%
\global\BKM@startatroottrue
\fi}
{#2}%
\pgfkeysgetvalue{/itf/tocloft/#3/label}\itf@tp
- \ifx\itf@tp\@empty\else
+ \ifx \itf@tp\@empty \else
\def\@currentHref{interfaces.#4}%
\pgfkeysgetvalue{/itf/tocloft/#3/ref}\@currentlabel
\def\@currentlabelname{#2}%
\label{\pgfkeysvalueof{/itf/tocloft/#3/label}}%
\fi
\endgroup
- \gdef\itf@tp{\def#1{#2}\let\itf@tp\@undefined}% restore original
+ \gdef\itf@tp{\def#1{#2}\global\let\itf@tp \relax}% restore original
\aftergroup\itf@tp % simple group introduced by tocloft to print \contentsname
}% \itf@cft@label
\endinput