mailing-list for TeXmacs Users

Text archives Help


shortcut for \choice


Chronological Thread 
  • From: vincent douce <address@hidden>
  • To: texmacs-users <address@hidden>
  • Subject: shortcut for \choice
  • Date: Thu, 4 Nov 2021 13:48:25 +0100

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






Archive powered by MHonArc 2.6.19.

Top of page