Am 08.05.23 um 14:39 schrieb Udicoudco:
On Mon, May 8, 2023 at 3:14 PM Wolfgang Engelmann
<engelm...@uni-tuebingen.de> wrote:

where would
unicode-math and the \mathrm macro. > \mathrm
be set in LyX?

In Document->Settings->Fonts->Math (the non-TeX option loads
unicode-math). Regarding \mathrm,
it is a macro that you probably used in the body of the document.


and in the preamble I use

\usepackage{libertinus-otf}
\setmonofont[Scale=MatchLowercase,FakeStretch=0.88,Ligatures=ResetAll]{AnonymousPro}

Ah, I see! so that is the origin of the problem. It seems that
libertinus-otf loads unicode-math.
So either use \symrm instead of \mathrm, as mentioned in the previous
mail, or pass the nomath
option to libertinus-otf, but that would prevent libertinus-otf to
change the math font altogether.

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users

Herbert Voss was so kind to change the libertinus-otf.sty

It has now definitions for

  \newunicodechar{∂}{\delta}
  \newunicodechar{∆}{\Delta}
  \newunicodechar{π}{\pi}
  \newunicodechar{∏}{\Pi}
  \newunicodechar{µ}{\mu}
  \newunicodechar{Ω}{\Omega}
  \newunicodechar{∑}{\Sigma}
  \newunicodechar{Θ}{\Theta}
  \newunicodechar{θ}{\theta}
  \newunicodechar{ϑ}{\vartheta}


which can now be inserted directly via the keyboard. Further ones are definable via the LyX-preamble.

Wolfgang

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to