public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: "Stefan Björk" <stefan.bjork-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Subject: Re: mainfontoptions: Numbers=OldStyle ignored when lang: sv
Date: Wed, 9 Aug 2023 01:58:54 -0700 (PDT)	[thread overview]
Message-ID: <8bd22ba4-5a10-4e98-ad79-5d6b728381f8n@googlegroups.com> (raw)
In-Reply-To: <30a732d6-b961-4d17-9fde-9e6ad2a5edf2n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>


[-- Attachment #1.1: Type: text/plain, Size: 1554 bytes --]

Looking into it, it seems the following section:

$if(babel-lang)$
\babelprovide[main,import]{$babel-lang$}
$if(mainfont)$
\ifPDFTeX
\else
\babelfont{rm}[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mainfont$}
\fi
$endif$
$endif$

Is expanded to:

\babelprovide[main,import]{swedish}
\ifPDFTeX
\else
\babelfont[swedish]{rm}{Minion Pro}
\fi

While, at the same time, `mainfontoptions` is correctly expanded with 
setmainfont:

  % xetex/luatex font selection
$if(mainfont)$
  
\setmainfont[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mainfont$}
$endif$

Expanded to:

  % xetex/luatex font selection
  \setmainfont[Numbers=OldStyle]{Minion Pro}


I don't get it. This is the default template of pandoc 3.1.6 (I upgraded).
onsdag 9 augusti 2023 kl. 10:44:06 UTC+2 skrev Stefan Björk:

> `mainfontoptions: Numbers=OldStyle` works as expected when I don't specify 
> a language with `lang`. When I specify a language, XeLaTeX seem to ignore 
> the OldStyle settings. I suspect there are something broken with the 
> default LaTeX template?
>
> I'm using pandoc 3.1.1.
>
>

-- 
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/8bd22ba4-5a10-4e98-ad79-5d6b728381f8n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 2335 bytes --]

  parent reply	other threads:[~2023-08-09  8:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-09  8:44 Stefan Björk
     [not found] ` <30a732d6-b961-4d17-9fde-9e6ad2a5edf2n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-08-09  8:58   ` Stefan Björk [this message]
     [not found]     ` <8bd22ba4-5a10-4e98-ad79-5d6b728381f8n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-08-17 16:25       ` Thomas Hodgson
     [not found]         ` <c891d83c-b2b5-4117-96eb-91ccc61871c2n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-09-05  8:19           ` Stefan Björk

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=8bd22ba4-5a10-4e98-ad79-5d6b728381f8n@googlegroups.com \
    --to=stefan.bjork-re5jqeeqqe8avxtiumwx3w@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).