diff options
Diffstat (limited to 'macros/latex/contrib/glossaries/samples/sample-custom-acronym.tex')
-rw-r--r-- | macros/latex/contrib/glossaries/samples/sample-custom-acronym.tex | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/macros/latex/contrib/glossaries/samples/sample-custom-acronym.tex b/macros/latex/contrib/glossaries/samples/sample-custom-acronym.tex index b148363a25..2104090518 100644 --- a/macros/latex/contrib/glossaries/samples/sample-custom-acronym.tex +++ b/macros/latex/contrib/glossaries/samples/sample-custom-acronym.tex @@ -24,8 +24,12 @@ % document the short form will be displayed in small caps, but in % the list of acronyms the short form is displayed in normal % capitals. To ensure this, the short form should be written in -% lower case when the acronym is defined, and \MakeTextUppercase is +% lower case when the acronym is defined, and \mfirstucMakeUppercase is % used when it's displayed in the list of acronyms. +% +% Note that if glossaries.sty v4.50+ detects mfirstuc.sty 2.08+ +% the textcase package will no longer be loaded so use +% \mfirstucMakeUppercase for uppercase. \newacronymstyle{custom-fn}% new style name {% Check for long form in case of a mixed glossary @@ -79,7 +83,7 @@ }% \renewcommand*{\ACRfullfmt}[3]{% \glslink[##1]{##2}{% - \MakeTextUppercase{% + \mfirstucMakeUppercase{% \glsentrylong{##2}##3\space (\acronymfont{\glsentryshort{##2}})% }% @@ -99,7 +103,7 @@ }% \renewcommand*{\ACRfullplfmt}[3]{% \glslink[##1]{##2}{% - \MakeTextUppercase{% + \mfirstucMakeUppercase{% \glsentrylongpl{##2}##3\space (\acronymfont{\glsentryshortpl{##2}})% }% @@ -113,7 +117,7 @@ % Set the name in the list of acronyms to the long form followed by % the short form (in upper case) in parentheses: \renewcommand*{\acronymentry}[1]{% - \Glsentrylong{##1}\space(\MakeTextUppercase{\glsentryshort{##1}})}% + \Glsentrylong{##1}\space(\mfirstucMakeUppercase{\glsentryshort{##1}})}% } % Now set the new acronym style (to override the default style) |