emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Joost Kremers <joostkremers@fastmail.fm>
To: Emacs Org mode mailing list <emacs-orgmode@gnu.org>
Subject: Customising LaTeX packages in org-latex-default-packages-alist
Date: Fri, 06 Sep 2024 09:49:48 +0200	[thread overview]
Message-ID: <86le051asj.fsf@fastmail.fm> (raw)

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	other threads:[~2024-09-06  7:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-06  7:49 Joost Kremers [this message]
2024-09-08 18:27 ` Customising LaTeX packages in org-latex-default-packages-alist Ihor Radchenko
2024-09-09  8:16   ` Joost Kremers
  -- strict thread matches above, loose matches on Subject: below --
2024-09-07  5:36 Pedro Andres Aranda Gutierrez
2024-09-09  8:10 ` Joost Kremers

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=86le051asj.fsf@fastmail.fm \
    --to=joostkremers@fastmail.fm \
    --cc=emacs-orgmode@gnu.org \
    /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).