Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question : use mathjax to render latex fragments in served org files #153

Open
deb75 opened this issue May 5, 2021 · 1 comment
Open

Comments

@deb75
Copy link

deb75 commented May 5, 2021

This post is related to #151 , I think a better idea would be to render the latex fragments with mathjax. What say you ?

If I am not mistaken, org files are export in html ? Is it the org-html exporter ?

I tried to set org-html-mathjax-options as follows

(setq org-html-mathjax-options
      '((path "http://127.0.0.1:8080/mathjax/es5/tex-chtml.js")
        (scale "100")
        (align "center")
        (font "TeX")
        (linebreaks "false")
        (autonumber "AMS")
        (indent "0em")
        (multlinewidth "85%")
        (tagindent ".8em")
        (tagside "right")))

The key value is the path which points to the org-roam server. I installed mathjax locally at the root of the org-roam
directory, because I cannot access the web, but it does not work.

Where should I put mathjax ?

Regards

@deb75
Copy link
Author

deb75 commented May 5, 2021

Answering to myself.

I tested the org html export with org-html-mathjax-options path pointing to a local mathjax installation.

It works nicely.

I tried then to do the same with org-roam files, but latex fragments are displayed like this

\(\infty = \iny_{0}^{1}\)

on the org-roam server just as if mathjax was not active.

In order to investigate the issue, how could I access the raw html
pages which are served when you use the preview mode ?

Any hints ? Perhaps it works better with org-roam v2 ?

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant