Subject: mailing-list for TeXmacs Users
List archive
From : Giovanni Piredda <address@hidden>- To: address@hidden
- Subject: Re: Inline math with display format
- Date: Tue, 2 Nov 2021 18:03:22 +0000
Hi Vincent,
please try placing your construct inside an insert form and quoting it as well (I think markup, that is "what you copy from TeXmacs", needs to be passed verbatim to TeXmacs, so you need to use the Scheme quote operator)
(kbd-map ("T T" (insert '(concat (block* (tformat (table (row (cell ""))))) " "))))
worked for me.
I think the concat comes from selecting a blank space after the block, so you can substitute
(block* (tformat (table (row (cell "")))))
for
(concat (block* (tformat (table (row (cell ""))))) " ")
Other constructs, such as the "make" one, I take an example from one of your previous messages without checking it, do not need to be quoted I think because they "need to do something" (i.e. they will be executed) like "insert" needs to:
("C C" (make 'choice))
Giovanni
On 01.11.21 06:12, vincent douce wrote:
thanks a lot Giovanni that helps me so much
now, ctrlD let me draw what i want, this is very very fluid
also CC works well
i have tried your method to get a shortcut for centered blocks :
("T T" (concat (block* (tformat (table (row (cell ""))))) ""))
but it doesn"t work…
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
- Re: Inline math with display format, vincent douce, 11/01/2021
- Re: Inline math with display format, Giovanni Piredda, 11/02/2021
Archive powered by MHonArc 2.6.19.