I use dvisvgm to generate latex fragments. However, some of my equations seem to be cut off. One example is below

Equation that get cuts off

The svg file generated does not have the cutoff but the image as displayed in emacs does. I have tried rescaling the images (using org-format-latex-options) and also changing the org-format-latex-header, but have had no success so far. If you have any idea on what might be causing the discrepancy please comment back.

  • Did you already try dvisvgm option --exact or just -e? Some glyphs exceed the bounding box specified by the TFM data so that the graphics get clipped. Option --exact should prevent this problem. – Martin Jan 24 '18 at 16:29
  • @Martin Thanks for the response. I am not sure how to specify dvisvgm options. I changed the org-preview-latex-default-process to dvisvgm --exact and got the error "org-format-latex: Unknown conversion process dvisvgm --exact for LaTeX fragments". Previously I had this set to just "dvisvgm". Please let me know if you have any insights on what I am doing wrong here. – Quarky Quanta Jan 24 '18 at 23:53
  • Sorry, I'm not an Org expert. I don't know if or where the dvisvgm options can be configured. Maybe org-preview-latex-process-alist has to be adapted accordingly. – Martin Jan 25 '18 at 18:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.