summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/glossaries-extra/glossaries-extra.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/glossaries-extra/glossaries-extra.dtx')
-rw-r--r--Master/texmf-dist/source/latex/glossaries-extra/glossaries-extra.dtx54
1 files changed, 43 insertions, 11 deletions
diff --git a/Master/texmf-dist/source/latex/glossaries-extra/glossaries-extra.dtx b/Master/texmf-dist/source/latex/glossaries-extra/glossaries-extra.dtx
index 3ead78d314b..e5c743bed66 100644
--- a/Master/texmf-dist/source/latex/glossaries-extra/glossaries-extra.dtx
+++ b/Master/texmf-dist/source/latex/glossaries-extra/glossaries-extra.dtx
@@ -3,18 +3,19 @@
% Command line args:
% -comment ".*\.tex"
% -comment ".*\.bib"
-% -author "Nicola Talbot"
+% -doc "glossaries-extra-codedoc.tex"
% -macrocode ".*\.tex"
% -macrocode ".*\.bib"
% -section "chapter"
-% -codetitle "Main Package Code (\\styfmt{glossaries-extra.sty})"
-% -doc "glossaries-extra-codedoc.tex"
+% -setambles ".*\.bib=>\nopreamble\nopostamble"
+% -author "Nicola Talbot"
% -src "glossaries-extra.sty\Z=>glossaries-extra.sty"
% -src "glossaries-extra-stylemods.sty\Z=>glossaries-extra-stylemods.sty"
% -src "(example-glossaries-.+\.tex)\Z=>\1"
% -src "(example-glossaries-.+\.bib)\Z=>\1"
+% -codetitle "Main Package Code (\\styfmt{glossaries-extra.sty})"
% glossaries-extra
-% Created on 2017/9/8 22:43
+% Created on 2017/9/11 14:10
%\fi
%\iffalse
%<*package>
@@ -124,7 +125,7 @@ governed by the \gloskey{first} and \gloskey{firstplural} keys of
\setcounter{IndexColumns}{2}
-\CheckSum{17566}
+\CheckSum{17580}
\newcommand*{\ifirstuse}{\iterm{first use}}
\newcommand*{\firstuse}{\gls{firstuse}}
@@ -164,13 +165,13 @@ governed by the \gloskey{first} and \gloskey{firstplural} keys of
\raggedright
}
-\title{glossaries-extra.sty v1.19:
+\title{glossaries-extra.sty v1.20:
documented code}
\author{Nicola L.C. Talbot\\[10pt]
Dickimaw Books\\
\url{http://www.dickimaw-books.com/}}
-\date{2017-09-08}
+\date{2017-09-11}
\begin{document}
\DocInput{glossaries-extra.dtx}
@@ -215,7 +216,7 @@ Dickimaw Books\\
%\section{Package Initialisation and Options}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{glossaries-extra}[2017/09/08 v1.19 (NLCT)]
+\ProvidesPackage{glossaries-extra}[2017/09/11 v1.20 (NLCT)]
% \end{macrocode}
% Requires \sty{xkeyval} to define package options.
% \begin{macrocode}
@@ -6985,7 +6986,31 @@ Dickimaw Books\\
\fi
}
% \end{macrocode}
+%\begin{macro}{\@glsxtrhypernameprefix}
+%\changes{1.20}{2017-09-11}{new}
+% \begin{macrocode}
+\newcommand{\@glsxtrhypernameprefix}{}
+% \end{macrocode}
+%\end{macro}
%
+%New to v1.20:
+% \begin{macrocode}
+\define@key{printgloss}{targetnameprefix}{%
+ \renewcommand{\@glsxtrhypernameprefix}{#1}%
+}
+% \end{macrocode}
+%
+%\begin{macro}{\glsdohypertarget}
+%\changes{1.20}{2017-09-11}{added redefinition}
+%Redefine to insert \cs{@glsxtrhypernameprefix} before the target
+%name.
+% \begin{macrocode}
+\let\@glsxtr@org@glsdohypertarget\glsdohypertarget
+\renewcommand{\glsdohypertarget}[2]{%
+ \@glsxtr@org@glsdohypertarget{\@glsxtrhypernameprefix#1}{#2}%
+}
+% \end{macrocode}
+%\end{macro}
%\begin{macro}{\glsxtr@makeglossaries}
%For the benefit of \app{makeglossaries}
%\changes{1.09}{2016-12-16}{new}
@@ -8072,12 +8097,19 @@ Dickimaw Books\\
{\glsxtrunsrtdo{##1}}%
{}%
}%
+% \end{macrocode}
+%\changes{1.20}{2017-09-11}{switched from redefining \cs{glolinkprefix} to
+% \cs{@glsxtrhypernameprefix}}
+%Only the target names should have the prefixes adjusted as \cs{gls}
+%etc need the original \cs{glolinkprefix}. The \cs{@gobble} part
+%discards \cs{glolinkprefix}.
+% \begin{macrocode}
\ifcsundef{theH#1}%
{%
- \renewcommand*{\glolinkprefix}{record.#1.\csuse{the#1}.}%
+ \renewcommand*{\@glsxtrhypernameprefix}{record.#1.\csuse{the#1}.\@gobble}%
}%
{%
- \renewcommand*{\glolinkprefix}{record.#1.\csuse{theH#1}.}%
+ \renewcommand*{\@glsxtrhypernameprefix}{record.#1.\csuse{theH#1}.\@gobble}%
}%
\renewcommand*{\glossarysection}[2][]{}%
\appto\glossarypostamble{\glspar\medskip\glspar}%
@@ -18842,7 +18874,7 @@ Dickimaw Books\\
% First identify package:
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{glossaries-extra-stylemods}[2017/09/08 v1.19 (NLCT)]
+\ProvidesPackage{glossaries-extra-stylemods}[2017/09/11 v1.20 (NLCT)]
% \end{macrocode}
% Provide package options to automatically load required predefined
% styles. The simplest method is to just test for the existence of