emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com>
To: Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com>,
	Grant Rettke <gcr@wisdomandwonder.com>,
	"Liste-emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Math formatting in HTML export - The Org Manual
Date: Tue, 14 Oct 2014 19:23:03 +0200	[thread overview]
Message-ID: <CAD-VTcFP=5g6ZjxNEsx1vJn20rN89cguTDodcUk_o=6w2RHygQ@mail.gmail.com> (raw)
In-Reply-To: <87mw8zm7th.fsf@ucl.ac.uk>

[-- Attachment #1: Type: text/plain, Size: 2174 bytes --]

Thanks Eric.

I have tested this solution that works with imagemagick and html export. I
have added these lines in my init.el :

; Include the latex-exporter
(require 'ox-latex)
;; Add minted to the defaults packages to include when exporting.
;(add-to-list 'org-latex-packages-alist '("" "minted"))
;; Tell the latex export to use the minted package for source
;; code coloration.
(setq org-latex-listings 'minted)
;; Let the exporter use the -shell-escape option to let latex
;; execute external programs.
;; This obviously and can be dangerous to activate!
(setq org-latex-pdf-process
      '("xelatex -shell-escape -interaction nonstopmode -output-directory
%o %f"))

and it works.

But now it does not work in my Gnus if I want to include some png images of
proofs... I have to deleted these "dangerous lines"...

I do not understand why I need minted and shell-escape...

Best wishes

Jo.


2014-10-14 9:25 GMT+02:00 Eric S Fraga <e.fraga@ucl.ac.uk>:

> Have a look at the following variable and note the SNIPPET argument:
>
> ,----[ C-h v org-latex-packages-alist RET ]
> | org-latex-packages-alist is a variable defined in `org.el'.
> | Its value is (("" "xcolor")
> |  ("" "tikz")
> |  ("" "listings")
> |  ("version=3" "mhchem")
> |  ("" "amsmath" t))
> |
> | Original value was nil
> |
> | Documentation:
> | Alist of packages to be inserted in every LaTeX header.
> |
> | These will be inserted after `org-latex-default-packages-alist'.
> | Each element is either a cell or a string.
> |
> | A cell is of the format:
> |
> |     ("options" "package" SNIPPET-FLAG)
> |
> | SNIPPET-FLAG, when non-nil, indicates that this package is also
> | needed when turning LaTeX snippets into images for inclusion into
> | non-LaTeX output.
> |
> | A string will be inserted as-is in the header of the document.
> |
> | Make sure that you only list packages here which:
> |
> |   - you want in every file;
> |   - do not conflict with the setup in `org-format-latex-header';
> |   - do not conflict with the default packages in
> |     `org-latex-default-packages-alist'.
> |
> | You can customize this variable.
> `----
>
>
> --
> Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D)
>

[-- Attachment #2: Type: text/html, Size: 3051 bytes --]

  reply	other threads:[~2014-10-14 17:23 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-12  8:17 Math formatting in HTML export - The Org Manual Joseph Vidal-Rosset
2014-10-13  0:45 ` Grant Rettke
2014-10-13  7:45   ` Joseph Vidal-Rosset
2014-10-13 11:45     ` Eric S Fraga
2014-10-13 15:50       ` Joseph Vidal-Rosset
2014-10-14  7:25         ` Eric S Fraga
2014-10-14 17:23           ` Joseph Vidal-Rosset [this message]
2014-10-14 17:51             ` Nick Dokos
2014-10-15  5:54               ` Joseph Vidal-Rosset
2014-10-14 19:09             ` Eric S Fraga
2014-10-15  5:59               ` Joseph Vidal-Rosset
2014-10-15  7:21                 ` Eric S Fraga

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='CAD-VTcFP=5g6ZjxNEsx1vJn20rN89cguTDodcUk_o=6w2RHygQ@mail.gmail.com' \
    --to=joseph.vidal.rosset@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=gcr@wisdomandwonder.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).