When I use the mathpazo
package (Palatino font), the font shapes generated by using the \textit
and \textsl
commands (or alternatively the \itshape
and \slshape
commands) look different as intended: The first one produces italic text, the second one produces slanted text.
However, when I use the newpxtext
or the tgpagella
package (also Palatino font), both \textit
and \textsl
produce italic text only. You may try this out with the following MWE:
\documentclass{article}
\usepackage{mathpazo}
%\usepackage{newpxtext}
%\usepackage{tgpagella}
\begin{document}
\texttt{itshape}: \textit{The quick brown fox jumps over the sleazy dog.}
\texttt{slshape}: \textsl{The quick brown fox jumps over the sleazy dog.}
\end{document}
By the way: I use MikTeX and pdflatex.
When running this example with tgpagella
, a warning shows up, saying that sl
is not available and it
is used instead:
LaTeX Font Warning: Font shape 'OT1/qpl/m/sl' in size <10> not available (Font) Font shape 'OT1/qpl/m/it' tried instead on input line 10. (taken from the .log file)
However, no warning appears when I use newpxtext
. Apparently, sl
is just defined to be the same font shape as it
for this package.
My question: Is there a way to use the newpxtext
package and be able to use actually slanted text? I am particularly interested in using newpxtext
instead of the other two packages since I want to use it jointly with the newpxmath
package as recommended in many forums.