public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* What is the difference between $lang$ and $babel-lang$
@ 2022-06-25  8:20 R (Chandra) Chandrasekhar
       [not found] ` <c53d23a1-0305-b85a-aa89-3c430fed1a4c-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: R (Chandra) Chandrasekhar @ 2022-06-25  8:20 UTC (permalink / raw)
  To: pandoc-discuss

The LaTeX template features $lang$ and $babel-lang$ not to mention 
$babel-otherlangs$.

What is the difference between $lang$ and $babel-lang$ and can the 
latter not be set to $lang$ in the template?

What are the consequences of doing so?

Thanks.

Chandra



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: What is the difference between $lang$ and $babel-lang$
       [not found] ` <c53d23a1-0305-b85a-aa89-3c430fed1a4c-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2022-06-25  8:42   ` Albert Krewinkel
  0 siblings, 0 replies; 2+ messages in thread
From: Albert Krewinkel @ 2022-06-25  8:42 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Hi Chandra,

"R (Chandra) Chandrasekhar" <chyavana-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> The LaTeX template features $lang$ and $babel-lang$ not to mention
> $babel-otherlangs$.
>
> What is the difference between $lang$ and $babel-lang$ and can the latter not be
> set to $lang$ in the template?

The variable `lang` is expected to be a BCP47 language code. However,
the LaTeX package "babel" used for some language-specific conversions
requires a different language description. That's what `babel-lang`
contains, it's the language given in a way that's understood by that
LaTeX package.

See here for the conversion code:
https://github.com/jgm/pandoc/blob/master/src/Text/Pandoc/Writers/LaTeX/Lang.hs

HTH,
Albert

-- 
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe  e836 388d c0b2 1f63 1124


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-25  8:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-25  8:20 What is the difference between $lang$ and $babel-lang$ R (Chandra) Chandrasekhar
     [not found] ` <c53d23a1-0305-b85a-aa89-3c430fed1a4c-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2022-06-25  8:42   ` Albert Krewinkel

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).