2

In org mode, this inline latex dollar sign fails to render:

$\$$

but this has no problem rendering:

\[ \$ \]
2
  • 1
    Try \( \$ \) for inline.
    – NickD
    Commented May 1, 2020 at 12:35
  • @NickD thanks that saved my day!
    – rho
    Commented May 1, 2020 at 13:54

1 Answer 1

3

Although Org mode allows LaTeX math fragments to be inserted, there are some limitations. This is one of them. The way to get inline math fragments in such cases is to use the \( ... \) form that LaTeX allows, e.g.

\( \$ \)

in this case. See the LaTeX fragments section of the manual, which states:

LaTeX fragments do not need any special marking at all. The following snippets are identified as LaTeX source code: ... Text within the usual LaTeX math delimiters. To avoid conflicts with currency specifications, single ‘$’ characters are only recognized as math delimiters if the enclosed text contains at most two line breaks, is directly attached to the ‘$’ characters with no whitespace in between, and if the closing ‘$’ is followed by whitespace, punctuation or a dash. For the other delimiters, there is no such restriction, so when in doubt, use ‘(...)’ as inline math delimiters.

Note that your attempt $\$$ satisfies all the rules - but it still does not work, so that's a bug in the documentation.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.