Text FormattingUppercase Formatting

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
jaykemper
Posts: 22
Joined: Wed Apr 15, 2009 12:11 am

Uppercase Formatting

Post by jaykemper »

I realize that \uppercase and \MakeUppercase exist, but those are both command that take arguments. I'm looking for something that works like \bfseries as opposed to \textbf

Code: Select all

{\MakeUppercase This should all be capitalized}
instead of

Code: Select all

\MakeUppercase{This should all be capitalized}
I've come across cases (for example tocloft} where I'd like to capitalize all the entries of a certain level, \cftpartfont{\MakeUppercase}. Where \cftpartfont (line 216 of tocloft.sty} is used:

Code: Select all

...
{\cftpartfont \cftpartpresnum #1}
...

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: Uppercase Formatting

Post by josephwright »

TeX's case-changing function works in a very different way from font changing. It's therefore not really possible to do a 'grouped' case change in the way you want to.
Joseph Wright
Post Reply