I was having a similar (though not same) problem with mathpazo
and \textit
, so I'd just like to jot down my debug notes:
My problem was that what I expected to be italic, turned out to be bold - and sans serif (which I definitely didn't want)!
- First I tried inspecting
\textit
using \show
and \pshow
- went a bit tedious, didn't show much
- Then I realized that my problem occurs in
\paragraph*{\textit{Text ... }}
- hence it could be the \paragraph*
that is the problem
- I try to inspect it with
\tracingall
- but since "there’s no “off” command for \tracingall", I use as recommended \usepackage{
trace
}
and place \traceon
/\traceoff
around the offending line
- Search for
sf
(for the sans serif) in the resulting .log, find this:
\sectfont ->\normalcolor \sffamily \bfseries
So, I starting tracing back what could have set the \sectfont
to \sffamily
, but since there's plenty of packages to go through, instead of finding which is the offending one, I simply "overloaded" (redefined) the \sectfont
command before the offending line comes in:
....
% redefine sectfont to avoid setting sans-serif \sffamily
\def\sectfont{\normalcolor\bfseries}
\paragraph*{$\bullet$ "\textit{Text ...
....
... and this got all working (at least for my problem).
Hope this helps someone,
Cheers!