3

I am using newtxtext package and I notice that the slanted shape is the same as the italic shape, is there a way to define the slanted shape different than the italic shape?

  • 2
    No, as far as I can see, newTX provides no slanted shape. – egreg May 28 '15 at 22:51
  • 1
    With fontspec (and (Xe|Lua)LaTeX) you could use FakeItalic to get a poor's man slanted. – Manuel May 28 '15 at 23:09
3

The newtxtext package doesn't provide slanted type.

It wouldn't be too difficult to produce a full set, but requires patience for creating an extensive set of TFM files. You might file a feature request to the package maintainer.

You can get a “poor person's replacement” by using the TeX Gyre fonts:

\documentclass{article}
\usepackage{newtxtext}
\AtBeginDocument{%
  \DeclareFontShape{\encodingdefault}{\rmdefault}{m}{sl}{<-> ptmro7t}{}%
  \DeclareFontShape{\encodingdefault}{\rmdefault}{b}{sl}{<-> ptmbo7t}{}%
  \DeclareFontShape{\encodingdefault}{\rmdefault}{bx}{sl}{<->ssub * ptm/b/sl}{}%
}

\begin{document}

This is \textit{italic} and this is \textsl{slanted}.

\end{document}

enter image description here

  • I needed to use ptmro8t,ptmbo8t, and \usepackage[T1]{fontenc} to make it work with umlauts. – tim Feb 15 '17 at 21:33
  • @tim Yes, those are the internal names in that case. – egreg Feb 15 '17 at 21:51

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.