diff options
author | Karl Berry <karl@freefriends.org> | 2016-10-30 21:47:55 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-10-30 21:47:55 +0000 |
commit | 6459918940d7443298637e484ccc34677ddb9b7b (patch) | |
tree | b40ea698068089e6af2f2a71028e681704252310 /Master/texmf-dist/tex/latex | |
parent | 683cda3cef493bed1697c8c51a86bcb79d623623 (diff) |
denisbdoc (30oct16)
git-svn-id: svn://tug.org/texlive/trunk@42387 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/denisbdoc/denisbdoc.sty | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/denisbdoc/denisbdoc.sty b/Master/texmf-dist/tex/latex/denisbdoc/denisbdoc.sty index 9f37a061af7..b2e0a167616 100644 --- a/Master/texmf-dist/tex/latex/denisbdoc/denisbdoc.sty +++ b/Master/texmf-dist/tex/latex/denisbdoc/denisbdoc.sty @@ -6,7 +6,7 @@ %% %% denisbdoc.dtx (with options: `package') %% ----------------------------------------------------------------------------- -%% denisbdoc --- A personal dirty package for documenting packages, version 0.4 +%% denisbdoc --- A personal dirty package for documenting packages, version 0.5 %% %% Maintained by Denis Bitouz'e %% E-mail: denis.bitouze@lmpa.univ-littoral.fr @@ -15,7 +15,7 @@ %% ----------------------------------------------------------------------------- %% \RequirePackage{expl3,l3keys2e,xparse} -\ProvidesExplPackage {denisbdoc} {2016/10/24} {0.4} +\ProvidesExplPackage {denisbdoc} {2016/10/30} {0.5} {A personal package for documenting packages} \@ifpackagelater { expl3 } { 2012/11/21 } { } @@ -129,7 +129,7 @@ \@ifpackageloaded{glossaries}{% }{% % \RequirePackage{glossaries}% - \RequirePackage[hyperfirst=false,toc=false]{glossaries-extra}% + \RequirePackage[xindy,hyperfirst=false,toc=false]{glossaries-extra}% \makeglossaries% \setglossarystyle{indexhypergroup}% \setabbreviationstyle[acronym]{long-short-sc}% @@ -209,7 +209,8 @@ { commandshell}{#1} \usetikzlibrary{trees,backgrounds,fit,calc,positioning} \attachfilesetup{color=Hyperlink} -\newcommand{\targetindexentry}[1]{\hypertarget{index:#1}{#1}} +\newcommand{\indexmark}[1]{\hypertarget{index:#1}{#1}\markboth{#1}{#1}} +\newcommand{\targetindexentry}[1]{\indexmark{#1}} \newcounter{targeti} \newcommand{\targetindexentryi}[1]{\stepcounter{targeti}\hypertarget{\thetargeti:index:#1}{#1}} \newcounter{targetii} @@ -762,7 +763,7 @@ Nouv.~:}~#1} { \__denisbdoc_alert:n {#1} }% -\makeindex[name=\jobname-changes,title=Historique~des~changements,options=-M~denisbdoc-chng.xdy] +\makeindex[name=\jobname-changes,title=Historique~des~changements,options=-L~french~-M~denisbdoc-chng.xdy] \DeclareDocumentCommand \changes { smmm } { \IfBooleanTF {#1} { @@ -770,9 +771,13 @@ Nouv.~:}~#1} }{ \tl_set:Nn \l_tmpa_tl {#4} } + \ifx\@onlypreamble\@notprerr \index[\jobname-changes]{\texttt{#2}~(#3)!\l_tmpa_tl} + \else + \index[\jobname-changes]{\texttt{#2}~(#3)!\emph{Globalement}!\l_tmpa_tl|gobble} + \fi } -\DeclareDocumentCommand \PrintChanges { o } { +\DeclareDocumentCommand \PrintChanges { O{} } { \indexprologue{#1} \def\imki@indexlevel{\chapter} \printindex[\jobname-changes] @@ -841,8 +846,8 @@ Nouv.~:}~#1} \__denisbdoc_package:nnnnnnn {#1}{#2}{#3}{#4}{classe}{#6}{#7} }{}% \IfLanguageName{english}{% - \__denisbdoc_package:nnnnnnn {#1}{#2}{#3}{#4}{class}{#6}{#7} - ~class + \__denisbdoc_package:nnnnnnn {#1}{#2}{#3}{#4}{class}{#6}{#7}~% + class }{}% } \cs_new_protected:Nn \__denisbdoc_format:n @@ -899,11 +904,11 @@ Nouv.~:}~#1} } \NewDocumentCommand{\texlive}{ } { - \TeX{}\space{}Live\xspace + \href{http://www.tug.org/texlive/}{\TeX{}\space{}Live}\xspace } \NewDocumentCommand{\miktex}{ } { - MiK\TeX\xspace + \href{http://www.tug.org/texlive/}{MiK\TeX}\xspace } \NewDocumentCommand{\linux}{ } { |