There is a way to define Shortcuts that are already preset, but it doesn't appear there is anyway to define your own shortcuts. E.g. I want a shortcut for \emphasis. The closest thing is the preset for \textit (which is by default undefined). But they are different. In an environment (e.g. theorem) in which all the letters are italicized, \textit doesn't do anything, whereas \emphasis does.
In short, can I define my own shortcuts? If so, how?
LEd ⇒ Shortcuts and macros
NEW: TikZ book now 40% off at Amazon.com for a short time.
- black-wolf
- Posts: 7
- Joined: Wed Jul 02, 2008 10:58 pm
Shortcuts and macros
Hello,
Yes you can define your own shortcuts
Imagine you want the comand \emph.
You go into View/Toolbars/Adjust (or Ctrl+T)
In there go into Command tab, and on user commands press the add sign.
Then you set Ident and name as emphasis and on text you write \emph{_}. Then on shortcut write for instance alt+e.
The other way is to define your command on a *.GD file. This file is to be saved in the Led installation folder under the folder Definitions.
(example.gd)
The underscore inside the brackets defines the place where the cursor will stand after the completion of the command.
Best regards
Yes you can define your own shortcuts
Imagine you want the comand \emph.
You go into View/Toolbars/Adjust (or Ctrl+T)
In there go into Command tab, and on user commands press the add sign.
Then you set Ident and name as emphasis and on text you write \emph{_}. Then on shortcut write for instance alt+e.
The other way is to define your command on a *.GD file. This file is to be saved in the Led installation folder under the folder Definitions.
(example.gd)
Code: Select all
[groupname]
MyCommand
[extensions]
txt, tex, sty, cls, lof, lot, toc, idx, glo, aux, bbl, clo
[options]
casesensitive=no
usethesaurus=yes
spellchecking=yes
wrapline=yes
[access]
level=2
[default]
yes
[commands\/bMyCommand/b\/bMyCommand/b]
30001==Insert.emph=emph==ins:\emph{_}
//30001==Insert.someothercommand=someothercommand==ins:\yourcomannd{_}
[shortcuts]
Insert.emph=Ctrl+e=\emph{_}
//Insert.someothercommand=shortcut=\yourcommand{_}
Best regards