Re: inline code and other formatting issues
Richard Kimberly Heck <[email protected]> Thu, 12 Feb 2026 11:10:03 -0500
| Newsgroups | gmane.editors.lyx.general |
|---|---|
| Message-ID | <[email protected]> |
On 2/11/26 9:41 PM, Ross Boylan wrote: > > > On Wed, Feb 11, 2026 at 5:03 PM Richard Kimberly Heck > <[email protected]> wrote: > > On 2/10/26 5:36 PM, Ross Boylan wrote: >> >> >> On Mon, Feb 9, 2026 at 4:37 PM Richard Kimberly Heck >> <[email protected]> wrote: >> >> >> You could probably write a module, similar to the ones in >> logicalmkup.module, that would wrap the text in whatever >> LaTeX you wanted. >> >> Riki >> >> That's interesting: that module already defines an `Inset Layout >> Flex` style for code. But I can't see any way to apply it from >> the GUI. > > Edit> Custom Text Styles> Code. You can bind "flex-insert Code" to > a key sequence if you wish, or make a toolbar button for it. But > that is basically just a font, like <code> in HTML. It doesn't do > syntax highlighting or anything. So you may want something a bit > more sophisticated. But it's probably just a matter of defining a > new LaTeX command that will do what you want, and then mimic the > Code definition as far as LyX is concerned. > > Riki > > The closest I can get is Edit | Text Style | Customized... The > resulting popup has no options for Code that I can see. There is a > (sub) box labelled `Semantic Markup` with check boxes for `Emphasized` > and `Noun` but not `Code`. I checked font families and languages as > well, but they don't have it. Maybe this is a LyX 2.3 vs 2.4 difference. Did you load the Logical Markup module? That's under Document> Settings> Modules. Riki -- lyx-users mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-users