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

[TeX input] support for nested text macros #2846

Closed
pkra opened this issue Mar 14, 2022 · 5 comments
Closed

[TeX input] support for nested text macros #2846

pkra opened this issue Mar 14, 2022 · 5 comments
Labels
Accepted Issue has been reproduced by MathJax team Fixed Test Needed v3 v3.2
Milestone

Comments

@pkra
Copy link
Contributor

pkra commented Mar 14, 2022

Authors do things like $ \text{for \textit{some} values } x > 0$.

The textmacros extension gives me \textit is only supported in math mode. "Real" TeX is fine with this.

Could it be supported?

@pkra pkra changed the title support for nested text macros [TeX input] support for nested text macros Mar 14, 2022
@pkra
Copy link
Contributor Author

pkra commented Mar 14, 2022

Huh, on a second try this is working for me. Weird. Sorry for the noise!

@pkra pkra closed this as completed Mar 14, 2022
@pkra
Copy link
Contributor Author

pkra commented Mar 14, 2022

Ah, my problem was different yet -- I had misread my error messages and the example had textup inside text.

It seems textup is missing from textmacros. Is that intentional?

@dpvc
Copy link
Member

dpvc commented Mar 14, 2022

It seems textup is missing from textmacros. Is that intentional?

No. \textup and \textnormal where added to the base macros after textmacros was written, and just didn't get added in there. I'll make a PR to do it.

Do you need a patch for now?

@pkra
Copy link
Contributor Author

pkra commented Mar 15, 2022

No. \textup and \textnormal where added to the base macros after textmacros was written, and just didn't get added in there. I'll make a PR to do it.

Ah, ok!

Do you need a patch for now?

No, I just rewrote things to textrm (which is good enough for me).

Should this be re-opened?

@pkra pkra reopened this Mar 15, 2022
@pkra
Copy link
Contributor Author

pkra commented Mar 15, 2022

Oops. I re-opened. Sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Issue has been reproduced by MathJax team Fixed Test Needed v3 v3.2
Projects
None yet
Development

No branches or pull requests

2 participants