emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Customising LaTeX packages in org-latex-default-packages-alist


From: Joost Kremers
Subject: Customising LaTeX packages in org-latex-default-packages-alist
Date: Fri, 06 Sep 2024 09:49:48 +0200

Hi all,

I've long had this snippet in my Org config:

```
;; Add "colorlinks=true" to hyperref:
(setq org-latex-default-packages-alist '(("AUTO" "inputenc" t
                                          ("pdflatex"))
                                         ("T1" "fontenc" t
                                          ("pdflatex"))
                                         ("" "graphicx" t nil)
                                         ("" "longtable" nil nil)
                                         ("" "wrapfig" nil nil)
                                         ("" "rotating" nil nil)
                                         ("normalem" "ulem" t nil)
                                         ("" "amsmath" t nil)
                                         ("" "amssymb" t nil)
                                         ("" "capt-of" nil nil)
                                         ("colorlinks=true" "hyperref" nil 
nil)))
```

As the comment says, I modify `org-latex-default-packages-alist` because I
want to change the way hyperref marks hyperlinks. Just now, though I
happened to stumble upon the doc string of
`org-latex-default-packages-alist`, which says that the only reason to
modify this variable is when you load packages that conflict with these.

So that made me wonder; is there a different (better) way of configuring
the packages in `org-latex-default-packages-alist`?

TIA

Joost

-- 
Joost Kremers
Life has its moments



reply via email to

[Prev in Thread] Current Thread [Next in Thread]