Am Donnerstag, dem 03.03.2022 um 16:13 +0000 schrieb tush via lyx-
users:
> I want to create a custom inset for the listings package.
> 
> The LaTeX command for displayed code should be as follows:
> 
> \lstinline$code goes here$
> or
> \lstinline!code goes here!
> 
> ( Sometimes it is better to type the code inside $$ or !! instead of
> {} )
> 
> How can I tell lyx that ! or $ should be the command delimiters?

InsetLayout Flex:listing
    LyXType        custom
    LabelString    "lstlisting"
    LatexType      None
    Decoration     classic
    LeftDelim      \lstinline$
    RightDelim     $
    NeedProtect    0
End


HTH,
Jürgen

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to