summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-12-17 23:50:28 +0000
committerKarl Berry <karl@freefriends.org>2015-12-17 23:50:28 +0000
commit83355a66b63667137766d04593a7f1eab0db77c6 (patch)
tree9c6c10e0f59ebfa9a4fde34f00a265b98be7aba4 /Master/texmf-dist/tex/latex
parentd892485871419d6c741ea82a12b3bad14294ec8b (diff)
mfirstuc (17dec15)
git-svn-id: svn://tug.org/texlive/trunk@39132 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/mfirstuc/mfirstuc.sty20
1 files changed, 12 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/mfirstuc/mfirstuc.sty b/Master/texmf-dist/tex/latex/mfirstuc/mfirstuc.sty
index 06fae7ea38d..472c831cc3d 100644
--- a/Master/texmf-dist/tex/latex/mfirstuc/mfirstuc.sty
+++ b/Master/texmf-dist/tex/latex/mfirstuc/mfirstuc.sty
@@ -39,7 +39,7 @@
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{mfirstuc}[2015/12/08 v2.01 (NLCT)]
+\ProvidesPackage{mfirstuc}[2015/12/17 v2.02 (NLCT)]
\RequirePackage{etoolbox}
\newif\if@glscs
\newtoks\@glsmfirst
@@ -135,13 +135,17 @@
}
\def\mfu@noop#1\mfu@endcap{}
\newcommand*\mfu@checkword[1]{%
- \ifinlist{#1}{\@mfu@nocaplist}%
- {%
- \let\@mfu@domakefirstuc\@firstofone
- }%
- {%
- \let\@mfu@domakefirstuc\makefirstuc
- }%
+ \def\mfu@checkword@arg{#1}%
+ \let\@mfu@domakefirstuc\makefirstuc
+ \forlistloop\mfu@checkword@do\@mfu@nocaplist
+}
+\newcommand*{\mfu@checkword@do}[1]{%
+ \ifdefstring{\mfu@checkword@arg}{#1}%
+ {%
+ \let\@mfu@domakefirstuc\@firstofone
+ \listbreak
+ }%
+ {}%
}
\newcommand*{\@mfu@nocaplist}{}
\newcommand*{\MFUnocap}[1]{\listadd{\@mfu@nocaplist}{#1}}