Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] abbreviate a command name

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] abbreviate a command name


Chronological Thread 
  • 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...

You can always define new shortcuts which suits your needs, for example check the nice tutorial in TeXmacs website:

http://www.texmacs.org/tmweb/documents/tutorials/TeXmacs-customization.pdf

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 Michele
I 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,
Basile

Le 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





Archive powered by MHonArc 2.6.19.

Top of Page