Subject: mailing-list for TeXmacs Users
List archive
From : Massimiliano Gubinelli <address@hidden>- To: Michele Cirillo <address@hidden>
- Cc: texmacs-users <address@hidden>
- Subject: Re: [TeXmacs] abbreviate a command name
- Date: Wed, 29 May 2019 17:24:07 +0200
Dear Michele,
yes, there should be a shortcut to insert an equation array, but indeed it seems broken also on my version of TeXmacs. I should investigate why...
Implementing a custom shortcut for your need is easy. The following scheme code does it:
(kbd-map (:mode in-math?) ("e q a ." (make 'eqnarray)))
This command means that when you type “eqa.” in math mode, then the tag \eqnarray is inserted at the cursor position.
You have to insert the code in a scheme session, but it will not persist from session to session. A way to make it permanent is to add it to your personal initialisation file which on Linux and MacOSX should be
~/.TeXmacs/progs/my-init-texmacs.scm
(I’m not sure what it is on Windows)
Best
Max
On 29. May 2019, at 16:09, Basile Audoly <address@hidden> wrote:Hi MicheleI am not sure what you call an alias. If you are looking for a shortcut (i.e. a key combination), it is available from the menu Insert > mathematics > Several equations.At least for MacOS, this shortcut is broken since the last version 1.99-9: I have reported the bug, and it will hopefully be restored in the next version,BasileLe 29 mai 2019 à 15:58, Michele Cirillo <address@hidden> a écrit :Hi all,how can I create an alias for the command "eqnarray", for example the shorter "eqa"?Thank you,Michele
- [TeXmacs] abbreviate a command name, Michele Cirillo, 05/29/2019
- Re: [TeXmacs] abbreviate a command name, Basile Audoly, 05/29/2019
- Re: [TeXmacs] abbreviate a command name, Massimiliano Gubinelli, 05/29/2019
- Re: [TeXmacs] abbreviate a command name, Basile Audoly, 05/29/2019
Archive powered by MHonArc 2.6.19.