Newcommand -- make symbol independent of font size
Bernt Lie
Bernt.Lie at usn.no
Sun Jul 30 09:15:58 UTC 2023
Thanks. OK -- then I have to switch to luatex... (I use MikTeX -- does that distribution contain luatex?)
Anyways, I'll defer it to when LyX 2.4 is released. At that stage, I also need to make sure that I can have Unicode fonts in computer listing.
BL
-----Original Message-----
From: lyx-users <lyx-users-bounces at lists.lyx.org> On Behalf Of Herbert Voss
Sent: Sunday, July 30, 2023 11:12 AM
To: lyx-users at lists.lyx.org
Subject: Re: Newcommand -- make symbol independent of font size
Am 30.07.23 um 10:35 schrieb Bernt Lie via lyx-users:
>
> I'm trying to define the "plimsoll" symbol (used to indicate
> thermodynamic standard condition). I found on the internet the
> following suggestion:
>
> \newcommand\plimsoll{{\circ\kern-0.495em-}}
>
> Seems like a good number ("0.495" -- I've also tried with "0.415")
> depends on the font size... Here is what it looks like in a Section
> heading (ok with “0.415”):
>
use lualatex and unicode-math. Write into the preamble
\usepackage{unicode-math}
\setmainfont{XITS-Regular.otf}
\setmathfont{XITSMath-Regular.otf}
\newcommand\plimsoll{\ensuremath{\scriptscriptstyle\circlehbar}}
then the following will work:
H${}^{\plimsoll}$ $G^{\plimsoll}$
\Huge
H${}^{\plimsoll}$ $G^{\plimsoll}$
Herbert
More information about the lyx-users
mailing list