Obviously, ")lib FOO" does more than I would have expected.
I realized that after
setFormat!(FormatMathJax)$JFriCASSupport
)lib FOO
there was no MathJax output anymore.
The reason seems to be that ")lib FOO" clears domain variables.
That, is of course problematic for the domain that switches on/off the
output in my new formatting framework.
Not over problematic since FormattedOutput might be handled otherwise in
the future, but still I was surprised that loading code for another
domain/package would have effect on other domains.
Ralf
==============================================
FormattedOutput: Exports == Implementation where
OFC ==> OutputFormatterCategory
Exports ==> OFC with
setFormats!: List OFC -> Void
++ \spad{setFormats!(l)} takes a list \spad{l} of formatters and
++ sets this for future output in a session.
Implementation ==> add
Rep ==> Record(out: OutputForm, step: Integer)
import from Rep
rep x ==> (x@%) pretend Rep
per x ==> (x@Rep) pretend %
formatters: Reference List OFC := ref empty()
setFormats!(l: List OFC): Void == setelt!(formatters, l)
convert(e: OutputForm, n: Integer): % == per [e, n]
display(x: %): Void ==
for F in deref formatters repeat
display(convert(rep(x).out, rep(x).step)$F)$F
--
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 on the web visit
https://groups.google.com/d/msgid/fricas-devel/0c5b2ec8-7d89-5004-2453-b5cc3ad21813%40hemmecke.org.