diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/glossaries/base/mfirstuc.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/glossaries/base/mfirstuc.sty | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/glossaries/base/mfirstuc.sty b/Master/texmf-dist/tex/latex/glossaries/base/mfirstuc.sty index fee68259460..10832f723f1 100644 --- a/Master/texmf-dist/tex/latex/glossaries/base/mfirstuc.sty +++ b/Master/texmf-dist/tex/latex/glossaries/base/mfirstuc.sty @@ -39,7 +39,7 @@ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{mfirstuc}[2008/05/13 v1.01 (NLCT)] +\ProvidesPackage{mfirstuc}[2008/06/18 v1.02 (NLCT)] \newif\if@glscs \def\makefirstuc#1{% \def\gls@argi{#1}% @@ -51,15 +51,21 @@ \if@glscs \@gls@getbody #1{}\@nil \ifx\@gls@rest\@empty - \MakeUppercase #1% + \@gls@makefirstuc{#1}% \else - \@gls@body{\expandafter\@gls@makefirstuc\@gls@rest}% + \expandafter\@gls@split\@gls@rest\@nil + \ifx\@gls@first\@empty + \@gls@makefirstuc{#1}% + \else + \@gls@body{\expandafter\@gls@makefirstuc\@gls@first}\@gls@rest% + \fi \fi \else - \MakeUppercase #1% + \@gls@makefirstuc{#1}% \fi \fi } +\def\@gls@split#1#2\@nil{\def\@gls@first{#1}\def\@gls@rest{#2}} \def\@gls@checkcs#1 #2#3\relax{% \def\@gls@argi{#1}\def\@gls@argii{#2}% \ifx\@gls@argi\@gls@argii |