Skip to Content.
Sympa Menu

texmacs-users - Re: shortcut for \choice

Subject: mailing-list for TeXmacs Users

List archive

Re: shortcut for \choice


Chronological Thread 
  • From: Giovanni Piredda <address@hidden>
  • To: address@hidden
  • Subject: Re: shortcut for \choice
  • Date: Thu, 4 Nov 2021 14:52:08 +0000

(kbd-map ("C C" (insert-go-to '(with "math-display" "true" (choice (tformat (table (row
(cell "")))))) (list 2 0 0 0 0) )))

(insert-go-to tree path) inserts tree and positions the cursor at position path in tree

To determine the path:

- count children starting from zero

- do not count the label of each child

e.g. in (cell "") "" is at position zero, while the label is obtained by the form tree-label; for example (tree-label (stree->tree '(cell ""))) returns cell


G.


On 04.11.21 13:48, vincent douce wrote:
hi
this works very fine
("C C" (insert '(with "math-display" "true" (choice (tformat (table (row
(cell ""))))))))
how would you adjust this code in order to have by default the cursor inside the \choice ?
for the moment i have to type on the keyboard : C C <- <-



i start having a very efficient system of shortcuts
i still have started to share it with you, but 1) i am not sure it interes someone for the moment and 2) it is still improvable.
But : As this system lies on my daily professional use of TeXmacs, i am totally sure that it may someday interess plenty of users ;
it makes TeXmacs very very more ergonomic to use.

Vincent

Le 28 oct. 2021 à 23:30, Giovanni Piredda <address@hidden> a écrit :

This worked


(kbd-map ("C C" (insert '(with "math-display" "true" (choice (tformat (table (row (cell "")))))))))


I wanted to write this in the message of the shortcut for the freehand drawing (https://lists.texmacs.org/wws/arc/texmacs-users/2021-10/msg00057.html), but I write this here. A strategy for finding these constructs is first building them with the editor, then "Copy to -> TeXmacs Scheme".

Of course in this way one obtains the "final form" of the markup, I did not try and experiment how to obtain the same construct starting from the more elegant expression (make 'choice).

Giovanni

Am 28.10.2021 um 22:38 schrieb vincent douce:
about displaystyle
how can i assign displaystyle by default to choices ?
i.e. i have put this in my-init-texmacs :

("C C" (make 'choice))

 what can i change in this line to get my choices (only them, not every formula) in displaystyle ?

Vincent

Le 27 oct. 2021 à 15:37, Jeroen Wouters <address@hidden> a écrit :

On Wed, 2021-10-27 at 15:10 +0200, vincent douce wrote:



I also forgot how to format inline math in "display size" (I
remember quite faintly that is is possible). Does anyone know?

G.


i select the equation, then press \ then type displaystyle then enter
it is quite long
and i dont know, for Marc, where to parameter when one wishes to have
displaystyle by default in inline equations

Vincent

The global display style can be set by assigning true to `math-display`
(i.e. <assign|math-display|true> in the preamble).

There is also the menu item "Format->Display style" for local changes
to the style.

Best,
Jeroen





  • shortcut for \choice, vincent douce, 11/04/2021
    • Re: shortcut for \choice, Giovanni Piredda, 11/04/2021

Archive powered by MHonArc 2.6.19.

Top of Page