On 1/4/26 22:06, Waldek Hebisch wrote:
I have now commited a TeX parser.
I guess for the restricted TeX macros that appear in docstrings, your
idea might work.
Bigger goal for TeX would be to produce HTML/XML version of
FriCAS Book.
That task is very ambitious, but should also be possible.
I just tried to use pandoc to translate the book to html. That does not
work, because some commands rely on the change of catcode to treat their
argument in a verbatim fashion and pandoc cannot deal with catcode changes.
If I remember correctly, mostly the commands starting with "\spad..."
are of this type. Maybe, piping all the .tex files through some filter
that adds necessary escape sequences to the argument text might produce
something that pandoc can handle. Nevertheless, I have no experience
with pandoc. Is there someone on the list who has? In particular, we
probably would like a nice-looking HTML.
Ralf
--
You received this message because you are subscribed to the Google Groups "FriCAS -
computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/fricas-devel/f3f47792-0176-4e71-8611-943dc7e9c467%40hemmecke.org.