The \textsl and \textit appears to be same when I load the newtxmath,newtxtext package. Can anyone say why the error? My commands:


\DeclareMathDelimiter{(}{\mathopen} {operators}{"28}{CMlargesymbols}{"00}

\newenvironment{que}[1][Problem.]{\begin{leftbar}\begin{trivlist}\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}\end{leftbar}}


Are there infinitely many pairs of positive integers $(m,n)$ such that $m\mid (n^{2}+1)$ and $n\mid (m^{2}+1)$?
\hfill \textsl{British Math Olympiad, Round 2, 2013}


and the output looks likeenter image description here

This is definitely not slanted text. Kindly help.

Screenshot when this worked fine

enter image description here

  • A tip: If you indent lines by 4 spaces, they'll be marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it). Similarly, for inline code, you can surround the text with `.
    – JP-Ellis
    Apr 29, 2016 at 4:07
  • @JP-Ellis Thanks. I didn't know. Will keep this in mind :)
    – C.S.
    Apr 29, 2016 at 4:14
  • The newtx packages don't seem to provide a slanted-roman type face. As a fallback, \textsl and \slshape are interpreted as \textit and \itshape, respectively.
    – Mico
    Apr 29, 2016 at 5:32
  • @Mico But it was perfectly working when I used couple of weeks ago. I will search and show you a screen shot soon
    – C.S.
    Apr 29, 2016 at 5:35
  • @Mico Added is the screenshot when \textsl was working well :(
    – C.S.
    Apr 29, 2016 at 5:37

1 Answer 1


If I compile the example with TeX Live 2013, I get slanted type; with TeX Live 2014 (freezed after 2015-02-01) there's no slanted type any more.

The reason is that the NewTX distribution underwent a major change on February 1, 2015.

Here's the relevant part of the README file.

Changes in version 1.4
1. All text fonts are now based on TeXGyre Termes, and some modifications thereof. In T1 encoding, no composite glyphs are needed.

The TeX Gyre Termes fonts have no slanted shape either, as this excerpt of t1qtm.fd shows

\DeclareFontShape{T1}{qtm}{b}{sl}{<->sub * qtm/b/it}{}
\DeclareFontShape{T1}{qtm}{m}{sl}{<->sub * qtm/m/it}{}
\DeclareFontShape{T1}{qtm}{b}{scsl}{<->sub * qtm/b/scit}{}
\DeclareFontShape{T1}{qtm}{m}{scsl}{<->sub * qtm/m/scit}{}

If you want to use the fonts provided by mathptmx for slanted, you can, although I don't recommend it, because the glyph coverage may be different.


% load the main fd file
% fix it using the legacy ptm family
\DeclareFontShape{T1}{ntxtlf}{m}{sl}{<-> \ntx@scaled ptmro8t}{}
\DeclareFontShape{T1}{ntxtlf}{b}{sl}{<-> \ntx@scaled ptmbo8t}{}
\DeclareFontShape{T1}{ntxtlf}{bx}{sl}{<-> ssub * ntxtlf/b/sl}{}

abc \textsl{abc}

\bfseries abc \textsl{abc}

enter image description here

  • @S.C. Ask Michael Sharpe; typically, slanted variants are realized with a SlantFont instruction at the PostScript level, so it's just a matter to create suitable tfm and vf files (which can be automated).
    – egreg
    Apr 29, 2016 at 10:07
  • @S.C. About reverting: there are historical archives, but it would be a hard job nonetheless. About mathptmx: not so difficult, but it hasn't the same glyph support..
    – egreg
    May 23, 2016 at 7:35
  • 1
    @S.C. Added. I decline any responsibility. ;-)
    – egreg
    May 23, 2016 at 9:32
  • I decided to have some fun with this input file. How did you know which fd file you had to input? For example take the "Alegreya" font. It has so many files. If I want to make my italic as Alegreya then which fd file shud i input. For example there is this : tug.ctan.org/fonts/alegreya/latex/OT1Alegreya-LF.fd which i added and gave the command \DeclareFontShape but it just doesn't work :(
    – C.S.
    May 23, 2016 at 15:38
  • @S.C. You're walking in a mine field. ;-)
    – egreg
    May 23, 2016 at 15:50

You must log in to answer this question.

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