Re: LaTeX cls class on LyX
On 2023-07-30 21:08, Bruno Schneider wrote: Hello, I'm having trouble using a LaTeX cls document class on LyX. I'm using LyX 2.3.7 and TeX Live 2022.20230122 on Debian. I've copied the cls file (classname.cls) into ~/texmf/tex/latex/classname and ran texhash. Now, I can compile the example .tex file on some other directory using pdflatex. Output is generated as intended. Then, I have asked LyX to reconfigure and restarted it. Still, when I go to "Document -> Settings -> Document Class" the class is not there. Please help. There is no automatic translation from LaTeX .cls files to LyX .layout document classes definition files. But it is understandable that you thought this is how it works since this is not transparent from the Document Class user interface. Maybe that could be improved by showing the .layout file names somewhere... Anyway, in order to make use of a .cls file in LyX, you would need to create a custom .layout file in your local "layouts" folder. You could start with a copy of a .layout file corresponding to a class that is similar to the one you are using, e.g. article.layout if it is an article style class. There are more explanations in the Customization Help file. It is a bit of a hard read though. But I am sure people on the list are happy to support you a bit. Best, Daniel -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
LaTeX cls class on LyX
Hello, I'm having trouble using a LaTeX cls document class on LyX. I'm using LyX 2.3.7 and TeX Live 2022.20230122 on Debian. I've copied the cls file (classname.cls) into ~/texmf/tex/latex/classname and ran texhash. Now, I can compile the example .tex file on some other directory using pdflatex. Output is generated as intended. Then, I have asked LyX to reconfigure and restarted it. Still, when I go to "Document -> Settings -> Document Class" the class is not there. Please help. -- Bruno Schneider -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Change of emphasis shortcut
On 2023-07-30 07:17, Richard Kimberly Heck wrote: On 7/29/23 22:43, Daniel wrote: On 2023-07-29 21:57, Richard Kimberly Heck wrote: On 7/29/23 13:51, Daniel wrote: On 2023-07-29 18:21, Richard Kimberly Heck wrote: On 7/24/23 14:35, Daniel wrote: On 2023-07-13 10:48, Daniel wrote: Hi! With LyX 2.4, the shortcut for toggling emphasis will be changed from Command+E to Command+Ctrl+E. I find that latter shortcut quite hard to use (there is a reason why Alt+Ctl+Delete are the "Security Keys") while emphasis is maybe my single most used function with a shortcut (after cut, copy, paste). So, this cumbersome shortcut is quite annoying to me. Of course I can easily change the shortcut myself via the settings and fix the problem for me. But I am wondering whether there is a better shortcut for this by default. The developers have not come up with ideas so far or do not see the problem as severe. So, I am wondering whether someone on the users list has an input on this. As a background: In LyX 2.4, the Command+E shortcut is currently assigned to set the search string on macOS. (A feature of macOS that some applications support but I was unaware of previously and I know no one else who uses it. I guess that is generally true and why it took so long until someone came up with introducing it in LyX.) Best, Daniel Looks like no one came up with a similarly good shortcut as the old one. That might not be too surprising. Unfortunately, it will leave macOS users in the dust with the next major version. I myself tend to set Ctrl-I for emphasis, which is what most applications use. Of course, they mean "Italic", not emphasis, but it's what I'm used to. Riki Interesting. And I like the idea of having cross-application shortcuts. However, on macOS Cmd-I is "inset-toggle". Is it not used for that on Linux by default? Yes, but I changed it locally long ago. I think the current assignment is mostly historical. Riki Would you mind sending me your user.bind file? Attached. I think some of these are probably out of date, actually. Riki Thanks. Okay, I see that you just switched inset-toggle and font-emph. Unfortunately, LyX 2.4 on macOS was changed to have a not well-known (and documented) macOS specific "copy feature" on Cmd+E, so this would not work either straight away... (I tried to argue against changing Cmd+E on macOS but didn't succeed on my own.) I never use the inset-toggle shortcut and maybe it is less commonly used than emphasis? So, maybe at least on macOS, inset-toggle could be changed to Cmd+Shift+E? Not ideal. But maybe better than the other way around. And on other systems Cmd+E and Cmd+I could be switched in order for people to be able to easily switch between systems. This is all a mayor annoyance since people will be used to these shortcuts. Daniel -- 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 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