-
Notifications
You must be signed in to change notification settings - Fork 131
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
Inline LaTeX fragments exported to SVG (dvisvgm) don't show inline in HTML #611
Comments
Hello, Thanks for writing up a good issue report.
You can see on this ox-hugo's dvisvgm test page that the inline image rendering (the Here's the Org source of that test, for the inline and block equations part:
Can you also share the Markdown file generated when you export that MWE? |
@Perangelot I have cleaned up my earlier comments, edited my last comment, and moved the discussion related to SVG foreground/background colors to #612. |
@Perangelot I have added your inline equation example to the same test and it's rendering inline. So it looks like what I guessed initially.. something to do with your CSS: |
Thanks for your fast answer! I now completely left out the |
Okay, I've got it working now, it actually was the |
First of all: Thank you for all the great effort you put into this package! I am surely not the only one who appreciates this so much. I have a request concerning formulae and drawing
tikz
pictures. If this was solved, I could finally write proper formulae in my blog!Actual Behavior
Using the option
#+tex:dvisvgm
, LaTeX images are created, which works fine in general. There are just two caveats:org-preview-images
, not generated with the emacs theme colors, but in black with no background. This is, in principle, what you want, but those who use a dark theme like me need other colors (I, for example, need the font color to be light gray).<img src="/image-folder/name-of-img" alt="LaTeX-code" class="org-svg" />
. This has all images be put on a new line. It happens often times that you need the image in-line, though, e.g. when you use in-line formulas.Expected Behavior
How to Reproduce the Issue
In org-mode
In markdown
In org-mode:
![grafik](https://user-images.githubusercontent.com/89665177/161958591-85aa4108-f74a-42d1-a9c1-e2499acd8cf1.png)
![grafik](https://user-images.githubusercontent.com/89665177/161958912-65773f0c-07fd-43df-a567-e25a18e0f7e0.png)
HTML output:
The text was updated successfully, but these errors were encountered: