> Well, you can write 'setFormat!' like: > > setFormat!(t : Type) : Void == > if t has FormatterCategory then > setFormat!(t pretend FormatterCategory)$TV > else > error "t is not of FormatterCategory" > > where TV is version of package accepting FormatterCategory. > With smart enough compiler the above would work without > 'pretend', but I am affraid that ATM 'pretend' is needed.
Thank you for this suggestion. >> Which way should I follow? > Well, usual solution chosen by others was to have something like > > setFormatMathJax() Well, yes, possible, but unflexible. Currently ")set output ... on" for different formats outputs always in the order given by i-output.boot. Using setFormats!([F1, F2, F3]) would allow the user to decide the order and also to compile his/her own domain of type FormatterCategory and use it. > There is 'systemCommand' in 'system.spad'. Arrrhhh... I always forget 'systemCommand'. Thanks. 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 on the web visit https://groups.google.com/d/msgid/fricas-devel/fbf50859-4d6e-1b19-3972-33241a4832a5%40hemmecke.org.
