0

MWE:

\documentclass{article}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\renewcommand{\familydefault}{\sfdefault}
\usepackage[default]{lato}
\usepackage[sc]{titlesec}

\begin{document}

\section{Introduction}

\end{document}

The word 'Introduction' is not in small-caps. How can I fix this?
One way I can think of is to use a different font-family for the section titles, but I don't know how to configure that with titlesec.

5
  • recent versions of the lato font do not provide small caps support, even 'fake' ones mirrors.ibiblio.org/CTAN/fonts/lato/doc/lato.pdf
    – Yorgos
    Feb 11, 2022 at 10:10
  • @Yorgos "Anyway LATEX should automatically substitute missing smallcap shapes by normal ones." this doesn't happen though Feb 11, 2022 at 10:54
  • 1
    yes that happens. Instead of small caps latex uses the regular shape of lato. Feb 11, 2022 at 11:10
  • @UlrikeFischer oh alright, I misinterpreted it. Is there a way to use a different font only for the title? Feb 11, 2022 at 11:21
  • 1
    sure, you can use any font, check the titlesec documentation. Feb 11, 2022 at 11:28

1 Answer 1

-1

A possible solution that works on pdfLatex:
Add \usepackage{newtxtext} before your main font

3
  • newtxtext is a serif font, whereas lato is a sans-serfif one... thus, i don;t see your answer very useful. The OP wants a different font for his/her section title. Not the entire document
    – Yorgos
    Feb 12, 2022 at 11:52
  • @Yorgos I am the OP Feb 12, 2022 at 14:35
  • Yes I saw it, but your answer does not solve the problem you actually asking (how to implement small caps only for the section title using the lato font)
    – Yorgos
    Feb 13, 2022 at 18:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .