Custom layout inset without arguments

Gaston Gloesener gaston.gloesener at
Sun Apr 19 18:23:17 UTC 2020

Riki wrote:

>This is bug #4066: There's at least some intention to try to figure it out before 2.4.0. For now, the workaround you mention is the only one available.




Thank you for this pointer. I am a bit scared by this bug report having 13 years and last update being 12 months ago, but let’s stay positive it will happen 😊 


Andrew wrote:


>But you can eliminate the red box from showing by closing the inset (click on the inset label to toggle open/closed).


Thanks for this workaround. I did actually notice this shortly after sending my email and must admit that it is already a big progress that I can at least get rid of the annoying  red box.


>Alternatively, there is a hybrid Latex/LyX solution, that avoids going to the menu to insert custom insets and uses keyboard shortcuts instead.

>1. Ensure instant preview is On (Tools > Preferences > Look & Feel >


>2. Assign a keyboard shortcut to preview-insert (Tools > Preferences > Editing > Shortcuts > Cursor, Mouse and Editing Functions). Now that printing directly from LyX is no longer supported the shortcut Ctrl+P is available.

>3. Enter in the preamble (Document > Settings > Latex Preamble)

>   \newcommand*{\projectName}{ My Project Name }

>   and click OK.


>To enter the project name in the document,

>4. insert a preview inset (Ctrl+P)

>5. insert an ert inset (Ctrl+L) inside the preview inset. On a QWERTY keyboard, the P and L? keys are diagonal neighbours so steps 4 & 5 involve holding the ctrl key down and tapping P and L in quick succession.

>6. enter \projectName in the ert inset

>7. move the cursor outside the insets. The preview does its magic and the project name is shown.


Thanks for this workaround. I will give it a try but I fear that keyboard shortcuts will not be an option in my case because I will risk to have quite a number of such “name” macros.


Thanks to both of you, very much appreciated!


-------------- next part --------------

An HTML attachment was scrubbed...

URL: <>




Message: 2

Date: Sun, 19 Apr 2020 03:00:09 +0200

From: Bernd <bernd.kappenberg at <mailto:bernd.kappenberg at> >

To: LyX Users List <lyx-users at <mailto:lyx-users at> >

Subject: Archaic Greek?

Message-ID: <2a28dde0-706e-ae44-7e5b-1785073bb831 at <mailto:2a28dde0-706e-ae44-7e5b-1785073bb831 at> >

Content-Type: text/plain; charset=utf-8; format=flowed


I am looking for an archaic Greek font. (Not sure it is the right forum...)


I downloaded one from MiKTeX ( and the whole archaic bundle, but I cannot get it to work -- maybe incompatible with Unicode?


Any alternative suggestions are welcome!


Kind regards,




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the lyx-users mailing list