# Combining small caps and sans serif?

Is it possible to combine small caps (\textsc) and sans serif (\textsf)? I am using the default LaTeX fonts.

• The Computer Sans typeface has no small caps font. – egreg Oct 4 '19 at 16:02
• @egreg Is there another (similar) font which does have small caps? – taninamdar Oct 4 '19 at 19:35

You can nest \textsf and \textsc in either order, but unless there is a font of that form, LaTeX will issue a warning and substitute a different style.

One that does work with no warnings is the newtxtext font set.

\documentclass{article}
\usepackage{newtxtext}
\begin{document}

sc-sf \textsc{\textsf{One two Three}}

sf-sc \textsf{\textsc{One two Three}}

\end{document}
• If you’re using fontspec, many sans-serif fonts have small caps, including TeX Gyre Heros and Adventor. You can also give the \setsansfont command the SmallCapsFont = option. – Davislor Oct 4 '19 at 19:58
• @Davislor well that's true but I guess the OP isn't, but it wouldn't hurt if you posted a fontspec based answer as a comparison. – David Carlisle Oct 4 '19 at 20:41