diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/denisbdoc/denisbdoc.sty')
-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}{ } { |