Newcommand -- make symbol independent of font size
Herbert Voss
Herbert.Voss at fu-berlin.de
Sun Jul 30 09:11:38 UTC 2023
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto 2023-07-30 um 11.09.39.png
Type: image/png
Size: 9039 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20230730/ef9bf86e/attachment-0001.png>
More information about the lyx-users
mailing list