Skip to Content.
Sympa Menu

texmacs-users - Re: shortcut for matrix

Subject: mailing-list for TeXmacs Users

List archive

Re: shortcut for matrix


Chronological Thread 
  • From: Giovanni Piredda <address@hidden>
  • To: address@hidden
  • Subject: Re: shortcut for matrix
  • Date: Mon, 25 Oct 2021 19:53:51 +0000

("m m" (make 'matrix)) as an entry of a kbd-map form works for me.

Pls let me know if this is what you are looking for.

G.

On 25.10.21 21:25, vincent douce wrote:
hi
here my init-texmacs.tm (end of mail)

i would like to add something for replacing m m by \matrix
and my t t does nt work...

would you have any idea ?

Vincent




;–––––––––––––––––

;–– raccourcis clavier perso ––

;–––––––––––––––––


(delayed (lazy-keyboard-force)

(kbd-map

(:mode in-math?)

;–––––– lettres doubles ––––––

("^ ^" (make-wide "^"))

("° °" (make-wide "<abovering>")) ; marche pas

("_ _" (make-wide-under "<wide-bar>"))

("a a" (make-above))

("A A" (make-wide "<invbreve>")); arcs de cercle

("b b" (make-below))

("B B" (make-wide "<bar>"))

("c c" (make-wide "<binom>"))

("d d" (make-wide "<dot>"))

("d d var" (make-wide "<ddot>"))

("d d var var" (make-wide "<dddot>"))

("d d var var var" (make-wide "<ddddot>"))

("f f" (make-fraction))

("f f var" (make 'tfrac))

("f f var var" (make 'dfrac))

("f f var var var" (make 'frac*))

("f f var var var var" (make 'cfrac))

("i i" (math-big-operator "int"))

("n n" (make-neg))

("o o" (make 'op)); sert à quoi ???

("p p" (math-big-operator "prod"))

("r r" (make-sqrt))

("r r var" (make-var-sqrt))

("s s" (math-big-operator "sum"))

("t t" (make-wide "<text>"))

("v v" (make-wide "<vect>"))


)

)


;–––––––––––––––––-

;––– export pdf automatisé –––

;–––––––––––––––––-


(define (propose-pdf-name)

(with name (propose-name-buffer)

(if (string-ends? name "_tm.tm")

(string-append (string-drop-right name 3) ".pdf"))))


(define (export-to-proposed-pdf)

(let ((pdf-name (propose-pdf-name)))

(wrapped-print-to-file pdf-name)))


(kbd-map

("M-e p" (export-to-proposed-pdf)))


;–––––––––––––––––

;– noms de couleur en deux mots –

;–––––––––––––––––


(assign "darkgreen" (macro "body" (with "color" "dark green" (arg "body"))))




Archive powered by MHonArc 2.6.19.

Top of Page