org-reveal icon indicating copy to clipboard operation
org-reveal copied to clipboard

How to tell org-reveal to use latex package

Open FryeKai opened this issue 2 years ago • 5 comments

Hi, I need to use a latex package. It works, when I export the org file as a latex. But how to tell org-reveal to use the package as well?

Cheers, Kai

FryeKai avatar Jun 27 '22 13:06 FryeKai

I am afraid there is no way to include a latex package, as org-reveal is an HTML backend. What is necessary of a latex package for exporting reveal.js slides?

yjwen avatar Jun 27 '22 15:06 yjwen

I am afraid there is no way to include a latex package, as org-reveal is an HTML backend. What is necessary of a latex package for exporting reveal.js slides?

For a talk, I need to use the quantum mechanics "braket" notation, which is accessible by \usepacke{braket}.

Sadly, this does not compile in org-reveal.

In a nutshell, only with latex packages, I can display all equation I need to.

FryeKai avatar Jun 27 '22 16:06 FryeKai

@FryeKai you can use MathJax with Org-Reveal which apparently supports the braket Commands.

kir0ul avatar Jun 27 '22 18:06 kir0ul

@kir0ul Thanks for the advice. I suppose that this is a nice workaround. But I am really struggling to get MathJax running with org-reveal properly. I think it's load using REVEAL_MATHJAX_URL but no idea how to modify it.

FryeKai avatar Jun 28 '22 14:06 FryeKai

Here is an example.

#+REVEAL_MATHJAX_URL: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js

* Example Slide
$\braket{1 \over w}$

yjwen avatar Jun 28 '22 15:06 yjwen