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 '16 at 4:07
  • @JP-Ellis Thanks. I didn't know. Will keep this in mind :) – crskhr Apr 29 '16 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 '16 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 – crskhr Apr 29 '16 at 5:35
  • @Mico Added is the screenshot when \textsl was working well :( – crskhr Apr 29 '16 at 5:37

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 '16 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 '16 at 7:35
  • 1
    @S.C. Added. I decline any responsibility. ;-) – egreg May 23 '16 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 :( – crskhr May 23 '16 at 15:38
  • @S.C. You're walking in a mine field. ;-) – egreg May 23 '16 at 15:50

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.