summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/mfirstuc/sample-mfirstuc.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-12-08 22:08:55 +0000
committerKarl Berry <karl@freefriends.org>2015-12-08 22:08:55 +0000
commit32dfcb4c5c886d97931290e76ed02234e8dbe485 (patch)
treee39cb3e2be2aa0f0c70f2a2023f2891f932075fe /Master/texmf-dist/doc/latex/mfirstuc/sample-mfirstuc.tex
parent5db0950ba6b90723a352862042de9231540decfc (diff)
mfirstuc (8dec15)
git-svn-id: svn://tug.org/texlive/trunk@39055 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/mfirstuc/sample-mfirstuc.tex')
-rw-r--r--Master/texmf-dist/doc/latex/mfirstuc/sample-mfirstuc.tex15
1 files changed, 15 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/mfirstuc/sample-mfirstuc.tex b/Master/texmf-dist/doc/latex/mfirstuc/sample-mfirstuc.tex
index 0cdae525b58..5fe9d92b48c 100644
--- a/Master/texmf-dist/doc/latex/mfirstuc/sample-mfirstuc.tex
+++ b/Master/texmf-dist/doc/latex/mfirstuc/sample-mfirstuc.tex
@@ -20,6 +20,12 @@
\newcommand{\abc}{abc}%
\xmakefirstuc{\abc}.
+\newcommand*{\mytext}{\protect\textbf{some text}}
+Protected formatting: \xmakefirstuc{\mytext}.
+
+\renewcommand*{\mytext}{\ae\oe{some text}}
+Sequential commands: \xmakefirstuc{\mytext}.
+
\capitalisewords{the wind in the willows}
\capitalisewords{a book of rhyme.}
@@ -37,4 +43,13 @@
\xcapitalisewords{\mytitle}
+Formatting for the entire phrase must go outside
+\verb|\capitalisewords| (unlike \verb|\makefirstuc|). Compare:
+
+\capitalisewords{\textbf{a book of rhyme.}}
+
+with:
+
+\textbf{\capitalisewords{a book of rhyme.}}
+
\end{document}