Some hints about output |
Among the tools packages supported by TeXmacs environment here, some experiences have to be kept in mind:
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