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.