1

My question is the following. I want to use the { and } math braces of the newcomputermodern package while using the newtxmath package. Can this be done. If yes please help me with the commands.

I am using Texlive distribution with ubuntu.

\documentclass[12pt]{extarticle}
\usepackage{newtxtext,newtxmath}
\begin{document}
$$\left\{\frac{1}{x}\right\}$$
\end{document}

This command gives me the newtxmath braces, whereas i want the braces to be of the newcomputermodern font.

C.S.
  • 1,379
  • 2
    Please provide a minimal compilable document demonstrating what you want to do and indicating which engine you're using. Do you want to use these in maths or text? Sizes? fontspec? – cfr Sep 21 '23 at 03:00
  • @cfr : I have edited my question with whatever minimal knowledge i poses. Hope this clarifies. – C.S. Sep 21 '23 at 03:15
  • 3
    It's not newcomputermodern, but the cmbraces option of newtxmath gives the Computer Modern braces – mbert Sep 21 '23 at 03:47
  • @mbert : My question though is how to use braces of "newcomputermodern" into another package. It might not necessarily be newtxmath it can be any other package. – C.S. Sep 21 '23 at 03:57
  • Do you really want the newcomputermodern braces? I am sure they would be similar to the other computer modern clones, unless you look in really close. – Apoorv Potnis Sep 21 '23 at 05:05
  • 2
    newcomputermodern is only available as opentype so not for pdflatex, if you are using pdflatex do you want computer modern baces, that is the default if no package is used? – David Carlisle Sep 21 '23 at 05:26
  • @DavidCarlisle : Yes, i want newcomputermodern braces especially because it appears HEAVIER and suits newtx or any other heavy font very well. – C.S. Sep 21 '23 at 07:20
  • @ApoorvPotnis : Yes, Apoorv i want newcomputermodern braces because they appear heavier than the standard computer modern :) :) – C.S. Sep 21 '23 at 07:21
  • 1
    Perhaps it would be better then to switch to lualatex or xelatex. (unless you are forced with pdflatex) Then you can use Times clones such as TeX Gyre Termes and XITS. newtxmath takes its symbols from termes, if I recall correctly. You can easily define a new math font for newcomputermodern in with unicode-math (in lua/xelatex) and use its symbols. You can take a look at stix2 fonts as well for some amount of times compatibility. – Apoorv Potnis Sep 21 '23 at 08:01
  • if you are using pdftex you can't (without a lot of effort) use opentype math fonts. pdftex is an 8 bit system so all fonts have at most 256 characters, opentype fonts have a few thousand characters...... – David Carlisle Sep 21 '23 at 08:39
  • @ApoorvPotnis : Fine i am ok with xelatex – C.S. Sep 21 '23 at 14:34
  • You can use the range option of \setmathfont from unicode-math, but I don't think the latter is compatible with newtxmath – mbert Sep 21 '23 at 18:48
  • If you find a symbol you like in a traditional font (e.g. type 1 or truetype with LaTeX support), you could use https://tex.stackexchange.com/questions/14386/importing-a-single-symbol-from-a-different-font?noredirect=1&lq=1. – cfr Sep 22 '23 at 15:36
  • @cfr I am kind of confused. It would be better to have the complete commands. – C.S. Oct 07 '23 at 07:11
  • @C.S. You'd have to use something from a traditional font for the solution I linked to work, so there aren't any commands to use with New Computer Modern, since it's not available in that format (as far as I know). – cfr Oct 07 '23 at 14:11

0 Answers0