summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/mfirstuc/sample-mfirstuc.tex
diff options
context:
space:
mode:
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}