Andrey G. Grozin wrote:
> 
> Hello *,
> 
> After teaching fricas the basics of the TeXmacs protocol (using markers), 
> the next step is to create a new outpot format, say,
> 
> )set output texmacs on
> 
> It will write the output as an S-expression directly representing the 
> TeXmacs document tree. This is much more straightforward than going via 
> LaTeX.
> 
> OK, I can copy and rename, say, tex.spad.pamphlet, and edit its internals 
> to my hearts contents. But what else should be done, so that (a) this file 
> is compiled while building fricas; (b) )set output knows it; etc.?
>


Look at:

http://fricas.svn.sourceforge.net/viewvc/fricas?view=revision&revision=874

where HTML output was added.  Basically you need:

1) Add your code (as a new file or to an existing file)
2) in src/algebra/Makefile.in
  - add file to list of files containing sources (if you add new file)
  - add abbreviation to the list of files to compile
3) add compile command in src/algebra/boo-dom?.input or
   src/algebra/boo-pack?.input or src/algebra/boo-cat.input (as appropriate)
4) Add boot function to produce output and calls to it in 
   src/interp/i-output.boot
5) Add function to turn on/off your format in src/interp/setvars.boot
6) Add entry to list of options in src/interp/setvart.boot


1), 2) and 3) are general procedure to add new contructor to algebra.
4), 5) and 6) are specific to output format.

-- 
                              Waldek Hebisch
[email protected] 

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/fricas-devel?hl=en.

Reply via email to