Previous Up Next

3.7.3  Translating graphical output to LATEX: graph2tex graph3d2tex

You can see all of your graphic output at once on the DispG screen, which you can bring up with the command DispG(). (This screen can be cleared with the command line command erase().) On the DispG screen there will be a Print menu; the PrintLaTeX print will give you several files DispG.tex, DispG.dvi, DispG.ps and DispG.png with the graphics in different formats. To save it without using the DispG() command you can use the graph2tex command.

The graph2tex command saves all current graphic output to a LATEX file.


Example.
Input:

graph2tex("myfile.tex")

results in a LATEX file named myfile.tex with the graphs. To save a three-dimensional graph, you can use the command graph3d2tex.


To save a single graph as a LATEX file, you can use the M menu to the right of the graph. Selecting MExport PrintPrint (with LaTeX) will save the current graph. You can also save a single graph by selecting that level, then use the menu item FileLaTeXLaTeX print selection. This method will save the graph in several formats; sessionname.tex, sessionname.dvi, sessionname.ps and sessionname.png. If the session has not been saved and named, the files will begin with sessionn for some integer n.


Previous Up Next