Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] mathematical input withing session (1.0.7.2)

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] mathematical input withing session (1.0.7.2)


Chronological Thread 
  • From: Maxim Nikulin <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] mathematical input withing session (1.0.7.2)
  • Date: Sat, 26 Sep 2009 17:50:51 +0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=KvXeD++gTThmaQqboVmSADewZTVqvzrFhnQGRg//+Y9pg0clzhOipu62c29K67yrdZ LLAlsw/QhpozpDMfEfGJhZ6LPu5HTrO3wZ/o0E2Z+8/HlzRIxPCdrinfaOMV7tWIpfi9 MXNbIHZp3cJP8fcgN+VkicgfuWh6wItdt/ZmM=

Joris van der Hoeven wrote:
On Sat, Sep 19, 2009 at 10:10:42PM +0700, Maxim Nikulin wrote:
It seems that the problem is in the progs/dynamic/session-edit.scm file.
The field-update-math function sets node to <folded-io-math> (<folded-io>) even if it is <input> or <input-math> in the case of last session line:

(define (field-update-math t)
(if (session-math-input?)
(when (tm-func? (tree-ref t :up) 'document)
(when (tree-in? t '(input))
(tree-assign-node! t 'input-math))
(when (tree-in? t '(folded-io))

...

Yes, this kind of fix should be fine.
You should consider the scheme 'cond' statement here.
If you create an account on Savannah, then you may apply this
to the SVN version.

Joris, I'm sorry. I'm still evaluating whether TeXmacs is suitable for me yet. Mathematics looks perfect but I don't realize the strength and weakness of its interface to e.g. maxima. I have no intention to participate actively in TeXmacs development, probably just a couple of patches.

As to 'cond' I have no idea. Actually I even don't see the reason to use 'when' instead of 'if'. It seems 'cond' can not be used withing 'tree-assign-node!' or at least I can not imagine what should be written in the 'else' clause. That's why an experienced developer must review my patches primary to commit.

--
Regards, Maxim Nikulin



Archive powered by MHonArc 2.6.19.

Top of Page