From 83355a66b63667137766d04593a7f1eab0db77c6 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 17 Dec 2015 23:50:28 +0000 Subject: mfirstuc (17dec15) git-svn-id: svn://tug.org/texlive/trunk@39132 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/mfirstuc/mfirstuc.sty | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'Master/texmf-dist/tex/latex/mfirstuc') 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}} -- cgit v1.2.3