GNU bug report logs -
#50555
[BUG] Org Latex export doesn't handle src blocks correctly
Previous Next
Reported by: Younes Ben El <younes.brovi <at> gmail.com>
Date: Sun, 12 Sep 2021 20:53:02 UTC
Severity: normal
Tags: moreinfo, patch
Done: Daniel Fleischer <danflscr <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
I verified again, this time with emacs -Q; the empty argument list []
does NOT stop you from compiling org into PDF.
> (with-eval-after-load 'ox-latex
> (add-to-list 'org-latex-packages-alist '("" "minted"))
> (setq org-latex-listings 'minted)
> (setq org-latex-pdf-process
> '("pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"
> "pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f"
> "pdflatex -shell-escape -interaction nonstopmode -output-directory %o %f")))
>
Here is the hint: since "minted" is using a python package (pygments) for
the highlighting, one need to add the "-shell-escape" to the call. Other
than that, everything works as planned. Since it's a specific
configuration for using "minted", I'll add a comment in the manual.
If you feel that there is still an issue with the [], please provide an
emacs -Q recipe that shows it, after adding the "-shell-escape" flag.
--
Daniel Fleischer
This bug report was last modified 3 years and 232 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.