[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lyx-users
Subject:    Re: Lyx-Command for inserting Tex-Code
From:       Florian Rubach <florian.rubach () gmx ! de>
Date:       2009-03-24 21:15:50
Message-ID: 49C94D86.2070009 () gmx ! de
[Download RAW message or body]

arne12345 schrieb:
> Hi,
> I wondered if there is a Lyx-Command to insert a specific TEX-Code (e.g. \
> "\newline"). The "ert-insert"-command only opens an input box, but I would like to \
> create a toolbar for inserting frequently used tex-codes. Can I specify an argument \
> for "ert-insert"? Regards
> Arne

You can do this by using the LyX-Function "command-sequence". Your 
specific problem could be realised as:
bind "yourKey" "command-sequence ert insert; self-insert 
\newline;char-forward;"
if you don't want your cursor out of the ERT-Box afterwards, you have to 
omit the appended "char-forward;"


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic