Some hints about output

Among the tools packages supported by TeXmacs environment here, some experiences have to be kept in mind:

  1. Maxima and Yacas are the powerful softwares for symbolic calculation;
  2. Gnuplot and other CAS's can used to plot the graphs in 2D, 3D and scientific data plots. But the Gnuplot is the best recommended software since the graph that it generates can be directly embedded into the worksheet in TeXmacs.
  3. Also there are many powerful softwares with numerical abilities in Linux world, for example: Octave, Lab, Scilab and R (check your "session options" or the TeXmacs_INSTALL/lib exec). But Scilab owns its "terminal session" which is not easily embedded into the TeXmacs, Octave is the best choice due to its full accessibility.
  4. Output format: Postscript format is the best choice as above mentioned. For the Windows user and not heard about this format, HTML format may be the suitable one. But for mathematical document, it is may be a bad news that directly output the HTML from TeXmacs is generally non-satisfied. If you want to generate HTML files, LaTeX2html maybe have some help. Consider to export LaTeX format from TeXmacs and use the following latex2html command to translate TeX file into HTML and picture files:

    > latex2html -nonavigation -split 0 filename.tex

    if you want only one HTML file with picture files without navigation icons. Suppose that there are plenty of pictures generated by CAS's in your TeXmacs file, some modifications have to be made by your hand. The reason is that no PS Tricks implement yet in latex2html and this is just the TeX package used by TeXmacs to make in-line Postscript graphs. First capture the pictures by picture capture program, e.g. ksnapshot or GIMP, by CAS's in another xterm and save it as eps format. Then edit the LaTeX file, removing all lines including "cat code ⋯" in presume part and adding the eps graphs as follows :

    \document[12pt]{article}
    \package[dvips]{graphics}
       ⋯
    % remove all the line beginning with "catcode"
       ⋯ 
    \begin{document}
       ⋯
    \begin{center}
      \resizebox{150mm}{!}{\includegraphics{picture.eps}}
    \end{center}
       ⋯
    \end{document}

    Mainly, add the graphics package and use \include graphics{} to put the graph. And use above latex2html commands to translate the contents. The directory named by its filename will be created with HTML file, and png files.

Of course, you can export the worksheet from TeXmacs into LaTeX format and remake the file by TeX system, for example: teTeX or MikTeX. Don't forget to put TeXmacs.sty in the search tree of TeX and execute texhash. This file can be found in the diretory of $TeXmacs\misc\latex. Then it will be no problem to LaTeX this tex file into PostScript or PDF format.

If you are interested in TeXmacs and CAS, more tm files can be found at:

http://math.cgu.edu.tw:8080/Calculus

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".