I use the \newtxmath as the math font in my document and \newtxtext for the text. This seems to work fine, but I need to replace some math symbols which seem to me not as nice as their default Latin Modern Math counterpart. The symbols I need to replace, e.g., are:

  • \int and \sum: they look so high and big,
  • \infty: looks too small, and
  • \partial and \pi: looks strange too.

I have searched for similar or near question like this one (Replace several letters in math font), but I haven't been very successful in reusing the answer therein in my case.

My MWE is:


abcdefghijklmnopqrstuvwxyz \\
$abcdefghijklmnopqrstuvwxyz$ \\
$a\alpha\beta\gamma\delta\epsilon\varepsilon\zeta\eta\theta\vartheta\iota\kappa\varkappa\lambda\mu\nu\xi o\pi\varpi\rho\varrho\sigma\varsigma\tau\upsilon\phi\varphi\chi\psi\omega$ \\
$\Gamma\Delta\Theta\Lambda\Xi\Pi\Sigma\Upsilon\Phi\Psi\Omega$ \\
  \frac{1}{2\pi i}\int_\gamma f(x) = \sum_{k=1}^m n(\gamma;a_k) \cdot \text{Res}(f;a_k).
G(\omega)=\int_{-\infty}^{\infty}g(t)e^{-j\omega t} dt
And this is nonmath text.


I appreciate your help.


1 Answer 1


The case \int is trivial, because there is an option cmintegrals for package newtxmath. In the other cases, the symbol fonts are overwritten by newtxmath. Therefore the example again defines them with a different name (CM appended):



%% \sum

%% \infty

%% \partial, \pi
\DeclareSymbolFont{lettersCM}{OML}{cmm} {m}{it}
\SetSymbolFont{lettersCM}{bold}{OML}{cmm} {b}{it}


  \text{CM} &= \text{TX} \\
  \int \\
  \sum &= \txsum \\
  \infty &= \txinfty \\
  \partial &= \txpartial \\
  \pi &= \txpi



  • Works very fine @Heiko Oberdiek, but please I need more clarification about the commands \DeclareSymbolFont{symbolsCM}{OMS}{cmsy}{m}{n} \SetSymbolFont{symbolsCM}{bold}{OMS}{cmsy}{b}{n}. How do I know the parameters and names associated with a specific symbol. Forgive my shallow knowledge in this regard.
    – AboAmmar
    Sep 12, 2014 at 21:10
  • 1
    @AboAmmar A starting point is LaTeX's font guide. In this case I have copied the lines from fontmath.ltx (part of the LaTeX kernel) with the a small change of the name (e.g. symbolsCM instead of symbols). Sep 12, 2014 at 21:42
  • That helps so much. Thanks @Heiko Oberdiek. Although I read these information before, application is most important.
    – AboAmmar
    Sep 12, 2014 at 22:25

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.