From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Latex command compilation in HTML export Date: Sun, 31 Jan 2016 12:08:26 +0000 Message-ID: <87oac2ossl.fsf@ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37044) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPr3U-0002D3-25 for emacs-orgmode@gnu.org; Sun, 31 Jan 2016 07:24:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aPr3Q-0006xl-1L for emacs-orgmode@gnu.org; Sun, 31 Jan 2016 07:24:35 -0500 Received: from mail-db5eur01on0098.outbound.protection.outlook.com ([104.47.2.98]:58677 helo=EUR01-DB5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPr3P-0006wY-O8 for emacs-orgmode@gnu.org; Sun, 31 Jan 2016 07:24:31 -0500 In-Reply-To: (Sylvain Salvati's message of "Sat, 30 Jan 2016 17:11:01 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sylvain Salvati Cc: emacs-orgmode@gnu.org On Saturday, 30 Jan 2016 at 17:11, Sylvain Salvati wrote: > Dear Orgmode list, > > during the HTML export of an org document, I would like to compile its > latex fragments to SVG using the sequence of commands > > lualatex --shell-escape --interaction=3Dnonstopmode --output-format=3Ddvi > --output-directory=3D%o %b > dvisvgm %b I am not sure this is possible although maybe it should be... The info pages at (org) LaTeX fragments seem to imply rather hard-coded methods and the only variable that seems relevant is this one: ,----[ C-h v org-html-with-latex RET ] | org-html-with-latex is a variable defined in =E2=80=98ox-html.el=E2=80=99. | Its value is =E2=80=98imagemagick=E2=80=99 | Original value was t |=20 | Documentation: | Non-nil means process LaTeX math snippets. |=20 | When set, the exporter will process LaTeX environments and | fragments. |=20 | This option can also be set with the +OPTIONS line, | e.g. "tex:mathjax". Allowed values are: |=20 | nil Ignore math snippets. | =E2=80=98verbatim=E2=80=99 Keep everything in verbatim | =E2=80=98dvipng=E2=80=99 Process the LaTeX fragments to images. Th= is will also | include processing of non-math environments. | =E2=80=98imagemagick=E2=80=99 Convert the LaTeX fragments to pdf files a= nd use | imagemagick to convert pdf files to png files. | =E2=80=98mathjax=E2=80=99 Do MathJax preprocessing and arrange for M= athJax.js to | be loaded. | t Synonym for =E2=80=98mathjax=E2=80=99. |=20 | You can customize this variable. |=20 | This variable was introduced, or its default value was changed, in | version 24.4 of Emacs. |=20 | [back] `---- You could maybe export to verbatim and then apply an export filter to do what you want. Non-trivial, or at least beyond my capabilities ;-) --=20 : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3.3-497-gc74b99