Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Computer Modern text in \mathrm #112

Open
datMaffin opened this issue Nov 7, 2019 · 3 comments
Open

Computer Modern text in \mathrm #112

datMaffin opened this issue Nov 7, 2019 · 3 comments

Comments

@datMaffin
Copy link
Contributor

Screenshot:

Screenshot 2019-11-07 at 15 24 21

I resolved the problem by using the second solution of the Stack Overflow answer https://tex.stackexchange.com/a/394137:

  1. Add [NFSSFamily=ntxtlf] to \setmainfont.
  2. Remove the old solution (as described in the same Stack Overflow question https://tex.stackexchange.com/a/394139/9075):
  3. Move \RequirePackage{newtxmath} below Fontspec commands.

Except for the now correct font in \mathrm I was only able to spot a difference in the rendering of the equals sign. Everything else looks exactly the same!

Since I am not sure about the implications of this change, I am not creating a pull request.


Latex Setup: MacTex / TexLive 2019 with the latest updates

@datMaffin datMaffin changed the title Computer Modern text in \mathrm Computer Modern text in $\mathrm$ Nov 7, 2019
@datMaffin datMaffin changed the title Computer Modern text in $\mathrm$ Computer Modern text in \mathrm Nov 7, 2019
@koppor
Copy link
Member

koppor commented Nov 7, 2019

Just go ahead with the PR. It is more easy to play around if a solution is proposed. I would just quickly check it (as I am currently applying fixes and not fully developing the template).

Side note: I am working on https://github.com/latextemplates/generator-latex-template to enable better tests for changes.

@koppor
Copy link
Member

koppor commented Feb 3, 2022

Is this fixed by #113?

@datMaffin
Copy link
Contributor Author

Yes #113 was the original fix.

It will also still work with #142 (using unicode-math for lualatex).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants