[Tex/LaTex] Small caps in title but not for words like “of”

small-capstitles

I want the command \textsc but not for all words (words like "of" or "to" should be set the normal way without small caps).

\documentclass{article}

\begin{document}
    \textsc{Contribution submission to the conference}
\end{document}

How can I use the command \textsc and automate this small caps thing? How does it work if I use \title and \@title to place/create my title?

Best Answer

It is still not quite clear what the OP seeks, but here I show what the titlecaps package can accomplish, which is:

  1. capitalizing the first letter of each word

  2. excluding a specified list of words from capitalization, using \Addlcwords.

Here is an example, shown in small-caps and upright shapes.

\documentclass{article}
\usepackage{titlecaps}
\begin{document}
\Addlcwords{to the}
\titlecap{\textsc{Contribution submission to the conference}}

\titlecap{Contribution submission to the conference}
\end{document}

enter image description here

FOLLOW UP

In the end, this seems to be what the OP wanted. I don't know of a way to automate it, but it is not particularly difficult to do manually.

\documentclass{article}
\begin{document}
\textsc{CONTRIBUTION SUBMISSION to the CONFERENCE}
\end{document}

enter image description here