CTAN Comprehensive TeX Archive Network

Directory macros/latex/contrib/mfirstuc

README
LaTeX Package : mfirstuc v2.08

Last Modified : 2022-10-14

Author        : Nicola Talbot

This package provides \makefirstuc{<stuff>} which makes the first object of
<stuff> upper case unless <stuff> starts with a control
sequence followed by a non-empty group, in which case the first
object in the group is converted to upper case. Examples:

     \makefirstuc{abc}        -> Abc
     \makefirstuc{\emph{abc}} -> \emph{Abc}
     \makefirstuc{{\'a}bc}    -> \'Abc
     \makefirstuc{\ae bc}     -> \AE bc
     \makefirstuc{{\ae}bc}    -> \AE bc
     \makefirstuc{\ae{}bc}    -> \AE{}bc

The package also provides \capitalisewords{<phrase>} which applies
\makefirstuc to each word in the <phrase>, where the words are
separated by regular spaces. (Exceptions can be made for words that
shouldn't be converted.)

The mfirstuc package was originally bundled with the glossaries
package.

LaTeX2HTML

This package comes with a LaTeX2HTML style file mfirstuc.l2h which
should be placed in the relevant LaTeX2HTML styles directory and may
need to have the file extension changed, but note that some commands
may not be implemented or may be implemented in a different way.
There's no guarantee that it will continue to work with new
versions of LaTeX2HTML.

LICENCE

This material is subject to the LaTeX Project Public License. 
See http://www.ctan.org/license/lppl1.3 
for the details of that license.

Author's home page: http://www.dickimaw-books.com/

Download the contents of this package in one zip archive (782.0k).

mfirstuc – Uppercase the first letter of a word

The package provides commands \makefirstuc that uppercases the first letter in its argument (with a check for a semantic markup command at the start of the argument), and \xmakefirstuc which expands the argument before uppercasing. It also provides \capitalisewords{phrase} which applies \makefirstuc to each word in the phrase , where the words are separated by regular spaces. (Exceptions can be made for words that shouldn't be converted.)

Packagemfirstuc
Version2.08 2022-10-14
LicensesThe Project Public License 1.3
Copyright2021–2022 Nicola Talbot
MaintainerNicola Talbot
TDS archivemfirstuc.tds.zip
Contained inTeX Live as mfirstuc
MiKTeX as mfirstuc
TopicsMacro support
Text manip
...
Guest Book Sitemap Contact Contact Author