# Org Latex Fragment Succeeded by a Dash Is Not Showing

I'm using the org-mode to write some mathematical notes, so I'm using latex fragments like $\frac{a}{b}$ a lot. However, if I succeed the fragment with a dash, like $\frac{a}{b}$-fraction, it will not render (preview) the fragment.

Questions: (1) How can I override this behavior and make it show? (2) Is this the intended behavior or strictly a bug?

Use $$...$$ instead of $...$ and it should work just fine.
Org-mode recognizes Latex fragments by the $ symbol at the start and end of the fragment. If you add a trailing -, then the fragment doesn't end with a $ anymore, so Org won't recognize it as a fragment. You can work around this by placing a space between the closing $ and the -: $\frac{a}{b}$-fraction  • But how can one then supress the space during export? Note that this is possible when dealing with emphasis: /wh/-pronoun. – Timm Nov 30 '17 at 21:35 • The code for font-locking, responsible for bold and emphasis, is different than the code for identifying code fragments, so they will not necessarily behave the same. Another work around: try $\frac{a}{b} - \text{fraction}$. Do you need to have the '-fraction' outside the fragment for some reason? Nov 30 '17 at 21:45 • Does the following work? $\frac{a}{b}\$ \hspace{-\em} (or -\thinspace)? Dec 7 '17 at 20:18