blob: 5fe9d92b48cd44786f222f8a9d08657c588a9177 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
% This file is public domain
% If you want to use arara, you need the following directive:
% arara: pdflatex: { synctex: on }
\documentclass{article}
\usepackage{mfirstuc-english}
\begin{document}
\makefirstuc{abc}.
\makefirstuc{{\em abc}}.
\makefirstuc{\emph{abc}}.
\makefirstuc{\ae bc}.
\makefirstuc{{\ae}bc}.
\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.}
\MFUclear
\capitalisewords{the wind in the willows}
\capitalisewords{a book of rhyme.}
\capitalisewords{a book\space of rhyme.}
\newcommand{\mytitle}{a book\space of rhyme.}
\capitalisewords{\mytitle}
\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}
|