[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] Math codes

From: Henri Lesourd
Subject: Re: [Texmacs-dev] Math codes
Date: Sat, 21 Apr 2007 23:10:20 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030821

Todd Wilson wrote:

Dear developers:

I sent the message quoted below to texmacs-users without any response.
However, instead of just resending it here, I want to ask a different
question.  I've skimmed through the source code and have found it quite
well-organized and readable, and I might have some time coming up that I
could use to contribute to the development myself.  Can someone outline
what I would have to do to *add* math codes to TeXmacs (which I assume
it doesn't already have)?  I found the file


which already seems to have most of what I would need in place;  I'd
just need to introduce something that could change the Type (or Class?)
of a symbol so that it would be rendered appropriately.  I'm guessing
something like

    <as-class|(class)|(character)>  or  <as-type|(type)|(character)>

Any ideas?

This is just a first guess : in texmath.syx, it seems that one defines
the typesetting characteristics of a group of symbols by means of
the 'Class' declaration, and then you use a 'Members' declarations
to add new already existing symbols to the group defined by means
of 'Class'.

This being said, I don't know if one can change this by means of
markup, like your '<as-class|...>'. Its rather likely that if the mechanism
for dynamically extending the functionnality of .syx files is not
documented, it doesn't exists (yet).

But in any case, one thing you can definitely do is to write macros
to obtain exactly what you want (but as far as I understand, you
rether meant using simple symbols and automatically recognizing
them as being this one particular structurally equivalent markup
depending on the context).

reply via email to

[Prev in Thread] Current Thread [Next in Thread]