Re: Newcommand -- make symbol independent of font size
Am 30.07.23 um 11:15 schrieb Bernt Lie: Thanks. OK -- then I have to switch to luatex... (I use MikTeX -- does that distribution contain luatex?) sure 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. Package fancyvrb and environment Verbatim can handle all unicode characters. However, that does not mean that the used typewriter font also has all glyphs in the font. Herbert -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
RE: Newcommand -- make symbol independent of font size
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 On Behalf Of Herbert Voss Sent: Sunday, July 30, 2023 11:12 AM To: lyx-users@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 -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
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-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Newcommand -- make symbol independent of font size
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"): [cid:image001.png@01D9C2D1.91829D70] And here is what it looks like in displayed equation (ugly): [cid:image002.png@01D9C2D1.91829D70] * How can I make the definition so that it looks fine in any font size? BL -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users