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: Wed, 27 Oct 2021 12:14:29 +0000

 ("t t" (make 'text))

("ù ù" (make 'text))


also worked using an italian keyboard (I wrote the form in the my-texmacs-init using Emacs for Windows, when I did that using TeXmacs instead, it saved another character instead of "ù"; but maybe any text editor will work, you don't have to use Emacs).


For the image, please let me experiment a bit. I feel that there is a chance.

Giovanni

Am 27.10.2021 um 01:42 schrieb vincent douce:
wonderful Giovanni thanks a lot

how would you do for \text (in math mode)

and how would you do tu use something like ù ù
(i can't manage to parameter this key, althought it would be useful because
never used in math mode)

also, sorry for diverging, i would really need a short cut to :
insert/image/draw image -> then fix the dimensions to something like 5cm x 5cm instead of 1par,
and fix to "free draw" by default instead of "point"

Vincent…


Le 25 oct. 2021 à 21:53, Giovanni Piredda <address@hidden> a écrit :

("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