texlive[42387] Master/texmf-dist: denisbdoc (30oct16)
commits+karl at tug.org
commits+karl at tug.org
Sun Oct 30 22:47:55 CET 2016
Revision: 42387
http://tug.org/svn/texlive?view=revision&revision=42387
Author: karl
Date: 2016-10-30 22:47:55 +0100 (Sun, 30 Oct 2016)
Log Message:
-----------
denisbdoc (30oct16)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/denisbdoc/README.md
trunk/Master/texmf-dist/doc/latex/denisbdoc/denisbdoc-chng.xdy
trunk/Master/texmf-dist/doc/latex/denisbdoc/denisbdoc.xdy
trunk/Master/texmf-dist/source/latex/denisbdoc/denisbdoc.dtx
trunk/Master/texmf-dist/source/latex/denisbdoc/denisbdoc.ins
trunk/Master/texmf-dist/tex/latex/denisbdoc/denisbdoc.sty
Modified: trunk/Master/texmf-dist/doc/latex/denisbdoc/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/denisbdoc/README.md 2016-10-30 21:47:42 UTC (rev 42386)
+++ trunk/Master/texmf-dist/doc/latex/denisbdoc/README.md 2016-10-30 21:47:55 UTC (rev 42387)
@@ -1,4 +1,4 @@
-denisbdoc - A personal package for documenting classes and packages, v. 0.4
+denisbdoc - A personal package for documenting classes and packages, v. 0.5
===========================================================================
**The (quick 'n dirty) `denisbdoc` package is just for documenting the classes
Modified: trunk/Master/texmf-dist/doc/latex/denisbdoc/denisbdoc-chng.xdy
===================================================================
--- trunk/Master/texmf-dist/doc/latex/denisbdoc/denisbdoc-chng.xdy 2016-10-30 21:47:42 UTC (rev 42386)
+++ trunk/Master/texmf-dist/doc/latex/denisbdoc/denisbdoc-chng.xdy 2016-10-30 21:47:55 UTC (rev 42387)
@@ -5,9 +5,12 @@
(markup-locref :open "\hyperpage{" :close "}")
(markup-locref-list :sep ", ")
-(markup-locclass-list :open "\dotfill " :close "" )
+(markup-locclass-list :open "\hfill\nobreakspace" :close "" )
+(define-attributes (("gobble" "default")))
+(markup-locref :open "\makeatletter\@gobble{" :close "}\makeatother" :attr "gobble")
+
(markup-index :open "~n
\clearpage
\phantomsection
Modified: trunk/Master/texmf-dist/doc/latex/denisbdoc/denisbdoc.xdy
===================================================================
--- trunk/Master/texmf-dist/doc/latex/denisbdoc/denisbdoc.xdy 2016-10-30 21:47:42 UTC (rev 42386)
+++ trunk/Master/texmf-dist/doc/latex/denisbdoc/denisbdoc.xdy 2016-10-30 21:47:55 UTC (rev 42387)
@@ -24,8 +24,6 @@
(markup-keyword-list :open "\targetindexentryii{" :close "}" :depth 2)
(markup-index :open "~n
-\clearpage
-\phantomsection
\begin{theindex}
\providecommand*\lettergroupDefault[1]{}
\providecommand*\lettergroup[1]{%
Modified: trunk/Master/texmf-dist/source/latex/denisbdoc/denisbdoc.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/denisbdoc/denisbdoc.dtx 2016-10-30 21:47:42 UTC (rev 42386)
+++ trunk/Master/texmf-dist/source/latex/denisbdoc/denisbdoc.dtx 2016-10-30 21:47:55 UTC (rev 42387)
@@ -3,7 +3,7 @@
\iffalse
%</internal>
%<*readme>
-denisbdoc - A personal package for documenting classes and packages, v. 0.4
+denisbdoc - A personal package for documenting classes and packages, v. 0.5
===========================================================================
**The (quick 'n dirty) `denisbdoc` package is just for documenting the classes
@@ -30,7 +30,7 @@
\askforoverwritefalse
\preamble
-----------------------------------------------------------------------------
-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 at lmpa.univ-littoral.fr
@@ -118,7 +118,8 @@
%\changes{v0.1}{2015/03/15}{First CTAN version}
%\changes{v0.2}{2016/04/04}{Second CTAN version}
%\changes{v0.3}{2016/06/10}{Third CTAN version}
-%\changes{v0.4}{2016/10/24}{Fourth CTAN version}
+%\changes{v0.5}{2016/10/24}{Fourth CTAN version}
+%\changes{v0.5}{2016/10/30}{Fifth CTAN version}
%
%\begin{abstract}
% ...
@@ -189,7 +190,7 @@
%
% The usual preliminaries.
% \begin{macrocode}
-\ProvidesExplPackage {denisbdoc} {2016/10/24} {0.4}
+\ProvidesExplPackage {denisbdoc} {2016/10/30} {0.5}
{A personal package for documenting packages}
% \end{macrocode}
%
@@ -369,7 +370,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}%
@@ -597,12 +598,19 @@
\attachfilesetup{color=Hyperlink}
% \end{macrocode}
%
+% In order to get \pkg{titleps}' header in index to include current index entry,
+% we define the following |\indexmark| command
+% (cf. \url{http://tex.stackexchange.com/q/335522/18401}) that will be inserted
+% inside the (level 0) |\targetindexentry| command below.
+% \begin{macrocode}
+\newcommand{\indexmark}[1]{\hypertarget{index:#1}{#1}\markboth{#1}{#1}}
+% \end{macrocode}
+%
% In order to get \pkg{hyperref} and \pkg{xindy} work nicely together
% (cf. \url{http://geekographie.maieul.net/172}).
% \begin{macrocode}
-% \newcounter{target}
-% \newcommand{\targetindexentry}[1]{\hypertarget{\thetarget:index:#1}{#1}}
-\newcommand{\targetindexentry}[1]{\hypertarget{index:#1}{#1}}
+% \newcommand{\targetindexentry}[1]{\hypertarget{index:#1}{#1}}
+\newcommand{\targetindexentry}[1]{\indexmark{#1}}
\newcounter{targeti}
\newcommand{\targetindexentryi}[1]{\stepcounter{targeti}\hypertarget{\thetargeti:index:#1}{#1}}
\newcounter{targetii}
@@ -1372,7 +1380,7 @@
{
\_@@_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}
{
@@ -1380,9 +1388,13 @@
}{
\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}
% \end{macrocode}
%
@@ -1511,8 +1523,8 @@
\_@@_package:nnnnnnn {#1}{#2}{#3}{#4}{classe}{#6}{#7}
}{}%
\IfLanguageName{english}{%
- \_@@_package:nnnnnnn {#1}{#2}{#3}{#4}{class}{#6}{#7}
- ~class
+ \_@@_package:nnnnnnn {#1}{#2}{#3}{#4}{class}{#6}{#7}~%
+ class
}{}%
}
%
@@ -1571,11 +1583,11 @@
}
\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}{ }
{
@@ -2189,8 +2201,6 @@
(markup-index :open "~n
% \bookmarksetup{open}
-\clearpage
-\phantomsection
\begin{theindex}
\providecommand*\lettergroupDefault[1]{}
\providecommand*\lettergroup[1]{%
@@ -2218,10 +2228,13 @@
(markup-locref :open "\hyperpage{" :close "}")
-
(markup-locref-list :sep ", ")
-(markup-locclass-list :open "\dotfill " :close "" )
+(markup-locclass-list :open "\hfill\nobreakspace" :close "" )
+(define-attributes (("gobble" "default")))
+(markup-locref :open "\makeatletter\@gobble{" :close "}\makeatother" :attr "gobble")
+% (markup-locclass-list :open "" :sep "")
+
% (markup-keyword-list :open "{\small " :close "}" )
% (markup-keyword-list :open "{\small " :close "}" :depth 1)
% (markup-keyword-list :open "{\small " :close "}" :depth 2)
Modified: trunk/Master/texmf-dist/source/latex/denisbdoc/denisbdoc.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/denisbdoc/denisbdoc.ins 2016-10-30 21:47:42 UTC (rev 42386)
+++ trunk/Master/texmf-dist/source/latex/denisbdoc/denisbdoc.ins 2016-10-30 21:47:55 UTC (rev 42387)
@@ -2,7 +2,7 @@
\askforoverwritefalse
\preamble
-----------------------------------------------------------------------------
-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 at lmpa.univ-littoral.fr
Modified: trunk/Master/texmf-dist/tex/latex/denisbdoc/denisbdoc.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/denisbdoc/denisbdoc.sty 2016-10-30 21:47:42 UTC (rev 42386)
+++ trunk/Master/texmf-dist/tex/latex/denisbdoc/denisbdoc.sty 2016-10-30 21:47:55 UTC (rev 42387)
@@ -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 at 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 @@
{
\__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 @@
}{
\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 at indexlevel{\chapter}
\printindex[\jobname-changes]
@@ -841,8 +846,8 @@
\__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 @@
}
\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}{ }
{
More information about the tex-live-commits
mailing list