public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* mainfontoptions: Numbers=OldStyle ignored when lang: sv
@ 2023-08-09  8:44 Stefan Björk
       [not found] ` <30a732d6-b961-4d17-9fde-9e6ad2a5edf2n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Björk @ 2023-08-09  8:44 UTC (permalink / raw)
  To: pandoc-discuss


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

`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/30a732d6-b961-4d17-9fde-9e6ad2a5edf2n%40googlegroups.com.

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

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

* Re: mainfontoptions: Numbers=OldStyle ignored when lang: sv
       [not found] ` <30a732d6-b961-4d17-9fde-9e6ad2a5edf2n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2023-08-09  8:58   ` Stefan Björk
       [not found]     ` <8bd22ba4-5a10-4e98-ad79-5d6b728381f8n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Björk @ 2023-08-09  8:58 UTC (permalink / raw)
  To: pandoc-discuss


[-- 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 --]

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

* Re: mainfontoptions: Numbers=OldStyle ignored when lang: sv
       [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>
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Hodgson @ 2023-08-17 16:25 UTC (permalink / raw)
  To: pandoc-discuss


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

It seems to work with 3.1.6.1:
https://pandoc.org/try/?params=%7B%22text%22%3A%22---%5Cnlang%3A+sv%5Cnmainfont%3A+Minion+Pro%5Cnmainfontoptions%3A+Numbers%3DOldStyle%5Cn---%5Cn%5CnHello+world.%22%2C%22to%22%3A%22latex%22%2C%22from%22%3A%22markdown%22%2C%22standalone%22%3Atrue%2C%22embed-resources%22%3Afalse%2C%22table-of-contents%22%3Afalse%2C%22number-sections%22%3Afalse%2C%22citeproc%22%3Afalse%2C%22html-math-method%22%3A%22plain%22%2C%22wrap%22%3A%22auto%22%2C%22highlight-style%22%3Anull%2C%22files%22%3A%7B%7D%2C%22template%22%3Anull%7D

I think it was fixed in this commit:
https://github.com/jgm/pandoc/commit/a5159c2c505cd9a87856877b3287aa0b88e4e0ba

On Wednesday, 9 August 2023 at 10:58:54 UTC+2 Stefan Björk wrote:

> 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/c891d83c-b2b5-4117-96eb-91ccc61871c2n%40googlegroups.com.

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

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

* Re: mainfontoptions: Numbers=OldStyle ignored when lang: sv
       [not found]         ` <c891d83c-b2b5-4117-96eb-91ccc61871c2n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2023-09-05  8:19           ` Stefan Björk
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Björk @ 2023-09-05  8:19 UTC (permalink / raw)
  To: pandoc-discuss


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

It does not work here with 3.1.7…

torsdag 17 augusti 2023 kl. 18:25:46 UTC+2 skrev Thomas Hodgson:

> It seems to work with 3.1.6.1:
>
> https://pandoc.org/try/?params=%7B%22text%22%3A%22---%5Cnlang%3A+sv%5Cnmainfont%3A+Minion+Pro%5Cnmainfontoptions%3A+Numbers%3DOldStyle%5Cn---%5Cn%5CnHello+world.%22%2C%22to%22%3A%22latex%22%2C%22from%22%3A%22markdown%22%2C%22standalone%22%3Atrue%2C%22embed-resources%22%3Afalse%2C%22table-of-contents%22%3Afalse%2C%22number-sections%22%3Afalse%2C%22citeproc%22%3Afalse%2C%22html-math-method%22%3A%22plain%22%2C%22wrap%22%3A%22auto%22%2C%22highlight-style%22%3Anull%2C%22files%22%3A%7B%7D%2C%22template%22%3Anull%7D
>
> I think it was fixed in this commit:
>
> https://github.com/jgm/pandoc/commit/a5159c2c505cd9a87856877b3287aa0b88e4e0ba
>
> On Wednesday, 9 August 2023 at 10:58:54 UTC+2 Stefan Björk wrote:
>
>> 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/dfd27e01-f013-4373-a11a-b356fc283805n%40googlegroups.com.

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

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

end of thread, other threads:[~2023-09-05  8:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-09  8:44 mainfontoptions: Numbers=OldStyle ignored when lang: sv Stefan Björk
     [not found] ` <30a732d6-b961-4d17-9fde-9e6ad2a5edf2n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-08-09  8:58   ` Stefan Björk
     [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

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