Re: [XeTeX] Xetex, Latex3, unicode-math and Math font not found

2020-05-13 Thread Pierre Dupond
On Tue, 12 May 2020 18:07:37 +0200 Ulrike Fischer wrote: > Am Tue, 12 May 2020 16:00:25 +0200 schrieb Pierre Dupond: > > > > Expand the var. And better use a tl-var instead of str-var. the > comparision code of font spec don't expect a string there. > > \tl_const:Nn \c__test_MathFont_tl {Asana-Ma

Re: [XeTeX] Xetex, Latex3, unicode-math and Math font not found

2020-05-13 Thread Phelype Oleinik
Hi Pierre, On Wed, May 13, 2020 at 7:34 AM Pierre Dupond <76nem...@gmx.ch> wrote: > > \RequirePackage{expl3} > \ProvidesExplPackage {test} {2020-05-12} {1.0} > {to test some commands} > > \RequirePackage{fontspec} > \RequirePackage{unicode-math} > \tl_const:Nn \c__test_MathFon

Re: [XeTeX] Xetex, Latex3, unicode-math and Math font not found

2020-05-13 Thread Pierre Dupond
Hi Phelype, On Wed, 13 May 2020 09:08:03 -0300 Phelype Oleinik wrote: > \tl_use:N doesn't fully expand with one expansion step, so you have to > use e or x (f could also be used, but that might consume a space at the > head of the token list). > > With \exp_args:No \cmd { [ \tl_use:N \c_some_tl ]

Re: [XeTeX] Xetex, Latex3, unicode-math and Math font not found

2020-05-13 Thread David Carlisle
> \exp_args:Nxx \setmathfont > { \tl_use:N \c__test_MathFont_tl } > { [ \tl_use:N \c__test_MathFontSpec_tl ] } > > Thanks for the explanations but this form does not work the x expansion leaves in the braces so this ends up as \setmainfont{somefontname}{[expansionof \c_...]} but the braces

Re: [XeTeX] Xetex, Latex3, unicode-math and Math font not found

2020-05-13 Thread Phelype Oleinik
On Wed, May 13, 2020 at 10:22 AM Pierre Dupond <76nem...@gmx.ch> wrote: > > > \exp_args:Nxx \setmathfont > > { \tl_use:N \c__test_MathFont_tl } > > { [ \tl_use:N \c__test_MathFontSpec_tl ] } > > > Thanks for the explanations but this form does not work. Sorry, my mistake. The three lines above

Re: [XeTeX] Xetex, Latex3, unicode-math and Math font not found

2020-05-13 Thread Pierre Dupond
On Wed, 13 May 2020 10:32:48 -0300 Phelype Oleinik wrote: > On Wed, May 13, 2020 at 10:22 AM Pierre Dupond <76nem...@gmx.ch> wrote: > > > > > \exp_args:Nxx \setmathfont > > > { \tl_use:N \c__test_MathFont_tl } > > > { [ \tl_use:N \c__test_MathFontSpec_tl ] } > > > > > Thanks for the explanati