[Tex/LaTex] Is it possible make the section names globally title case

capitalizationsectioning

I don't want to change them one by one. I am wondering how to make the section names globally title case? That is "This is a Title Case Section Name".

It would be nice if you can also give answers applied to such as concerning subsection as well. Or using Small Capitals etc… Thanks

I am using article document class, that is used for journal publications.


Edit:

As shown in this website, the Title Case I want is:

TitleCase exceptions

Articles, conjunctions, and prepositions less than six letters long are changed to lower case unless they are at the beginning of a sentence. These include:

(01)a (02)abaft (03)about (04)above (05)afore (06)after (07)along (08)amid (09)among (10)an (11)apud (12)as (13)aside (14)at (15)atop (16)below (17)but (18)by (19)circa (20)down (21)for (22)from (23)given (24)in (25)into (26)lest (27)like (28)mid (29)midst (30)minus (31)near (32)next (33)of (34)off (35)on (36)onto (37)out (38)over (39)pace (40)past (41)per (42)plus (43)pro (44)qua (45)round (46)sans (47)save (48)since (49)than (50)thru (51)till (52)times (53)to (54)under (55)until (56)unto (57)up (58)upon (59)via (60)vice (61)with (62)worth (63)the (64)and (65)nor (66)or (67)yet (68)so

Best Answer

Here is a simple way with sectsty:

\documentclass{article}
\usepackage{sectsty}
\usepackage{titlecaps}
\allsectionsfont{\titlecap}
\begin{document}

\section{This should be title case}

\subsection{This should also be title case}

\end{document}

enter image description here

This will make all sectional headings in title caps. If you want this for only section fonts, use

\sectionfont{\titlecap}