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
use dvisvgm for latex equation export #327
Comments
I just realized that I forgot to reply to this thread after reading the issue. This is not being ignored. I'll see if I can get time to implement this feature in next 2 weeks. PR's are always welcome. In the meanwhile, would the Mathjax solution work for you? |
I would like to avoid using JavaScript as I disable it on most sites, so
mathjax is not an option for me. dvisvgm is good solution for me because
orgmode supports it natively for inline previews of latex equations so it
seem natural to support it in ox-hugo. Same goes for dvipng, I don't use
it, but seems that general process can be shared between those, as they
both can be used in previews.
Currently I manually place generated images to static directory.
… |
This option exports inline and block LaTeX equations as SVG files. ox-hugo then takes care of copying the exported SVG files to the site's `static/ltximg/` directory. NOTE: The user will need to take care of deleting all the old SVG files which are no longer used. Fixes #327.
@andreyorst Hello! I am replying to this thread after a while. If you are still using ox-hugo, try out the latest commit on the It worked well for me from my local testing. |
Just tested and it seems to work! |
Hello. I'm trying to set up latex exporting to svg via
dvisvgm
instead of relying onmathjax
. Currently if I set this option at the top of my org mode file I see exported images in resulting markdown files in this facion:Org file:
Markdown:
Which will not work because the path to the image is wrong after hugo builts the page.
There's an option for that
org-preview-latex-image-directory
but if I set it to something like./static/ltximg
it still doesn't work because of wrong path.Is it possible to set the correct path or configure ox-latex in a way that it will copy images somewhere?
The text was updated successfully, but these errors were encountered: