question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support \text in LaTeX

See original GitHub issue

It looks like jsroot does not support the \text{} macro (see e.g. here). I check it here: https://github.com/root-project/jsroot/blob/60880f814fef347b182c996c1b780a1ff359a3c2/modules/base/latex.mjs#L224-L263

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
linevcommented, Aug 12, 2022

I implement now same way as ROOT does - one \ symbol is found, MathJax is automatically invoked.

https://root.cern/doc/master/classTLatex.html#L14

In the past there were different problems with MathJax, but now it works reliably

0reactions
stephanlachnitcommented, Aug 12, 2022

Yes, this enables usage of MathJax - when special symbols like \ found in the string.

Ok thanks for the help! I will close this then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

LaTeX/Text Formatting - Wikibooks
This section will guide you through text-formatting techniques. Formatting refers to most things to do with appearance including text style and spacing.
Read more >
Font typefaces - Overleaf, Online LaTeX Editor
Font "fontpackagename" "fontcode" Computer Modern Roman cmr Latin Modern Roman lmodern lmr Latin Modern Dunhill lmodern lmdh
Read more >
Writing greek text in LaTeX - TeX
Similarly, the LaTeX fonts include support for no suitable encoding. ... But there is no support for typesetting Greek text.
Read more >
The very short guide to typesetting with LATEX
commercially-supported version from one of the vendors (see back page). ... Create your document using any suitable plain-text editor with LATEX controls,.
Read more >
Getting Started In LaTeX - IT Help Desk - Reed College
To signify the end of a paragraph include a blank line in your input text by pressing Return twice. Use \\ to force...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found