Skip to Content.
Sympa Menu

texmacs-users - Re: variations table

Subject: mailing-list for TeXmacs Users

List archive

Re: variations table


Chronological Thread 
  • From: vincent douce <address@hidden>
  • To: texmacs-users <address@hidden>
  • Subject: Re: variations table
  • Date: Sat, 9 Apr 2022 22:38:49 +0200

thank you Marc

your tool would be very interesting for me indeed to have "tableaux de variation" better presented
but by me tikz sessions do not work :
i dont know why

more generally, i appreciate your proposition that could help me at the occasion but i would like to point two things :

a) first it is long to do, even worst that opening an external windows as Mathtype or M.Word do, and for me it is really not in the philosophy of TeXmacs, as i understand it reading slowly the jolly book (that i like very much) ; also, for my personal use of TeXmacs as a tool for "zoom.us" maths lessons, i need flexiility and shortcuts, something immediat, as i have started to build it with my own shortcuts using double or triple letters

b) i use TeXmacs since 15 years now, i consider it as really interesting for french High Schools, but it could maybe be considered as useful, in the aim of promoting TeXmacs, to implement natively some kind of "tableau de variations" tool. You see how i am struggling with the help of  Giovanni, to create the macro ; and even the macro is not satisfying, and even Joris' advices for arrows here on a former post of the same topic seemed to me not really to work. I think that posting of french math teacher forums an email saying "we propose you a wyswyg maths editor with LaTeX quality that makes automatically "tableaux de variations"" would receive a lot of interest. I guess maybe the dev team has surely urgent tasks to solve, but one day or one other it would be good for TeXmacs, in my opinion, to endly create this tool

Vincent

Le 9 avr. 2022 à 17:36, marc lalaude-labayle <address@hidden> a écrit :

Hi to all,

Vincent, I do use the code generator here : http://math.et.info.free.fr/TikZ/TableauxVariations/index.html

I copy-cut the tikz code within a tikz session, I can modify it if necessary and the result is good enough for my needs.

Some details can be found here : http://math.et.info.free.fr/TikZ/Complements.html

Best regards,

Marc

Le sam. 9 avr. 2022 à 12:48, Giovanni Piredda <address@hidden> a écrit :
Hi Vincent,

I think I got it.

You have to


1) Use the keyword "insert"

2) Prepend the quote or quasiquote to the code you copy from TeXmacs

The quote is "l'apostrophe" :-)

The quasiquote is again "l'apostrophe", but written with the "Signe
prime réfléchi", please see
https://fr.wikipedia.org/wiki/Apostrophe_(typographie)#Signes_proches

They both tell Scheme that it must not interpret what it reads, but copy
it as it is ("quote it" in english).

Your code is


(kbd-map ("t r t" ((wide-tabular ...


It must be


(kbd-map ("t r t" (insert '(wide-tabular ...


In general

(kbd-map (shortcut (insert '***)))

where *** stands for the part you copied from TeXmacs

The quote is missing also on your definition of the "t t t" shortcut.


The keyword "insert" and the quote are essential.

Please let me know if this helps



====

Apart this there is a part of your my-init-texmacs. which you sent me
privately, that gives an error in the terminal, but then works, I do not
know why, it is

(assign "darkgreen" (macro "body" (with "color" "dark green" (arg "body"))))


Maybe I will ask for help on the forum or on the dev mailing list

===



Giovanni



On 08.04.22 22:21, vincent douce wrote:
> hi Giovanni
> i have the sensation to have done exactly what you suggest me to do
> but is doesn't work...
> (screenshot)
> ps on the screenshot there is not the end of the code it is too long
> for one page… but all ( and ) are good
>
>> Le 8 avr. 2022 à 12:33, Giovanni Piredda <address@hidden> a écrit :
>>
>>
>> On 08.04.22 11:01, vincent douce wrote:
>>> thanks Giovanni
>>>
>>> i had not well written my email : in fact i had copy pasted in with
>>> "paste from code source"
>>>
>>> now, with the same protocol, i have pasted in into a scheme session
>>> and then, out of the scheme session, in text mode, "ttt" works as
>>> well, for what it is programmed for : it gives a simple table
>>>
>>> now my questions :
>>> - how to parameter this into my-texmacs-init ?
>>
>>
>> I do not understand the meaning of the word "parameter" in this
>> question. But I guess: it may be that the answer is "copy the code
>> into my-texmacs-init".
>>
>>
>>
>>> - how to programm my need ? i have tried to follow your protocol,
>>> selected the configured table that i sent in the first message of
>>> this post as an attachment ; clicked "on copy to texmacs scheme" ;
>>> written in a scheme session :
>>>  (kbd-map "t t t" ***) replacing *** with the paste ;
>>> the code produces now error but "ttt" is still attributed to the
>>> simple table called by your code : did i have to write in a
>>> different way ?
>>
>>
>> pls. try (kbd-map ("t t t" ***))
>>
>>
>> G.
>>
>>
>>>
>>> Vincent
>>>
>>>> Le 7 avr. 2022 à 22:06, Giovanni Piredda <address@hidden> a écrit :
>>>>
>>>> Hi Vincent,
>>>>
>>>> can you try the code in a Scheme session instead than in the
>>>> initialization file? Insert->Session->Scheme
>>>>
>>>>
>>>> By the way
>>>>
>>>>
>>>>> i think i have typed it well
>>>>
>>>> You can copy-paste it :-) and in addition to this there is a
>>>> preference for "Program bracket matching", that appears only when
>>>> "complex actions" is set to "Through popup windows" (under
>>>> Edit->Preferences, tab "Other"), that highlights paired brackets of
>>>> Scheme code.
>>>>
>>>> Giovanni
>>>>
>>>>
>>>> On 07.04.22 21:51, vincent douce wrote:
>>>>> hi Giovanni
>>>>> thank you very much for the answer
>>>>> before trying to master the method you explain me and that i have
>>>>> since time difficulties to perform…
>>>>> i wanted to just try your code
>>>>> i think i have typed it well
>>>>> even if i dont understand how this code could make exactly the
>>>>> content of the .tm file i sent on this post (with the blank
>>>>> content of the table : 8 empty cells on each line…)
>>>>> i wanted to try it
>>>>> but the result, afeter of course quitting texmacs and starting it
>>>>> again, is that when pressing ttt, the 3rd occurence of "t" just
>>>>> cancels the first two so that the cursor remove 3 steps back as if
>>>>> i had written nothing, and no table appears on the .tm file…
>>>>>
>>>>> Vincent
>>>>>
>>>>>> Le 6 avr. 2022 à 22:40, Giovanni Piredda <address@hidden> a
>>>>>> écrit :
>>>>>>
>>>>>>
>>>>>> On 06.04.22 21:20, vincent douce wrote:
>>>>>>> ("t t t" (concat (block* (tformat (table (row (cell ""))))) ""))
>>>>>>
>>>>>>
>>>>>> Try
>>>>>>
>>>>>>
>>>>>> (kbd-map
>>>>>>   ("t t t" (insert  `(block* (document (tformat (table (row (cell
>>>>>> ""))))) ""))))
>>>>>>
>>>>>>
>>>>>>
>>>>>> ====
>>>>>>
>>>>>> The trick is to
>>>>>>
>>>>>> 1) use the "insert" keyword in the code
>>>>>>
>>>>>> 2) copy the code that composes the TeXmacs structure from TeXmacs
>>>>>> itself, with Copy to -> TeXmacs Scheme
>>>>>>
>>>>>> 3) apply the quote (') or quasiquote (`) in front of the code
>>>>>> that you copy, this indicates Scheme that it must not interpret
>>>>>> what it reads
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> - - - - - -
>>>>> LeMathoscope : cours de maths par zoom  et poésie des mathématiques :
>>>>> https://lemathoscope.com/newsletter-inscription/
>>>>>
>>>>>
>>>>>
>>>>>
>>>
>>>
>>>
>>>
>>> - - - - - -
>>> LeMathoscope : cours de maths par zoom  et poésie des mathématiques :
>>> https://lemathoscope.com/newsletter-inscription/
>>>
>>>
>>>
>>>
>
>
>
>
> - - - - - -
> LeMathoscope : cours de maths par zoom  et poésie des mathématiques :
> https://lemathoscope.com/newsletter-inscription/
>
>
>
>




- - - - - -
LeMathoscope : cours de maths par zoom  et poésie des mathématiques :




PNG image




Archive powered by MHonArc 2.6.24.

Top of Page