Subject: mailing-list for TeXmacs Users
List archive
From : vincent douce <address@hidden>- To: texmacs-users <address@hidden>
- Subject: Re: shortcut for matrix
- Date: Thu, 28 Oct 2021 07:01:16 +0200
wonderful thanks Giovanni
;––––––––––––––––––––––
;–– insertion de schémas (by Giovanni) ––
;––––––––––––––––––––––
(kbd-map (:mode in-text?) ("C-D" (insert '(with "gr-mode" (tuple "hand-edit" "line") "gr-frame" (tuple "scale" "1cm" (tuple "0.5gw" "0.5gh")) "gr-geometry" (tuple "geometry" "5cm" "5cm") (graphics "")))))
;–––––––––––––––––
;–– 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 'binom))
("B B" (make-wide "<bar>"))
;("c c" (make-wide "<binom>")) "cc" is necessary for arccos
("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"))
("m m" (make 'matrix))
("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>"))
("t t" (make 'text))
("ù ù" (make 'text))
("v v" (make-wide "<vect>"))
)
)
;–––––––––––––––––-
;––– export pdf automatisé –––
;–––––––––––––––––-
(define (propose-pdf-name)
(with name (propose-name-buffer)
(if (string-ends? name ".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"))))
Le 27 oct. 2021 à 14:14, Giovanni Piredda <address@hidden> a écrit :("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"))))
- shortcut for matrix, vincent douce, 10/25/2021
- Re: shortcut for matrix, Giovanni Piredda, 10/25/2021
- Re: shortcut for matrix, vincent douce, 10/27/2021
- Re: shortcut for matrix, Giovanni Piredda, 10/27/2021
- Re: shortcut for matrix, Giovanni Piredda, 10/27/2021
- Re: shortcut for matrix, vincent douce, 10/28/2021
- Re: shortcut for matrix, vincent douce, 10/28/2021
- Re: shortcut for matrix, Giovanni Piredda, 10/27/2021
- Re: shortcut for matrix, Giovanni Piredda, 10/27/2021
- Re: shortcut for matrix, vincent douce, 10/27/2021
- Re: shortcut for matrix, Giovanni Piredda, 10/25/2021
Archive powered by MHonArc 2.6.19.