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.fr...@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)
>

Reply via email to