> Of course more sophisticated things are possible. For example it might
> be nice to have some way to pass (sub/super/...)-scripts to the
> frontend formatter for substitution into a LaTeX snippet, i.e. like
> arguments to a macro.


Do you mean something like FormatLaTeX implements?

setFormats!([FormatLaTeX, FormatMathJax])$JFriCASSupport

(4) -> a[3]^b

          b
   (4)  a
         3
--FORMAT:BEG:FormatLaTeX
\begin{fricasmath}{4}
\SUPER{\PAREN{\SUB{\SYMBOL{a}}{3}}}{\SYMBOL{b}}
\end{fricasmath}
--FORMAT:END:FormatLaTeX
--FORMAT:BEG:FormatMathJax
\[
{\left({a}_{3}\right)}^{b}
\]
--FORMAT:END:FormatMathJax

Define \SUB and \SUPER in any way you like. The stuff in fricasmath.sty
is just a default setting.

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/d5047684-4192-3271-3e44-641a6c410dc5%40hemmecke.org.

Reply via email to