How to get a heart symbol filled with black color #2546
-
Asked on Stack Overflow too : https://stackoverflow.com/questions/64043621/how-to-get-a-heart-filled-of-black-color-in-katex |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
KaTeX KaTeX emulates LaTeX, and this is not a LaTeX function, so KaTeX will write at least one error to the console (two if in strict mode). If you don't mind a console error, then no worries. KaTeX does render the heart. Just copy ♥ and paste it into your work. |
Beta Was this translation helpful? Give feedback.
-
Looking at the LaTeX symbols list, there are a few packages that offer |
Beta Was this translation helpful? Give feedback.
KaTeX
\hearts
and\heartsuit
render a heart outline, ♡, U+2661, , so they do not help you. The Unicode character for a filled heart is ♥, U+2665. That glyph is not in the KaTeX fonts, but you can still use it and KaTeX will substitute the glyph from the Times New Roman system font.KaTeX emulates LaTeX, and this is not a LaTeX function, so KaTeX will write at least one error to the console (two if in strict mode). If you don't mind a console error, then no worries. KaTeX does render the heart. Just copy ♥ and paste it into your work.