0

How do I incorporate the curly { and } cmbraces version of newpxmath package into newtxmath? Both the packages do support the computer modern braces version, but newpxmath cmbraces look far more better to the eye than the newtxmath version.

I went into newpxmath.sty and tried using the command

\DeclareMathDelimiter{\lbrace}{\mathopen}{symbols}{102}{largesymbols}{8}
\DeclareMathDelimiter{\rbrace}{\mathclose}{symbols}{103}{largesymbols}{9}

but it doesn't seem to work.

3
  • @egreg: You might want to help me with this question :) as you have always done.
    – C.S.
    Feb 21, 2017 at 15:29
  • As far as I can see, the cmbraces option does nothing, with the current version of both newtxmath and newpxmath. I see no big difference between braces with newpxmath and newtxmath.
    – egreg
    Feb 23, 2017 at 10:53
  • @egreg I have the older version of the newtxmath package. The older version does have a difference though
    – C.S.
    Feb 23, 2017 at 15:48

1 Answer 1

2

You can use the standard cmex braces:

\documentclass{article}
\usepackage{newtxtext,newtxmath}

\DeclareFontShape{OMX}{cmex}{m}{n}{
  <-7.5> cmex7
  <7.5-8.5> cmex8
  <8.5-9.5> cmex9
  <9.5-> cmex10
}{}
\DeclareSymbolFont{cmlargesymbols}{OMX}{cmex}{m}{n}

\DeclareMathDelimiter{\rbrace}{\mathclose}{symbols}{"67}{cmlargesymbols}{"09}
\DeclareMathDelimiter{\lbrace}{\mathopen}{symbols}{"66}{cmlargesymbols}{"08}

\begin{document}

\[
\{x\}\ne\left\{\frac{a}{b}\right\}
\]

\end{document}

enter image description here

Compare with the standard newtxmath braces, that are slimmer.

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .