Pedro Andres Aranda Gutierrez <paag...@gmail.com> writes: > Ahh, sorry... > > Look at the docstring for `org-latex-engraved-preamble', for example.
That's not relevant. When engraved is used, we automatically include xcolor. > ... And > then, there are other places where it is not mentioned explicitly, but not > including it may result in a compilation error > (`org-latex-listings-src-omit-language', > for example) May you elaborate? > It could also help a lot in `org-latex-src-block-backend': there we ask to > load package color... why not xcolor to get a richer control of colours? I guess that you are referring to When using listings, you also need to make use of LaTeX package "listings". The "color" LaTeX package is also needed if you would like color too. These can simply be added to org-latex-packages-alist, using customize or something like: (require 'ox-latex) (add-to-list 'org-latex-packages-alist '("" "listings")) (add-to-list 'org-latex-packages-alist '("" "color")) We can indeed include color package, but I do not see why we should do it by default. We may instead include it conditionally, only when listings backend is selected by the user. Just as it is done for engraved. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>