.. status: ok 4.5 TeX Format -------------- FriCAS can produce TeX output for your output formats:TeX @{TeX} expressions. TeX output format @{TeX} output format The output is produced using macros from the LaTeX document preparation system by Leslie Lamport\\cite{1}. The printed version of this book was produced using this formatter. To turn on TeX output formatting, issue this. set output tex .. spadInput :: )set output tex on .. spadMathAnswer Here is an example of its output. .. spadVerbatim :: matrix [ [i*x^i + j*%i*y^j for i in 1..2] for j in 3..4] .. spadVerbatim :: \\left[ \\begin{array}{cc} {{3   i   {y \\sp 3}}+x} &  {{3   i   {y \\sp 3}}+{2   {x \\sp 2}}} \\  {{4   i   {y \\sp 4}}+x} &  {{4   i   {y \\sp 4}}+{2   {x \\sp 2}}}  \\end{array} \\right] This formats as [3iy3+x3iy3+2x24iy4+x4iy4+2x2] To turn TeX output formatting off, issue )set output tex off. The LaTeX macros in the output generated by FriCAS are all standard except for the following definitions: .. spadVerbatim :: \\def\\csch{\\mathop csch\\nolimits} \\def\\erf{\\mathop erf\\nolimits} \\def\\zag#1#2{   {{ \\left. {#1} \\right|}    \\over    {\\left| {#2} \\right. }   } }