From: Ulrike Fischer <luatex-bMiYgyzgJ3Ab1SvskN2V4Q@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: trouble with hyperref loaded after `header-includes` in the default latex template
Date: Mon, 10 Apr 2023 12:56:12 +0200 [thread overview]
Message-ID: <kaa9zke975nq$.dlg@nililand.de> (raw)
In-Reply-To: <u10gdp$qsi$1@ciao.gmane.io>
Am Mon, 10 Apr 2023 16:12:19 +0800 (GMT+08:00) schrieb jiewuza:
> I get an error
> `cleverref must be loaded after hyperref`,
> after updating.
>
> I find in the default latex template that hyperref package is deferred to be loaded after `header-includes`, while I usually put 3rd packages including cleverref in it.
>
> I know I can use customized template. But I'd like to figure out where should I put those packages that are required to be load after hyperref with the default template.
I have no idea about how pandoc handles that, but from the LaTeX
side you could use
\AddToHook{package/hyperref/after}{\usepackage{cleveref}}
or
\AddToHook{begindocument/before}{\usepackage{cleveref}}
to delay the loading of cleveref.
(It is a bit of a pain, that it wants to be loaded later, but
cleveref is not actively maintained currently, and so it can't be
enhanced with hooks to resolve this).
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
next prev parent reply other threads:[~2023-04-10 10:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-10 8:12 jiewuza
2023-04-10 10:56 ` Ulrike Fischer [this message]
2023-04-10 13:40 ` jiewuza
2023-04-10 14:13 ` Ulrike Fischer
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='kaa9zke975nq$.dlg@nililand.de' \
--to=luatex-bmiygyzgj3ab1svskn2v4q@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.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.
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 NNTP newsgroup(s).