I would like to change the color of italic throughout a document. This problem was solved here
Change colour of italics font for the whole document
It appears the solution for pdflatex does not work anymore in TeX Live 2020. The code below does not work on my system. Does anyone know how to fix this
\documentclass{article}
\usepackage{xcolor}
\makeatletter
\renewcommand{\itshape}{%
\not@math@alphabet\itshape\mathit
\fontshape\itdefault\selectfont
\color{blue}%
}
\makeatother
\begin{document}
Some text in \textit{blue}
\end{document}
\itshapesuch as references generated with bibtex. – 220284 Apr 12 '20 at 16:47\itshape. See again. – Apr 12 '20 at 17:02\textit, but does not appear to work for text in italic that is generated by some other means, such as a reference generated with bibtex or the text in a mathematical theorem written with the amsthm package. – 220284 Apr 12 '20 at 18:04\usepackage{xcolor} \let\oldtextit\textit \renewcommand\textit[1]{\oldtextit{\color{blue}#1}} \let\olditshape\itshape \def\itshape{\color{blue}\olditshape}
\begin{document} Some text in \textit{blue} \begin{thm} Some mathematical theorem ... \end{thm} \end{document}`
– 220284 Apr 12 '20 at 18:09