On Thu, Aug 11, 2016 at 11:43:49AM +0000, Bernt Lie wrote:
> Preliminaries: I use Windows 10 with LyX 2.2.1.
>
> I need to have some symbol to close Examples. Here is what I do:
>
> * I change the first paragraph in an example from Standard to
> Example. This allows me to number the example, and I can insert a
> marker/label so that I can refer to the example.
>
> * I choose to let the subsequent paragraphs within the example be
> standard paragraphs, so that I am not limited by the layout constraints
> within theorem-like elements.
>
> * I then need some symbol to indicate the end of an example (I would
> need that anyway, because LyX seems to typeset example "body text" in roman
> font, contrary to the default of "old LaTeX" - personally, I welcome this,
> because example text is often lengthy, and it looks bad with a lengthy text
> in italic...)
>
> * OK - the symbol I have chosen to close the example is: "Horizontal
> fill" + math symbol "\blacktriangle". This will push a black (upward
> pointing) triangle to the right margin. The triangle is supposed to point
> into the example...
>
> * Is there a way that I can give a *name* to this combination of
> "Horizontal fill" + "black triangle", so that I can easily insert it? I'd
> like to call it "endex" (end-of-example), or something like that. How can I
> insert this "user defined" combination ("fragment") into the LyX document
> with a simple keyboard short-cut?This link might be useful for figuring out how to automate things that you usually do with the GUI: http://tex.stackexchange.com/questions/208510/lyx-commands-to-insert-wysiwyg-horizontal-line-for-keyboard-shortcut/208531#208531 Then you can do them all together with "command-sequence". Scott
signature.asc
Description: PGP signature
