diff options
author | Karl Berry <karl@freefriends.org> | 2015-09-10 20:58:01 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-09-10 20:58:01 +0000 |
commit | 09eacca54ff83c24b65dc6f2472666febb9a15cc (patch) | |
tree | 995f84bf905ef2d4815718518ded0bbc7703c859 /Master/texmf-dist/source/latex/glossaries | |
parent | 9e8a295d38a2315ed078122e51b2009c05632212 (diff) |
glossaries (9sep15)
git-svn-id: svn://tug.org/texlive/trunk@38342 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/glossaries')
-rw-r--r-- | Master/texmf-dist/source/latex/glossaries/glossaries.dtx | 538 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/glossaries/glossaries.ins | 10 |
2 files changed, 29 insertions, 519 deletions
diff --git a/Master/texmf-dist/source/latex/glossaries/glossaries.dtx b/Master/texmf-dist/source/latex/glossaries/glossaries.dtx index 79f07e0c42c..69d45f0ea79 100644 --- a/Master/texmf-dist/source/latex/glossaries/glossaries.dtx +++ b/Master/texmf-dist/source/latex/glossaries/glossaries.dtx @@ -1,13 +1,8 @@ %\iffalse % glossaries.dtx generated using makedtx version 1.1 (c) Nicola Talbot % Command line args: -% -setambles ".*\.perl=>\nopreamble\nopostamble" -% -setambles ".*\.tex=>\nopreamble\nopostamble" -% -setambles ".*\.xdy=>\nopreamble\nopostamble" % -src "glossaries.sty\Z=>glossaries.sty" % -src "glossaries-prefix.sty\Z=>glossaries-prefix.sty" -% -src "mfirstuc.sty\Z=>mfirstuc.sty" -% -src "mfirstuc-english.sty\Z=>mfirstuc-english.sty" % -src "(glossary-.+)\.(sty)\Z=>\1.\2" % -src "(glossaries-compatible-.+)\.(sty)\Z=>\1.\2" % -src "(glossaries-accsupp)\.(sty)\Z=>\1.\2" @@ -21,17 +16,20 @@ % -src "(samplexdy-mc.*\.xdy)\Z=>\1" % -src "(database.*\.tex)\Z=>\1" % -src "(.*\.perl)\Z=>\1" -% -codetitle "Main Package Code" -% -doc "glossaries-manual.tex" % -author "Nicola Talbot" % -comment ".*\.perl" % -comment ".*\.tex" % -comment ".*\.xdy" +% -codetitle "Main Package Code" % -macrocode ".*\.perl" % -macrocode ".*\.tex" % -macrocode ".*\.xdy" +% -doc "glossaries-manual.tex" +% -setambles ".*\.perl=>\nopreamble\nopostamble" +% -setambles ".*\.tex=>\nopreamble\nopostamble" +% -setambles ".*\.xdy=>\nopreamble\nopostamble" % glossaries -% Created on 2015/7/17 12:18 +% Created on 2015/9/9 16:00 %\fi %\iffalse %<*package> @@ -141,7 +139,7 @@ governed by the \gloskey{first} and \gloskey{firstplural} keys of \setcounter{IndexColumns}{2} -\CheckSum{18302} +\CheckSum{18081} \newcommand*{\ifirstuse}{\iterm{first use}} \newcommand*{\firstuse}{\gls{firstuse}} @@ -169,12 +167,12 @@ governed by the \gloskey{first} and \gloskey{firstplural} keys of %\MakeShortVerb{"} %\DeleteShortVerb{\|} % -% \title{Documented Code For glossaries v4.17} +% \title{Documented Code For glossaries v4.18} % \author{Nicola L.C. Talbot\\[10pt] %Dickimaw Books\\ %\url{http://www.dickimaw-books.com/}} % -% \date{2015-07-17} +% \date{2015-09-09} % \maketitle % %This is the documented code for the \styfmt{glossaries} package. @@ -190,7 +188,7 @@ governed by the \gloskey{first} and \gloskey{firstplural} keys of %glossaries package}. % %\item[\url{glossaries-user.pdf}] -%For the main user guide, read \qt{glossaries.sty v4.17: +%For the main user guide, read \qt{glossaries.sty v4.18: %\LaTeX2e\ Package to Assist Generating Glossaries}. % %\item[\url{mfirstuc-manual.pdf}] @@ -249,8 +247,9 @@ governed by the \gloskey{first} and \gloskey{firstplural} keys of % This package requires \LaTeXe. % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{glossaries}[2015/07/17 v4.17 (NLCT)] +\ProvidesPackage{glossaries}[2015/09/09 v4.18 (NLCT)] % \end{macrocode} +%\changes{4.18}{2015-09-09}{split mfirstuc into separate bundle} % Required packages: % \begin{macrocode} \RequirePackage{ifthen} @@ -17761,7 +17760,7 @@ false,nolabel,autolabel,nameref}[nolabel]{% % \cs{gls}\marg{label}'' on subsequent use. % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{glossaries-prefix}[2015/07/17 v4.17 (NLCT)] +\ProvidesPackage{glossaries-prefix}[2015/09/09 v4.18 (NLCT)] % \end{macrocode} % Pass all options to \sty{glossaries}: % \begin{macrocode} @@ -18168,291 +18167,6 @@ false,nolabel,autolabel,nameref}[nolabel]{% %\fi %\iffalse % \begin{macrocode} -%<*mfirstuc.sty> -% \end{macrocode} -%\fi -%\section{Mfirstuc Documented Code} -%\label{sec:code:mfirstuc} -% \begin{macrocode} -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{mfirstuc}[2015/02/03 v1.10 (NLCT)] -% \end{macrocode} -% Requires \sty{etoolbox}:\changes{1.06}{2012/05/21}{now requires -% etoolbox} -% \begin{macrocode} -\RequirePackage{etoolbox} -% \end{macrocode} -%\begin{macro}{\makefirstuc} -% Syntax: -%\begin{definition} -% \cs{makefirstuc}\marg{text} -%\end{definition} -% Makes the first letter uppercase, but will -% skip initial control sequences if they are followed by a group -% and make the first thing in the group uppercase, unless the group -% is empty. -% Thus \verb|\makefirstuc{abc}| will produce: Abc, -% \verb|\makefirstuc{\ae bc}| will produce: \AE bc, but -% \verb|\makefirstuc{\emph{abc}}| will produce \emph{Abc}. -% This is required by \ics{Gls} and \ics{Glspl}. -%\changes{1.08}{2013-11-04}{made robust} -% \begin{macrocode} -\newif\if@glscs -\newtoks\@glsmfirst -\newtoks\@glsmrest -\newrobustcmd*{\makefirstuc}[1]{% - \def\gls@argi{#1}% - \ifx\gls@argi\@empty -% \end{macrocode} -% If the argument is empty, do nothing. -% \begin{macrocode} - \else -% \end{macrocode} -%\changes{1.03}{2008/12/22}{changed 'protected@edef to 'def} -% \begin{macrocode} - \def\@gls@tmp{\ #1}% - \@onelevel@sanitize\@gls@tmp - \expandafter\@gls@checkcs\@gls@tmp\relax\relax - \if@glscs - \@gls@getbody #1{}\@nil - \ifx\@gls@rest\@empty - \glsmakefirstuc{#1}% - \else - \expandafter\@gls@split\@gls@rest\@nil - \ifx\@gls@first\@empty - \glsmakefirstuc{#1}% - \else - \expandafter\@glsmfirst\expandafter{\@gls@first}% - \expandafter\@glsmrest\expandafter{\@gls@rest}% - \edef\@gls@domfirstuc{\noexpand\@gls@body - {\noexpand\glsmakefirstuc\the\@glsmfirst}% - \the\@glsmrest}% - \@gls@domfirstuc - \fi - \fi - \else - \glsmakefirstuc{#1}% - \fi - \fi -} -% \end{macrocode} -%\end{macro} -% Put first argument in \cs{@gls@first} and second argument in -% \cs{@gls@rest}: -% \begin{macrocode} -\def\@gls@split#1#2\@nil{% - \def\@gls@first{#1}\def\@gls@rest{#2}% -} -% \end{macrocode} -% \begin{macrocode} -\def\@gls@checkcs#1 #2#3\relax{% - \def\@gls@argi{#1}\def\@gls@argii{#2}% - \ifx\@gls@argi\@gls@argii - \@glscstrue - \else - \@glscsfalse - \fi -} -% \end{macrocode} -%\begin{macro}{\@gls@makefirstuc} -% Make first thing upper case: -% \begin{macrocode} -\def\@gls@makefirstuc#1{\mfirstucMakeUppercase #1} -% \end{macrocode} -%\end{macro} -% -%\begin{macro}{\mfirstucMakeUppercase} -% Allow user to replace \cs{MakeUppercase} with another case -% changing command. -% \begin{macrocode} -\newcommand*{\mfirstucMakeUppercase}{\MakeUppercase} -% \end{macrocode} -%\end{macro} -%\begin{macro}{\glsmakefirstuc} -%\changes{1.05}{2011/04/02}{new} -% Provide a user command to make it easier to customise. -% \begin{macrocode} -\newcommand*{\glsmakefirstuc}[1]{\@gls@makefirstuc{#1}} -% \end{macrocode} -%\end{macro} -% -% Get the first grouped argument and store in \cs{@gls@body}. -% \begin{macrocode} -\def\@gls@getbody#1#{\def\@gls@body{#1}\@gls@gobbletonil} -% \end{macrocode} -% Scoup up everything to \cs{@nil} and store in \cs{@gls@rest}: -% \begin{macrocode} -\def\@gls@gobbletonil#1\@nil{\def\@gls@rest{#1}} -% \end{macrocode} -% -%\begin{macro}{\xmakefirstuc} -% Expand argument once before applying \cs{makefirstuc} -% (added v1.01). -% \begin{macrocode} -\newcommand*{\xmakefirstuc}[1]{% -\expandafter\makefirstuc\expandafter{#1}} -% \end{macrocode} -%\end{macro} -% -%\begin{macro}{\emakefirstuc} -%\changes{1.10}{2015/05/03}{new} -% Fully expand argument before applying \cs{makefirstuc} -% \begin{macrocode} -\DeclareRobustCommand*{\emakefirstuc}[1]{% - \protected@edef\@MFU@caparg{#1}% - \expandafter\makefirstuc\expandafter{\@MFU@caparg}% -} -% \end{macrocode} -%\end{macro} -% -%\begin{macro}{\capitalisewords} -%\changes{1.06}{2012/05/21}{new} -% Capitalise each word in the argument. Words are considered to be -% separated by plain spaces (i.e.\ non-breakable spaces won't be -% considered a word break). -%\changes{1.08}{2013-11-04}{made robust} -%\changes{1.09}{2017-07-30}{added check for words that shouldn't be -%capitalised} -% \begin{macrocode} -\newrobustcmd*{\capitalisewords}[1]{% - \def\gls@add@space{}% - \let\@mfu@domakefirstuc\makefirstuc - \let\@mfu@checkword\@gobble - \mfu@capitalisewords#1 \@nil\mfu@endcap -} -% \end{macrocode} -%\end{macro} -% -% \begin{macrocode} -\def\mfu@capitalisewords#1 #2\mfu@endcap{% - \def\mfu@cap@first{#1}% - \def\mfu@cap@second{#2}% - \gls@add@space - \@mfu@checkword{#1}% - \@mfu@domakefirstuc{#1}% - \def\gls@add@space{ }% - \ifx\mfu@cap@second\@nnil - \let\next@mfu@cap\mfu@noop - \else - \let\next@mfu@cap\mfu@capitalisewords - \let\@mfu@checkword\mfu@checkword - \fi - \next@mfu@cap#2\mfu@endcap -} -\def\mfu@noop#1\mfu@endcap{} -% \end{macrocode} -% -%\begin{macro}{\mfu@checkword} -% Check if word should be capitalised. -%\changes{1.09}{2017-07-30}{new} -% \begin{macrocode} -\newcommand*\mfu@checkword[1]{% - \ifinlist{#1}{\@mfu@nocaplist}% - {% - \let\@mfu@domakefirstuc\@firstofone - }% - {% - \let\@mfu@domakefirstuc\makefirstuc - }% -} -% \end{macrocode} -%\end{macro} -% -%\begin{macro}{\@mfu@nocaplist} -% List of words that shouldn't be capitalised. -%\changes{1.09}{2017-07-30}{new} -% \begin{macrocode} -\newcommand*{\@mfu@nocaplist}{} -% \end{macrocode} -%\end{macro} -% -%\begin{macro}{\MFUnocap} -% Provide the user with a means to add a word to the list. -% \begin{macrocode} -\newcommand*{\MFUnocap}[1]{\listadd{\@mfu@nocaplist}{#1}} -% \end{macrocode} -%\end{macro} -%\begin{macro}{\gMFUnocap} -% Global version. -%\changes{1.09}{2017-07-30}{new} -% \begin{macrocode} -\newcommand*{\gMFUnocap}[1]{\listgadd{\@mfu@nocaplist}{#1}} -% \end{macrocode} -%\end{macro} -% -%\begin{macro}{\MFUclear} -% Clear the list -%\changes{1.09}{2017-07-30}{new} -% \begin{macrocode} -\newcommand*{\MFUclear}{\renewcommand*{\@mfu@nocaplist}{}} -% \end{macrocode} -%\end{macro} -% -%\begin{macro}{\xcapitalisewords} -%\changes{1.06}{2012/05/21}{new} -% Short-cut command: -% \begin{macrocode} -\newcommand*{\xcapitalisewords}[1]{% - \expandafter\capitalisewords\expandafter{#1}% -} -% \end{macrocode} -%\end{macro} -% -%\begin{macro}{\ecapitalisewords} -%\changes{1.10}{2015/05/03}{new} -% Fully expand argument before applying \cs{capitalisewords} -% \begin{macrocode} -\DeclareRobustCommand*{\ecapitalisewords}[1]{% - \protected@edef\@MFU@caparg{#1}% - \expandafter\capitalisewords\expandafter{\@MFU@caparg}% -} -% \end{macrocode} -%\end{macro} -%\iffalse -% \begin{macrocode} -%</mfirstuc.sty> -% \end{macrocode} -%\fi -%\iffalse -% \begin{macrocode} -%<*mfirstuc-english.sty> -% \end{macrocode} -%\fi -%\section{Mfirstuc-english Documented Code} -%\label{sec:code:mfirstuc-english} -% \begin{macrocode} -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{mfirstuc-english}[2014/07/30 v1.0 (NLCT)] -% \end{macrocode} -% Load \sty{mfirstuc} if not already loaded: -% \begin{macrocode} -\RequirePackage{mfirstuc} -% \end{macrocode} -% Add no-cap words. (List isn't a complete list.) -% \begin{macrocode} -\MFUnocap{a} -\MFUnocap{an} -\MFUnocap{and} -\MFUnocap{but} -\MFUnocap{for} -\MFUnocap{in} -\MFUnocap{of} -\MFUnocap{or} -\MFUnocap{no} -\MFUnocap{nor} -\MFUnocap{so} -\MFUnocap{some} -\MFUnocap{the} -\MFUnocap{with} -\MFUnocap{yet} -% \end{macrocode} -%\iffalse -% \begin{macrocode} -%</mfirstuc-english.sty> -% \end{macrocode} -%\fi -%\iffalse -% \begin{macrocode} %<*glossary-hypernav.sty> % \end{macrocode} %\fi @@ -18461,7 +18175,7 @@ false,nolabel,autolabel,nameref}[nolabel]{% %\label{sec:code:hypernav} % Package Definition: % \begin{macrocode} -\ProvidesPackage{glossary-hypernav}[2015/07/17 v4.17 (NLCT)] +\ProvidesPackage{glossary-hypernav}[2015/09/09 v4.18 (NLCT)] % \end{macrocode} % % The commands defined in this package are provided to @@ -18629,7 +18343,7 @@ false,nolabel,autolabel,nameref}[nolabel]{% % This defines an in-line style where the entries are % comma-separated with just the name and description displayed. % \begin{macrocode} -\ProvidesPackage{glossary-inline}[2015/07/17 v4.17 (NLCT)] +\ProvidesPackage{glossary-inline}[2015/09/09 v4.18 (NLCT)] % \end{macrocode} % %\begin{style}{inline} @@ -18820,7 +18534,7 @@ false,nolabel,autolabel,nameref}[nolabel]{% % \ics{item} command, it will appear in a bold font by % default. % \begin{macrocode} -\ProvidesPackage{glossary-list}[2015/07/17 v4.17 (NLCT)] +\ProvidesPackage{glossary-list}[2015/09/09 v4.18 (NLCT)] % \end{macrocode} %\begin{macro}{\indexspace} %\changes{4.13}{2015-02-03}{new} @@ -19074,7 +18788,7 @@ false,nolabel,autolabel,nameref}[nolabel]{% % The glossary styles defined in the \isty{glossary-long} package % used the \env{longtable} environment in the glossary. % \begin{macrocode} -\ProvidesPackage{glossary-long}[2015/07/17 v4.17 (NLCT)] +\ProvidesPackage{glossary-long}[2015/09/09 v4.18 (NLCT)] % \end{macrocode} % Requires the \isty{longtable} package: % \begin{macrocode} @@ -19549,7 +19263,7 @@ false,nolabel,autolabel,nameref}[nolabel]{% % used the \env{longtable} environment in the glossary and use % ragged right formatting for the multiline columns. % \begin{macrocode} -\ProvidesPackage{glossary-longragged}[2015/07/17 v4.17 (NLCT)] +\ProvidesPackage{glossary-longragged}[2015/09/09 v4.18 (NLCT)] % \end{macrocode} % Requires the \isty{array} package: % \begin{macrocode} @@ -19960,7 +19674,7 @@ false,nolabel,autolabel,nameref}[nolabel]{% %use the \sty{multicol} package. These use the tree-like glossary %styles in a multicol environment. % \begin{macrocode} -\ProvidesPackage{glossary-mcols}[2015/07/17 v4.17 (NLCT)] +\ProvidesPackage{glossary-mcols}[2015/09/09 v4.18 (NLCT)] % \end{macrocode} % Required packages: % \begin{macrocode} @@ -20267,7 +19981,7 @@ false,nolabel,autolabel,nameref}[nolabel]{% % The glossary styles defined in the \isty{glossary-super} package % use the \env{supertabular} environment. % \begin{macrocode} -\ProvidesPackage{glossary-super}[2015/07/17 v4.17 (NLCT)] +\ProvidesPackage{glossary-super}[2015/09/09 v4.18 (NLCT)] % \end{macrocode} % Requires the \isty{supertabular} package: % \begin{macrocode} @@ -20777,7 +20491,7 @@ false,nolabel,autolabel,nameref}[nolabel]{% % are like those provided by the \isty{glossary-super} package, % except that the multiline columns have ragged right justification. % \begin{macrocode} -\ProvidesPackage{glossary-superragged}[2015/07/17 v4.17 (NLCT)] +\ProvidesPackage{glossary-superragged}[2015/09/09 v4.18 (NLCT)] % \end{macrocode} % Requires the \isty{array} package: % \begin{macrocode} @@ -21193,7 +20907,7 @@ false,nolabel,autolabel,nameref}[nolabel]{% % that have a tree-like structure. These are designed for % hierarchical glossaries. % \begin{macrocode} -\ProvidesPackage{glossary-tree}[2015/07/17 v4.17 (NLCT)] +\ProvidesPackage{glossary-tree}[2015/09/09 v4.18 (NLCT)] % \end{macrocode} % %\begin{macro}{\indexspace} @@ -21792,7 +21506,7 @@ false,nolabel,autolabel,nameref}[nolabel]{% % hyperlinks may not work properly. % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{glossaries-compatible-207}[2015/07/17 v4.17 (NLCT)] +\ProvidesPackage{glossaries-compatible-207}[2015/09/09 v4.18 (NLCT)] % \end{macrocode} %\begin{macro}{\GlsAddXdyAttribute} % Adds an attribute in old format. @@ -22153,7 +21867,7 @@ false,nolabel,autolabel,nameref}[nolabel]{% % Compatibility macros. % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{glossaries-compatible-307}[2015/07/17 v4.17 (NLCT)] +\ProvidesPackage{glossaries-compatible-307}[2015/09/09 v4.18 (NLCT)] % \end{macrocode} % % Compatibility macros for predefined glossary styles: @@ -22963,7 +22677,7 @@ false,nolabel,autolabel,nameref}[nolabel]{% % but will only be updated when \texttt{glossaries-accsupp.sty} is % modified. % \begin{macrocode} -\ProvidesPackage{glossaries-accsupp}[2015/07/17 v4.17 (NLCT) +\ProvidesPackage{glossaries-accsupp}[2015/09/09 v4.18 (NLCT) Experimental glossaries accessibility] % \end{macrocode} % Pass all options to \sty{glossaries}: @@ -25379,7 +25093,7 @@ false,nolabel,autolabel,nameref}[nolabel]{% % modules. % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{glossaries-babel}[2015/07/17 v4.17 (NLCT)] +\ProvidesPackage{glossaries-babel}[2015/09/09 v4.18 (NLCT)] % \end{macrocode} % Load \sty{tracklang} to obtain language settings. % \begin{macrocode} @@ -25423,7 +25137,7 @@ false,nolabel,autolabel,nameref}[nolabel]{% % modules. % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{glossaries-polyglossia}[2015/07/17 v4.17 (NLCT)] +\ProvidesPackage{glossaries-polyglossia}[2015/09/09 v4.18 (NLCT)] % \end{macrocode} % Load \sty{tracklang} to obtain language settings. % \begin{macrocode} @@ -28024,61 +27738,6 @@ Le \gls{fr-cat} s'est repos\'e sur la \gls{fr-mat}. %\fi %\iffalse % \begin{macrocode} -%<*sample-mfirstuc.tex> -% \end{macrocode} -%\fi -%\iffalse -% \begin{macrocode} - % This file is public domain - % If you want to use arara, you need the following directive: - % arara: pdflatex: { synctex: on } -\documentclass{article} - -\usepackage{mfirstuc-english} - -\begin{document} - -\makefirstuc{abc}. - -\makefirstuc{{\em abc}}. - -\makefirstuc{\emph{abc}}. - -\makefirstuc{\ae bc}. - -\makefirstuc{{\ae}bc}. - -\newcommand{\abc}{abc}% -\xmakefirstuc{\abc}. - -\capitalisewords{the wind in the willows} - -\capitalisewords{a book of rhyme.} - -\MFUclear - -\capitalisewords{the wind in the willows} - -\capitalisewords{a book of rhyme.} - -\capitalisewords{a book\space of rhyme.} - -\newcommand{\mytitle}{a book\space of rhyme.} -\capitalisewords{\mytitle} - -\xcapitalisewords{\mytitle} - - -\end{document} -% \end{macrocode} -%\fi -%\iffalse -% \begin{macrocode} -%</sample-mfirstuc.tex> -% \end{macrocode} -%\fi -%\iffalse -% \begin{macrocode} %<*sample-newkeys.tex> % \end{macrocode} %\fi @@ -37446,148 +37105,5 @@ _IGNORED_CMDS_ %</glossaries.perl> % \end{macrocode} %\fi -%\iffalse -% \begin{macrocode} -%<*mfirstuc.perl> -% \end{macrocode} -%\fi -%\iffalse -% \begin{macrocode} -# File : mfirstuc.perl -# Author : Nicola L. C. Talbot -# Date : 2012-09-21 -# Version : 1.0 -# Description : LaTeX2HTML (limited!) implementation of mfirstuc package - -# This is a LaTeX2HTML style implementing the mfirstuc package, and -# is distributed as part of the glossaries package. -# Copyright 2007 Nicola L.C. Talbot -# This work may be distributed and/or modified under the -# conditions of the LaTeX Project Public License, either version 1.3 -# of this license of (at your option) any later version. -# The latest version of this license is in -# http://www.latex-project.org/lppl.txt -# and version 1.3 or later is part of all distributions of LaTeX -# version 2005/12/01 or later. -# -# This work has the LPPL maintenance status `maintained'. -# -# The Current Maintainer of this work is Nicola Talbot. - -use warnings; - -package main; - -sub do_cmd_makefirstuc{ - local($_) = @_; - - local($id,$text); - - $text = &missing_braces unless - s/$next_pair_pr_rx/$id=$1;$text=$2;''/eo; - - &translate_commands("\\glsmakefirstuc $text") . $_; -} - -sub do_cmd_xmakefirstuc{ - local($_) = @_; - - local($id,$text); - - $text = &missing_braces unless - s/$next_pair_pr_rx/$id=$1;$text=$2;''/eo; - - unless ($id) - { - $id = ++$global{'max_id'}; - } - - &translate_commands("\\expandafter \\makefirstuc $OP$id$CP$text$OP$id$CP") - . $_; -} - -sub do_cmd_glsmakefirstuc{ - local($_) = @_; - - local($id,$text); - - $text = &get_next_object unless - s/$next_pair_pr_rx/$id=$1;$text=$2;''/eo; - - &do_real_makefirstuc($text).$_; -} - -sub do_real_makefirstuc{ - local($text) = @_; - - if ($text=~/^((?:\s*<[^>]+>\s*)+)(.*)/) - { - $text = $1 . ucfirst($2); - } - else - { - $text = ucfirst($text); - } - - $text; -} - -sub do_cmd_capitalisewords{ - local($_) = @_; - - local($id,$text); - - $text = &missing_braces unless - s/$next_pair_pr_rx/$id=$1;$text=$2;''/eo; - - local($newtext) = ''; - - foreach my $word (split ' ', $text) - { - $id = ++$global{'max_id'}; - - $word = &translate_commands("\\makefirstuc $OP$id$CP$word$OP$id$CP"); - - if ($newtext) - { - $newtext .= ' ' . $word; - } - else - { - $newtext = $word; - } - } - - $newtext.$_; -} - -sub get_next_object{ - local($next, $revert, $thisline); - local($this_cmd) = $cmd; - $this_cmd =~ s/^\\// unless ($cmd eq "\\"); - if (/^[\s%]*([^\n]*)\n/ ) { - $thisline = &revert_to_raw_tex($1) - } else { - $thisline = &revert_to_raw_tex($_); - } - s/^\s*//; - if ($_ =~ s/$next_token_rx//) { $next = $& }; - $next =~ s/$comment_mark(\d+\n?)?//g; - if ($next =~ /^\\(\W|\d|[a-zA-z]*\b)/) { - $revert = $next = "\\".$1; - } elsif ($next =~ /\W/) { - $revert = &revert_to_raw_tex($next); - } else { $revert = $next }; - $next; -} - -1; -% \end{macrocode} -%\fi -%\iffalse -% \begin{macrocode} -%</mfirstuc.perl> -% \end{macrocode} -%\fi %\Finale \endinput diff --git a/Master/texmf-dist/source/latex/glossaries/glossaries.ins b/Master/texmf-dist/source/latex/glossaries/glossaries.ins index 20032c36c59..c0a5dcf9314 100644 --- a/Master/texmf-dist/source/latex/glossaries/glossaries.ins +++ b/Master/texmf-dist/source/latex/glossaries/glossaries.ins @@ -1,4 +1,4 @@ -% glossaries.ins generated using makedtx version 1.1 2015/7/17 12:18 +% glossaries.ins generated using makedtx version 1.1 2015/9/9 16:00 \input docstrip \preamble @@ -18,7 +18,7 @@ The Current Maintainer of this work is Nicola Talbot. - This work consists of the files glossaries.dtx and glossaries.ins and the derived files glossaries.sty, glossaries-prefix.sty, mfirstuc.sty, mfirstuc-english.sty, glossary-hypernav.sty, glossary-inline.sty, glossary-list.sty, glossary-long.sty, glossary-longragged.sty, glossary-mcols.sty, glossary-super.sty, glossary-superragged.sty, glossary-tree.sty, glossaries-compatible-207.sty, glossaries-compatible-307.sty, glossaries-accsupp.sty, glossaries-babel.sty, glossaries-polyglossia.sty, minimalgls.tex, glossary-lipsum-examples.tex, example-glossaries-acronym-desc.tex, example-glossaries-acronym.tex, example-glossaries-acronyms-lang.tex, example-glossaries-brief.tex, example-glossaries-childnoname.tex, example-glossaries-cite.tex, example-glossaries-images.tex, example-glossaries-long.tex, example-glossaries-multipar.tex, example-glossaries-parent.tex, example-glossaries-symbols.tex, example-glossaries-url.tex, sample-chap-hyperfirst.tex, sample-crossref.tex, sample-custom-acronym.tex, sample-dot-abbr.tex, sample-dual.tex, sample-entrycount.tex, sample-entryfmt.tex, sample-FnDesc.tex, sample-font-abbr.tex, sample-ignored.tex, sample-index.tex, sample-inline.tex, sample-langdict.tex, sample-mfirstuc.tex, sample-newkeys.tex, sample-noidxapp-utf8.tex, sample-noidxapp.tex, sample-nomathhyper.tex, sample-numberlist.tex, sample-prefix.tex, sample-si.tex, sample-storage-abbr-desc.tex, sample-storage-abbr.tex, sample.tex, sample4col.tex, sampleaccsupp.tex, sampleAcr.tex, sampleAcrDesc.tex, sampleacronyms.tex, sampleCustomAcr.tex, sampleDB.tex, sampleDesc.tex, sampleEq.tex, sampleEqPg.tex, sampleFnAcrDesc.tex, sampleNtn.tex, samplePeople.tex, sampleSec.tex, sampleSort.tex, sampletree.tex, sampleutf8.tex, samplexdy.tex, samplexdy2.tex, mwe-acr-desc.tex, mwe-acr.tex, mwe-gls.tex, samplexdy-mc.xdy, samplexdy-mc207.xdy, database1.tex, database2.tex, glossaries.perl, mfirstuc.perl. + This work consists of the files glossaries.dtx and glossaries.ins and the derived files glossaries.sty, glossaries-prefix.sty, glossary-hypernav.sty, glossary-inline.sty, glossary-list.sty, glossary-long.sty, glossary-longragged.sty, glossary-mcols.sty, glossary-super.sty, glossary-superragged.sty, glossary-tree.sty, glossaries-compatible-207.sty, glossaries-compatible-307.sty, glossaries-accsupp.sty, glossaries-babel.sty, glossaries-polyglossia.sty, minimalgls.tex, glossary-lipsum-examples.tex, example-glossaries-acronym-desc.tex, example-glossaries-acronym.tex, example-glossaries-acronyms-lang.tex, example-glossaries-brief.tex, example-glossaries-childnoname.tex, example-glossaries-cite.tex, example-glossaries-images.tex, example-glossaries-long.tex, example-glossaries-multipar.tex, example-glossaries-parent.tex, example-glossaries-symbols.tex, example-glossaries-url.tex, sample-chap-hyperfirst.tex, sample-crossref.tex, sample-custom-acronym.tex, sample-dot-abbr.tex, sample-dual.tex, sample-entrycount.tex, sample-entryfmt.tex, sample-FnDesc.tex, sample-font-abbr.tex, sample-ignored.tex, sample-index.tex, sample-inline.tex, sample-langdict.tex, sample-newkeys.tex, sample-noidxapp-utf8.tex, sample-noidxapp.tex, sample-nomathhyper.tex, sample-numberlist.tex, sample-prefix.tex, sample-si.tex, sample-storage-abbr-desc.tex, sample-storage-abbr.tex, sample.tex, sample4col.tex, sampleaccsupp.tex, sampleAcr.tex, sampleAcrDesc.tex, sampleacronyms.tex, sampleCustomAcr.tex, sampleDB.tex, sampleDesc.tex, sampleEq.tex, sampleEqPg.tex, sampleFnAcrDesc.tex, sampleNtn.tex, samplePeople.tex, sampleSec.tex, sampleSort.tex, sampletree.tex, sampleutf8.tex, samplexdy.tex, samplexdy2.tex, mwe-acr-desc.tex, mwe-acr.tex, mwe-gls.tex, samplexdy-mc.xdy, samplexdy-mc207.xdy, database1.tex, database2.tex, glossaries.perl. \endpreamble @@ -28,10 +28,6 @@ \usepostamble\defaultpostamble\from{glossaries.dtx}{glossaries.sty,package}} \file{glossaries-prefix.sty}{\usepreamble\defaultpreamble \usepostamble\defaultpostamble\from{glossaries.dtx}{glossaries-prefix.sty,package}} -\file{mfirstuc.sty}{\usepreamble\defaultpreamble -\usepostamble\defaultpostamble\from{glossaries.dtx}{mfirstuc.sty,package}} -\file{mfirstuc-english.sty}{\usepreamble\defaultpreamble -\usepostamble\defaultpostamble\from{glossaries.dtx}{mfirstuc-english.sty,package}} \file{glossary-hypernav.sty}{\usepreamble\defaultpreamble \usepostamble\defaultpostamble\from{glossaries.dtx}{glossary-hypernav.sty,package}} \file{glossary-inline.sty}{\usepreamble\defaultpreamble @@ -87,7 +83,6 @@ \file{sample-index.tex}{\nopreamble\nopostamble\from{glossaries.dtx}{sample-index.tex}} \file{sample-inline.tex}{\nopreamble\nopostamble\from{glossaries.dtx}{sample-inline.tex}} \file{sample-langdict.tex}{\nopreamble\nopostamble\from{glossaries.dtx}{sample-langdict.tex}} -\file{sample-mfirstuc.tex}{\nopreamble\nopostamble\from{glossaries.dtx}{sample-mfirstuc.tex}} \file{sample-newkeys.tex}{\nopreamble\nopostamble\from{glossaries.dtx}{sample-newkeys.tex}} \file{sample-noidxapp-utf8.tex}{\nopreamble\nopostamble\from{glossaries.dtx}{sample-noidxapp-utf8.tex}} \file{sample-noidxapp.tex}{\nopreamble\nopostamble\from{glossaries.dtx}{sample-noidxapp.tex}} @@ -125,7 +120,6 @@ \file{database1.tex}{\nopreamble\nopostamble\from{glossaries.dtx}{database1.tex}} \file{database2.tex}{\nopreamble\nopostamble\from{glossaries.dtx}{database2.tex}} \file{glossaries.perl}{\nopreamble\nopostamble\from{glossaries.dtx}{glossaries.perl}} -\file{mfirstuc.perl}{\nopreamble\nopostamble\from{glossaries.dtx}{mfirstuc.perl}} } \endbatchfile |