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.

Hello,

people tend to use the lightning symbol ↯ (LaTex: \unicode{x21af}) for contradictions. I switched over from Mathjax, where the latter was possible. Here in KaTeX I tried to use \text{↯}, which works fine but I get the following warning on the console:

katex.min.js:1 LaTeX-incompatible input and strict mode is set to 'warn': Unrecognized Unicode character "↯" (8623) [unknownSymbol]
No character metrics for '↯' in style 'Main-Regular'

Is there something we can do about it?

Thanks Robert

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:3
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
edemainecommented, Feb 10, 2019

The warning means that the symbol is not in the KaTeX font, so it is falling back to your document font (I believe), which can look inconsistent. KaTeX also doesn’t know the size of the character, which can lead to incorrect vertical spacing in particular. If neither of these are issues, you can ignore the warnings, or remove them via the strict setting.

0reactions
infusioncommented, Feb 9, 2019

@kevinbarabash I embed KaTex into my site where I use a Google Font. But I think that does not matter. The important thing is that unicode is used on the site. I tested KaTex with html entities which fails with a parse error. But using \text simply adds

<span class="mord text"><span class="mord">↯</span></span>

to the DOM - which is all fine. I also have no problem using \text or add a macro for \lightning. My concerns are regarding the warnings. Are they save to ignore or it just luck that it works with the tex snippet I parsed?

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Lightning Bolt: A History of the Iconic Symbol
For most of its history as a graphic symbol, the bolt has represented power and electricity for bands, brands, and comic book heroes...
Read more >
Lightning Bolt Symbol (🗲) - Copy and Paste Text Symbols
⌨️ Lightning Bolt Symbol Alt Codes ... Press the key or keys on the numpad while holding ALT. ALT Code, Symbol. ALT +...
Read more >
Thunderbolt
A thunderbolt or lightning bolt is a symbolic representation of lightning when accompanied by a loud thunderclap. In Indo-European mythology, ...
Read more >
“⚡︎” meaning: high voltage, lightning bolt Emoji
This is a tooth-shaped yellow lightning, which represents high voltage, thunder and lightning, electricity or flash, and can also be extended to mean...
Read more >
Lightning Bolt Symbol Vector Images (over 27000)
The best selection of Royalty Free Lightning Bolt Symbol Vector Art, Graphics and Stock Illustrations. Download 27000+ Royalty Free Lightning Bolt Symbol ...
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