* header-includes loaded before polyglossia in latex template
@ 2018-09-26 12:29 Jean-Charles Bagneris
[not found] ` <e0572141-aa25-425b-bfc1-144f7d8a3af3-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Jean-Charles Bagneris @ 2018-09-26 12:29 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1490 bytes --]
Hello there,
When rendering to latex, I happen to have some additional headers which
depend on polyglossia being loaded (and \setmainlanguage defined).
Unfortunately, the $header-includes$ variable is called *before* the
loading of polyglossia for what seems to be a good reason related to bidi
and RTL languages.
I know I could easily write a slightly adapted template, but I would of
course prefer to keep sync with the default one, I like to keep pandoc up
to date on my system.
Would calling $header-includes$ after polyglossia really break something
for RTL languages?
If so, would it be possible to have a $late-header-includes$ variable to
address that kind of problem (I know, it sounds quite preposterous to do
that for my own little problem, but maybe others are/were affected as well)
? Or anything else besides designing a new template?
Thanks in advance and thank you so much for pandoc :)
--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/e0572141-aa25-425b-bfc1-144f7d8a3af3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 2052 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: header-includes loaded before polyglossia in latex template
[not found] ` <e0572141-aa25-425b-bfc1-144f7d8a3af3-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2018-09-26 14:05 ` mb21
[not found] ` <0bb7ea57-ff1e-490b-be4d-626dc5c754a9-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: mb21 @ 2018-09-26 14:05 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1859 bytes --]
We've had it both ways already,
see https://github.com/jgm/pandoc/commit/732005456e2b28150943a5a4e11bca6e1566f309
Not sure what's the more common case. But I suggest adding a custom
$header-includes-after-polyglossia$ var if you need it.
On Wednesday, September 26, 2018 at 2:29:48 PM UTC+2, Jean-Charles Bagneris
wrote:
>
> Hello there,
>
> When rendering to latex, I happen to have some additional headers which
> depend on polyglossia being loaded (and \setmainlanguage defined).
>
> Unfortunately, the $header-includes$ variable is called *before* the
> loading of polyglossia for what seems to be a good reason related to bidi
> and RTL languages.
>
> I know I could easily write a slightly adapted template, but I would of
> course prefer to keep sync with the default one, I like to keep pandoc up
> to date on my system.
>
> Would calling $header-includes$ after polyglossia really break something
> for RTL languages?
>
> If so, would it be possible to have a $late-header-includes$ variable to
> address that kind of problem (I know, it sounds quite preposterous to do
> that for my own little problem, but maybe others are/were affected as well)
> ? Or anything else besides designing a new template?
>
> Thanks in advance and thank you so much for pandoc :)
>
--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/0bb7ea57-ff1e-490b-be4d-626dc5c754a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 2574 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: header-includes loaded before polyglossia in latex template
[not found] ` <0bb7ea57-ff1e-490b-be4d-626dc5c754a9-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2018-09-26 14:40 ` Jean-Charles Bagneris
0 siblings, 0 replies; 3+ messages in thread
From: Jean-Charles Bagneris @ 2018-09-26 14:40 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 2289 bytes --]
On Wednesday, September 26, 2018 at 4:05:44 PM UTC+2, mb21 wrote:
>
> We've had it both ways already, see
> https://github.com/jgm/pandoc/commit/732005456e2b28150943a5a4e11bca6e1566f309
>
> Not sure what's the more common case. But I suggest adding a custom
> $header-includes-after-polyglossia$ var if you need it.
>
Thank you for the link, and answering quickly.
Just to make things clear, the reason why I need polyglossia to be loaded
and \setmainlanguage defined is because I define new captions for custom
environments in the added headers.
Thus I use \gappto\captionsenglish and such to have translated versions of
the captions (I write in French and in English mainly), which only works if
polyglossia is already loaded, obviously.
From the link you provide, it seems that OP of
https://github.com/jgm/pandoc/issues/3898 is using a custom template, and
is not really sure about the cause of his problem.
The change in the commit was finally decided because @adunning wrote "I am
not aware of any packages that need to be loaded after bidi".
But the point is, it is not "after bidi", it is after polyglossia. And any
headers using the chosen language (via \setmainlanguage) should obviously
be loaded after polyglossia.
I am aware I am trying to advocate a revert because it would help me, but
again:
- OP of issue 3898 is using a custom template anyway,
- the problem is related to polyglossia, not only RTL languages and bidi.
Maybe there is another way to define custom captions with their
translations (and I would like to know it), but I cannot imagine any way to
do that without being language aware, thus, after loading polyglossia (or
babel, by the way).
Any thoughts ?
Thanks
--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/a675132a-c238-499d-a781-44c555207561%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 3744 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-09-26 14:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-26 12:29 header-includes loaded before polyglossia in latex template Jean-Charles Bagneris
[not found] ` <e0572141-aa25-425b-bfc1-144f7d8a3af3-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-09-26 14:05 ` mb21
[not found] ` <0bb7ea57-ff1e-490b-be4d-626dc5c754a9-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-09-26 14:40 ` Jean-Charles Bagneris
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).