0

In my Lyx files I like using color boxes (added via Document->Settings->Modules->Boxes->Fancy Colored Boxes). A major drawback is that every time I wish to insert a color box I'm manually navigating to Insert->Custom Inset->Color Box, which makes the whole process very tedious and clunky. I read through the documentation of the Module 'colored boxes' (that can be found under Help->Specific Manuals->colored boxes) and found no reference for any shortcuts what so ever.
Is there a way to create a custom shortcut for inserting color boxes in LyX?
Ideally I would like to have a shortcut (or a macro for the fact of the matter) that inserts a regular color box environment, which is defined as follows:

\begin{tcolorbox} \end{tcolorbox} 

as well as a shortcut (or a macro) that inserts a colorbox environment with options which is defined:

\begin{tcolorbox}[] \end{tcolorbox} 

any help would me much appriciated. Thanks

3

1 Answer 1

0

Click View -> Messages Pane.

Now insert into the document your custom inset. Write down the name of the command LyX has just performed as listed in the messages pane. The command name is the string inside parenthesis.

Go to LyX Preferences and add a new keyboard shortcut for this command name.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.