1

How do I get slanted numbers in the running page header when using Times? For CM they are slanted. TIA.

\documentclass{book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{newtxtext,newtxmath}
\begin{document}
\section{Introduction}
Some text
\end{document}
1
2

Is changing the font to another Times variant an option? If so, I have a couple of alternatives for you.

Caveat

Thanks to campa's excellent comments, I have learned that tgtermes uses italics for the header, not a slanted variant (since there apparently is none).

If that doesn't bother you, have a look at the following example:

\documentclass{book}
\usepackage[T1]{fontenc}

% Loading tgtermes and newtxmath (in that order!) 
% works by inserting italics instead of slanted text
% \usepackage{tgtermes}
% \usepackage{newtxmath}

% txfonts also works
\usepackage{txfonts}

\begin{document}
\section{Introduction}
Some text

\[E=mc^2\]

\end{document}

txfonts and tgtermes

5
  • Sorry, I have in part misunderstood the answer: you meant loading tgtermes and newtxmath together, right? But the problem is the same: tgtermes has no slanted font, so it is replacing it with the italic one. Look at the log, you'll find the corresponding warning. So yes, it seems to work, but one might question whether this is good. I'd rather patch the book class to use italic text in headings. But that might be a matter of opinion. – campa Aug 11 '20 at 12:53
  • @campa, yes, you are right, of course! So loading txfonts would be the only preferred package? – phil-elkabat Aug 11 '20 at 12:54
  • Also, if you want to use tgterms and newtxmath you should load tgtermes first. Look at the numbers in math mode otherwise. – campa Aug 11 '20 at 12:54
  • txfonts is a possibility, or the old mathptmx. Or you can cheat: tex.stackexchange.com/a/248981/82917 – campa Aug 11 '20 at 12:55
  • @campa, excellent, thank you! I will edit my answer to make it transparent that some font choices will replace the slanted font with true italics. – phil-elkabat Aug 11 '20 at 12:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.