LEd ⇒ Shortcuts and macros
Shortcuts and macros
In short, can I define my own shortcuts? If so, how?
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- black-wolf
- Posts: 7
- Joined: Wed Jul 02, 2008 10:58 pm
Shortcuts and macros
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