I'm using markdown-mode. I followed these instructions to render LaTeX math strings: http://jblevins.org/projects/markdown-mode/

I am rendering to HTML with markdown-export and markdown-live-preview-mode. Have I assumed incorrectly that these LaTeX expressions can be rendered to HTML?

Simple LaTeX strings render fine:

then the event ${ \tau \leq n }$ is just

enter image description here

Any LaTeX string with a function inside does not render:

with probability $\frac{1}{2}$ and

enter image description here

Extra curly braces do not fix rendering:

with probability ${\frac{1}{2}}$ and

I think I have the relevant Macports ports installed, and the relevant Emacs packages.


1 Answer 1


It depends on how exactly you are rendering the LaTeX fragments. I'm not sure if this is possible with the markdown program, but it does work with Pandoc. To use this in markdown-mode, customize markdown-command (via M-x customize-variable) to pandoc -s --mathjax. This assumes you have pandoc installed, of course. There are other options available as well; see the Pandoc documentation for more details.

  • 1
    This didn't work for me I still can't see latex fragments properly generated nor can I see tables being properly generated. An example is show here
    – Kirk Walla
    Commented Jan 27, 2020 at 10:15
  • @KirkWalla we can't help you without details. If you want to open a new question with those details someone might be able to help you work through it.
    – Tyler
    Commented Jan 27, 2020 at 15:28
  • Thanks @Tyler, I did open a new question with details here
    – Kirk Walla
    Commented Jan 27, 2020 at 15:32

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.