From: Timothy <tecosaur@gmail.com>
To: "Rudolf Adamkovič" <salutis@me.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [BUG] Make SVG + LaTeX work by default [9.5.2 (release_9.5.2-9-g7ba24c @ /Users/salutis/src/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/)]
Date: Sun, 30 Jan 2022 23:35:52 +0800 [thread overview]
Message-ID: <87wnihmdyh.fsf@gmail.com> (raw)
In-Reply-To: <m2sft5p7bs.fsf@me.com>
[-- Attachment #1: Type: text/plain, Size: 835 bytes --]
Hi Rudolf,
> To make SVG work in Org Mode and LaTeX, one must:
>
> (1) add “-shell-escape” to “org-latex-pdf-process”:
>
> OLD: latexmk -f -pdf -%latex -interaction=nonstopmode …
> NEW: latexmk -f -pdf -%latex -interaction=nonstopmode -shell-escape …
>
> (2) add the header line:
>
> #+latex_header:
>
> With these two changes, SVG images show in both PDF and HTML exports.
>
> Why does Org Mode not have this configured out of the box? I have just
> spent 2 hours figuring it out, and someone else will have to figure it
> out again sooner or later.
For what consolation it may be, I have a plan to make this (and more) work OOTB
while using the minimal set of packages needed. However, unfortunately I need
more time to refine my changes into patches I’m happy with.
All the best,
Timothy
next prev parent reply other threads:[~2022-01-30 15:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-30 15:32 [BUG] Make SVG + LaTeX work by default [9.5.2 (release_9.5.2-9-g7ba24c @ /Users/salutis/src/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/)] Rudolf Adamkovič
2022-01-30 15:35 ` Timothy [this message]
2022-01-30 17:29 ` Tom Gillespie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wnihmdyh.fsf@gmail.com \
--to=tecosaur@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=salutis@me.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).