I think Andrey has a pretty good idea.
For the last few days I have been working with FriCAS in TeXmacs again
after not having looked at this option of a long time. A little more
than 10 years ago I converted a very useful Axiom beginner's tutorial
provided to me by Mike Dewar (originally prepared by NAG for the
commercial version of Axiom) to TeXmacs format.
http://download.savannah.gnu.org/releases/axiom/tutorial.pdf
(referenced here:
http://axiom-wiki.newsynthesis.org/TeXmacs )
It used the Axiom interface to generate the Axiom output. I tried this
again and it (almost) works with FriCAS in the most recent version of
TeXmacs but it will need a clean up. I also noticed that for some
reason the TeXmacs tutorial.tgz source file distributed on the
axiom-wiki is only incompletely converted to TeXmacs while the pdf
file above actually seems complete. I am not sure what happened to
the fully converted source file. If anyone has a complete version in
their personally archives, please let me know.
I think the new version of FriCAS in TeXmacs is a lot better than the
old although still missing a few very important features.
On 17 March 2014 22:40, Andrey G. Grozin <
A.G.G...@inp.nsk.su> wrote:
> ...
> Why not use TeXmacs as the main GUI? Currently,
> only mathemagix is doing so. It integrates with TeXmacs closely. For
> example, it has dynamic plots (and other dynamic objects). Say, I have a
> plot of a function depending on some auxilliary parameters somewhere in a
> TeXmacs window. I assign a new value to one of these parameters, and the
> plot immediately changes, without the need to re-run a plotting command.
> Such level of integration can be achieved in FriCAS, too, but this requires
> further work. ioHooks are invaluable for implementing interactions of FriCAS
> with external programs, such as TeXmacs and others.
>
I think it would be good to find out more about how to integrate
TeXmacs graphics with FriCAS. Where can I look to get started on
this? I tried using mathemagix for this but though I did manage to
compile it after some difficulty, I really cannot get it to do
anything more that add 1+1. :( It seems that the build system and
maybe also the source as distributed has some serious problems. Can
you suggest some other examples of plugins that create plot output in
TeXmacs?
> ...
> I'd say that making the user experience with TeXmacs (GUI) / FriCAS (engine)
> even better than it is today is very important. For example, TeXmacs can be
> an improved replacement for HyperDoc, with a modern and intuitive interface
> (HyperDoc definitely looks and feels old-fashioned). This can be achieved by
> doing only a moderate amount of work. This is especially important in
> today's world where programs without a nice and convenient GUI are
> considered old-fashioned, and are often not even considered by potential
> users.
>
Converting Hyperdoc htex files to TeXmacs format is probably quite
easy to achieve. Is there anyone who would like to join me in an
effort to do this?
> Andrey
I am not sure exactly what the best way might be for the FriCAS
project to support and encourage the further development of TeXmacs.
We can of course submit patches "up stream" to the TeXmacs project,
but perhaps we should consider other ways as well such as maintaining
a downstream version of the FriCAS plugin as part of the FriCAS
distribution?
Here is a patch to the FriCAS plugin that I just submitted to TeXmacs.
I have also attached a patch to the texmacs output formatter for
FriCAS to render the TeXmacs symbol <mapsto> for the FriCAS +-> arrow.
One problem that I am having right now is the display of SPAD compiler
output from the ')compile' command in TeXmacs. It seems like we may
not have the appropriate iohooks in place to demarc the output in such
a way that TeXmacs can synchronize and format it properly. Output
like this should also probably appear folded by default so as not to
clutter up the document. This sort of folding is done for example on
the axiom-wiki.
In fact it might be better to support the SPAD compiler in a more
integrated way as a new type of session in TeXmacs. A SPAD session
embedded in a TeXmacs document could be compiled instead of evaluated
as commands to the FriCAS interpreter. I understand that some work was
done on literate programming in TeXmacs and support for source code
syntax highlighting, etc. It might be nice to see how far we could go
with that but again I am lacking good information about this and/or
good examples.
Supporting folding is a nice idea but I am a bit unclear on how
folding affects sessions that are embedded in the folded sections.
When I am preparing a FriCAS page on the axiom-wiki for some specific
mathematically subject there are times when I really would like to
"hide" or otherwise relegate some preliminary FriCAS technicalities to
a kind of appendix. But of course for the proper execution of the
worksheet from the beginning it is necessary that these commands get
re-executed in the proper order. How could this be handled in a
TeXmacs-based FriCAS interface?
Regards,
Bill Page.
---------- Forwarded message ----------
From: Bill Page <
bill...@newsynthesis.org>
Date: 24 March 2014 11:40
Subject: Adding TeXmacs symbols to FriCAS math-mode input
To:
texmac...@texmacs.org, Texmacs-Dev <
texma...@gnu.org>
The following patch is based on similar coding in mupad-input.scm It
encodes all TeXmacs symbols as FriCAS identifiers by introducing
escapes in FriCAS symbol names in such a way