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.

Not rending latex modifiers

See original GitHub issue

Before reporting a bug

Describe the bug: There is rendering issue when using katex and latex modifiers

(La)TeX code: The code of (La)TeX you tried to render:

${\displaystyle |\psi \rangle =\alpha |0\rangle +\beta |1\rangle }$

Expected behavior:

from: latex.codecogs.com

Screenshots:

image

le of displaystyle is rendered 🤦‍♂️

Environment (please complete the following information):

  • KaTeX Version: ^0.10.1 with showdown-katex
  • Device: Desktop
  • OS: Arch Linux
  • Browser: Any
  • Version: Any

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
ronkokcommented, Aug 29, 2019

@tbhaxor You need to raise this issue in a showdown-katex forum, not here. We don’t know showdown-katex here and we can’t tell if such a configuration is well formed or not.

If you get to the point where you have successfully invoked KaTeX and not AsciiMath, and then KaTeX is still acting improperly, then please come back and raise a new KaTeX issue here.

0reactions
tbhaxorcommented, Aug 29, 2019

@ronkok

    {
      displayMode: true,
      throwOnError: false, // allows katex to fail silently
      errorColor: '#ff0000',
      delimiters: [
        { left: "$", right: "$", display: false }, // katex default
        { left: '~', right: '~', display: false, asciimath: true },
      ],
    }

This is my configuration

Read more comments on GitHub >

github_iconTop Results From Across the Web

TikZ picture not rendering in different environment - TeX
Save this question. Show activity on this post. The alignment is wrong, the nodes don't have borders drawn anymore, etc.
Read more >
Latex in notebook markdown not rendering correctly #119195
Latex in notebook markdown not rendering correctly #119195 ... is used doesn't render using latex and there is a duplication with the ....
Read more >
Missing $ inserted - Overleaf, Online LaTeX Editor
Using modifiers, symbol commands—and many other math-related commands—outside of typesetting mathematical content will generate a Missing $ inserted error ...
Read more >
Shortcut for Render LaTeX Equation in Inkscape? - Ask Ubuntu
1 Answer 1 ; key · "k" ; modifiers · "Ctrl,Alt" ; action · "org.inkscape.effect.eqtexsvg" ; display · "true" ...
Read more >
LaTeX/Mathematics - Wikibooks, open books for an open world
The mathtools package loads the amsmath package and hence there is no need to \usepackage{amsmath} in the preamble if mathtools is used.
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