Ralf Hemmecke wrote:
> 
> Look at the following session.
> 
> (1) -> mersenne n == 2^n - 1
>                                                                    Type:
> Void
> (2) -> )set output tex on
> (2) -> mersenne
> 
> \begin{fricasmath}{2}
> \SYMBOL{mersenne}\ \SYMBOL{n}\ \SYMBOL{==}\ \SUPER{2}{\SYMBOL{n}}-{1}%
> \end{fricasmath}
> 
>                        n
>    (2)  mersenne n == 2  - 1
>                                 Type: FunctionCalled(mersenne)
> 
> 
> Unfortunately, neither
> 
>   tex(mersenne)
> 
> nor
> 
>   tex(mersenne::OutputForm)
> 
> works to get a list of respective TeX strings as is printed in a session
> above. How can I turn mersenne into the respective object of type "List
> String"?

If you care about type, then

tex(coerce(mersenne)@OutputForm)

works.  But if you want the exact output that you got above, then
ATM there are no clean way.  Namely printing of functions is a
hack in the interpreter, avoiding normal way via OutputForm...


-- 
                              Waldek Hebisch
[email protected] 

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to