* trouble with hyperref loaded after `header-includes` in the default latex template
@ 2023-04-10 8:12 jiewuza
2023-04-10 10:56 ` Ulrike Fischer
0 siblings, 1 reply; 4+ messages in thread
From: jiewuza @ 2023-04-10 8:12 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1: Type: text/plain, Size: 420 bytes --]
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.
--
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: trouble with hyperref loaded after `header-includes` in the default latex template
2023-04-10 8:12 trouble with hyperref loaded after `header-includes` in the default latex template jiewuza
@ 2023-04-10 10:56 ` Ulrike Fischer
2023-04-10 13:40 ` jiewuza
0 siblings, 1 reply; 4+ messages in thread
From: Ulrike Fischer @ 2023-04-10 10:56 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: trouble with hyperref loaded after `header-includes` in the default latex template
2023-04-10 10:56 ` Ulrike Fischer
@ 2023-04-10 13:40 ` jiewuza
2023-04-10 14:13 ` Ulrike Fischer
0 siblings, 1 reply; 4+ messages in thread
From: jiewuza @ 2023-04-10 13:40 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
[-- Attachment #1: Type: text/plain, Size: 936 bytes --]
Good to know `\AddToHook`, thank you.
You can see the default template with `pandoc -D latex`. The order of what I mentioned is changed in recent versions.
BTW is there any active alternatives to cleverref that you could recommend?
--
Ulrike Fischer <luatex-bMiYgyzgJ3Ab1SvskN2V4Q@public.gmane.org> 写入消息新闻:
> Am Mon, 10 Apr 2023 16:12:19 +0800 (GMT+08:00) schrieb jiewuza:
>
>> I get an error
>> `cleverref must be loaded after hyperref`,
----Android NewsGroup Reader----
http://www.piaohong.tk/newsgroup
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/u113k6%24g2q%241%40ciao.gmane.io.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: trouble with hyperref loaded after `header-includes` in the default latex template
2023-04-10 13:40 ` jiewuza
@ 2023-04-10 14:13 ` Ulrike Fischer
0 siblings, 0 replies; 4+ messages in thread
From: Ulrike Fischer @ 2023-04-10 14:13 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
Am Mon, 10 Apr 2023 21:40:24 +0800 (GMT+08:00) schrieb jiewuza:
> Good to know `\AddToHook`, thank you.
>
> You can see the default template with `pandoc -D latex`.
Yes I know, but I'm not really a pandoc user. I used it only a few
times over the last years.
> BTW is there any active alternatives to cleverref that you could recommend?
I don't have much need for complicated reference systems currently
and so don't keep really track of them but you could take a look at
zref-clever.
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-04-10 14:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-10 8:12 trouble with hyperref loaded after `header-includes` in the default latex template jiewuza
2023-04-10 10:56 ` Ulrike Fischer
2023-04-10 13:40 ` jiewuza
2023-04-10 14:13 ` Ulrike Fischer
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).