emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Sylvain Salvati <sylvain.salvati@labri.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: Latex command compilation in HTML export
Date: Sun, 31 Jan 2016 12:08:26 +0000	[thread overview]
Message-ID: <87oac2ossl.fsf@ucl.ac.uk> (raw)
In-Reply-To: <lzlh77m4iy.fsf@labri.fr> (Sylvain Salvati's message of "Sat, 30 Jan 2016 17:11:01 +0100")

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=nonstopmode --output-format=dvi
> --output-directory=%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 ‘ox-html.el’.
| Its value is ‘imagemagick’
| Original value was t
| 
| Documentation:
| Non-nil means process LaTeX math snippets.
| 
| When set, the exporter will process LaTeX environments and
| fragments.
| 
| This option can also be set with the +OPTIONS line,
| e.g. "tex:mathjax".  Allowed values are:
| 
| nil            Ignore math snippets.
| ‘verbatim’     Keep everything in verbatim
| ‘dvipng’       Process the LaTeX fragments to images.  This will also
|                include processing of non-math environments.
| ‘imagemagick’  Convert the LaTeX fragments to pdf files and use
|                imagemagick to convert pdf files to png files.
| ‘mathjax’      Do MathJax preprocessing and arrange for MathJax.js to
|                be loaded.
| t              Synonym for ‘mathjax’.
| 
| You can customize this variable.
| 
| This variable was introduced, or its default value was changed, in
| version 24.4 of Emacs.
| 
| [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 ;-)

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3.3-497-gc74b99

      reply	other threads:[~2016-01-31 12:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-30 16:11 Latex command compilation in HTML export Sylvain Salvati
2016-01-31 12:08 ` Eric S Fraga [this message]

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=87oac2ossl.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=sylvain.salvati@labri.fr \
    /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).