From https://tex.stackexchange.com/a/659813/127048 ; I have been recommended to use newtx
If you use
IEEEtran, I recommend usingnewtxin order to get Times font also in math
When I add \usepackage{newtx} into following template (2n line) the font format changes for the text inside \section{*} and \subsection{*} also for \lstinputlisting[] , it becomes much bolder. I am not sure those changes would be accepted by the corresponding journal.
Is it possible to prevent newtx to change font format for the \section{} and \subsection{}?
Template Link: https://ieeecs-media.computer.org/assets/tar/ieeetran-final_sub.tar ; comments removed version:
\documentclass[10pt,journal,compsoc]{IEEEtran}
\begin{document}
\title{Bare Demo of IEEEtran.cls for\\ IEEE Computer Society Journals}
\author{alper}
\markboth{Journal of \LaTeX\ Class Files,~Vol.~14, No.~8, August~2015}%
{Shell \MakeLowercase{\textit{et al.}}: Bare Demo of IEEEtran.cls for Computer Society Journals}
\IEEEtitleabstractindextext{%
\begin{abstract}
The abstract goes here.
\end{abstract}
\begin{IEEEkeywords}
Computer Society, IEEE, IEEEtran, journal, \LaTeX, paper, template.
\end{IEEEkeywords}}
\maketitle
\IEEEdisplaynontitleabstractindextext
\IEEEpeerreviewmaketitle
\IEEEraisesectionheading{\section{Introduction}\label{sec:introduction}}
\IEEEPARstart{T}{his} demo file is intended to serve as a ``starter file''
for IEEE Computer Society journal papers produced under \LaTeX\ using
IEEEtran.cls version 1.8b and later.
I wish you the best of success.
\hfill mds
\hfill August 26, 2015
\subsection{Subsection Heading Here}
Subsection text here.
\subsubsection{Subsubsection Heading Here}
Subsubsection text here.
\section{Conclusion}
The conclusion goes here.
\appendices
\section{Proof of the First Zonklar Equation}
Appendix one text goes here.
\section{}
Appendix two text goes here.
\ifCLASSOPTIONcompsoc
\section*{Acknowledgments}
\else
\section*{Acknowledgment}
\fi
The authors would like to thank...
\ifCLASSOPTIONcaptionsoff
\newpage
\fi
\begin{thebibliography}{1}
\bibitem{IEEEhowto:kopka}
H.~Kopka and P.~W. Daly, \emph{A Guide to \LaTeX}, 3rd~ed.\hskip 1em plus
0.5em minus 0.4em\relax Harlow, England: Addison-Wesley, 1999.
\end{thebibliography}
\end{document}



\usepackage{newtxtext,ewtxmath}changes the font for the entire document from computer modern to a Times clone, not just headings. It does not change the heading code at all. Times is darker than Computer Modern, if you don't want that don't use the font – David Carlisle Sep 29 '22 at 11:21nshould benewtxmath– David Carlisle Sep 29 '22 at 11:44\usepackage{newtxmath}? to keep the changes only for the math-mode text? – alper Sep 29 '22 at 11:58newtxyou get a better output. – egreg Sep 29 '22 at 12:58