diff options
author | Karl Berry <karl@freefriends.org> | 2017-09-11 20:47:29 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-09-11 20:47:29 +0000 |
commit | fcd87a9cfad7e0d21b6843d62708c8ee5dbbe174 (patch) | |
tree | 6fe969d7c8e205f66ad5a5457cb5be51edaeb23f /Master/texmf-dist/source/latex/glossaries-extra | |
parent | 4d303b2a2c199c45fa891c360c4e314aae684669 (diff) |
glossaries-extra (11sep17)
git-svn-id: svn://tug.org/texlive/trunk@45271 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/glossaries-extra')
-rw-r--r-- | Master/texmf-dist/source/latex/glossaries-extra/glossaries-extra.dtx | 54 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/glossaries-extra/glossaries-extra.ins | 41 |
2 files changed, 57 insertions, 38 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 diff --git a/Master/texmf-dist/source/latex/glossaries-extra/glossaries-extra.ins b/Master/texmf-dist/source/latex/glossaries-extra/glossaries-extra.ins index 80c157f3f32..094b9017428 100644 --- a/Master/texmf-dist/source/latex/glossaries-extra/glossaries-extra.ins +++ b/Master/texmf-dist/source/latex/glossaries-extra/glossaries-extra.ins @@ -1,4 +1,4 @@ -% glossaries-extra.ins generated using makedtx version 1.2 2017/9/8 22:43 +% glossaries-extra.ins generated using makedtx version 1.2 2017/9/11 14:10 \input docstrip \preamble @@ -30,32 +30,19 @@ \usepostamble\defaultpostamble\from{glossaries-extra.dtx}{glossaries-extra-stylemods.sty,package}} \file{example-glossaries-xr.tex}{\usepreamble\defaultpreamble \usepostamble\defaultpostamble\from{glossaries-extra.dtx}{example-glossaries-xr.tex,package}} -\file{example-glossaries-acronym-desc.bib}{\usepreamble\defaultpreamble -\usepostamble\defaultpostamble\from{glossaries-extra.dtx}{example-glossaries-acronym-desc.bib,package}} -\file{example-glossaries-acronym.bib}{\usepreamble\defaultpreamble -\usepostamble\defaultpostamble\from{glossaries-extra.dtx}{example-glossaries-acronym.bib,package}} -\file{example-glossaries-acronyms-lang.bib}{\usepreamble\defaultpreamble -\usepostamble\defaultpostamble\from{glossaries-extra.dtx}{example-glossaries-acronyms-lang.bib,package}} -\file{example-glossaries-brief.bib}{\usepreamble\defaultpreamble -\usepostamble\defaultpostamble\from{glossaries-extra.dtx}{example-glossaries-brief.bib,package}} -\file{example-glossaries-childnoname.bib}{\usepreamble\defaultpreamble -\usepostamble\defaultpostamble\from{glossaries-extra.dtx}{example-glossaries-childnoname.bib,package}} -\file{example-glossaries-cite.bib}{\usepreamble\defaultpreamble -\usepostamble\defaultpostamble\from{glossaries-extra.dtx}{example-glossaries-cite.bib,package}} -\file{example-glossaries-images.bib}{\usepreamble\defaultpreamble -\usepostamble\defaultpostamble\from{glossaries-extra.dtx}{example-glossaries-images.bib,package}} -\file{example-glossaries-long.bib}{\usepreamble\defaultpreamble -\usepostamble\defaultpostamble\from{glossaries-extra.dtx}{example-glossaries-long.bib,package}} -\file{example-glossaries-multipar.bib}{\usepreamble\defaultpreamble -\usepostamble\defaultpostamble\from{glossaries-extra.dtx}{example-glossaries-multipar.bib,package}} -\file{example-glossaries-parent.bib}{\usepreamble\defaultpreamble -\usepostamble\defaultpostamble\from{glossaries-extra.dtx}{example-glossaries-parent.bib,package}} -\file{example-glossaries-symbols.bib}{\usepreamble\defaultpreamble -\usepostamble\defaultpostamble\from{glossaries-extra.dtx}{example-glossaries-symbols.bib,package}} -\file{example-glossaries-url.bib}{\usepreamble\defaultpreamble -\usepostamble\defaultpostamble\from{glossaries-extra.dtx}{example-glossaries-url.bib,package}} -\file{example-glossaries-xr.bib}{\usepreamble\defaultpreamble -\usepostamble\defaultpostamble\from{glossaries-extra.dtx}{example-glossaries-xr.bib,package}} +\file{example-glossaries-acronym-desc.bib}{\nopreamble\nopostamble\from{glossaries-extra.dtx}{example-glossaries-acronym-desc.bib}} +\file{example-glossaries-acronym.bib}{\nopreamble\nopostamble\from{glossaries-extra.dtx}{example-glossaries-acronym.bib}} +\file{example-glossaries-acronyms-lang.bib}{\nopreamble\nopostamble\from{glossaries-extra.dtx}{example-glossaries-acronyms-lang.bib}} +\file{example-glossaries-brief.bib}{\nopreamble\nopostamble\from{glossaries-extra.dtx}{example-glossaries-brief.bib}} +\file{example-glossaries-childnoname.bib}{\nopreamble\nopostamble\from{glossaries-extra.dtx}{example-glossaries-childnoname.bib}} +\file{example-glossaries-cite.bib}{\nopreamble\nopostamble\from{glossaries-extra.dtx}{example-glossaries-cite.bib}} +\file{example-glossaries-images.bib}{\nopreamble\nopostamble\from{glossaries-extra.dtx}{example-glossaries-images.bib}} +\file{example-glossaries-long.bib}{\nopreamble\nopostamble\from{glossaries-extra.dtx}{example-glossaries-long.bib}} +\file{example-glossaries-multipar.bib}{\nopreamble\nopostamble\from{glossaries-extra.dtx}{example-glossaries-multipar.bib}} +\file{example-glossaries-parent.bib}{\nopreamble\nopostamble\from{glossaries-extra.dtx}{example-glossaries-parent.bib}} +\file{example-glossaries-symbols.bib}{\nopreamble\nopostamble\from{glossaries-extra.dtx}{example-glossaries-symbols.bib}} +\file{example-glossaries-url.bib}{\nopreamble\nopostamble\from{glossaries-extra.dtx}{example-glossaries-url.bib}} +\file{example-glossaries-xr.bib}{\nopreamble\nopostamble\from{glossaries-extra.dtx}{example-glossaries-xr.bib}} } \endbatchfile |