3.12 Preview

Click on that button (the eye). The Apercu macro from the file interface.mac will be executed. The command defining that macro is:

                  [Export(pgf,[TmpPath,"file.pgf"]),  
                   Exec("pdflatex", ["-interaction=nonstopmode apercu.tex"],TmpPath,1),  
                   Exec(PdfReader,"apercu.pdf",TmpPath,0)  
                  ]

The current graphic is exported using pdf format in the file file.pgf , in the TeXgraph’s temp directory. Then we launch the comilation of the apercu.tex file using pdflatex, and finally the created file is opened: apercu.pdf with the pdf reader (defined in the configuration file, option Preferences/config file). The apercu.tex file looks like:

                  \documentclass[a4paper,12pt]{article}  
                  \usepackage[utf8]{inputenc}  
                  \usepackage[T1]{fontenc}  
                  \usepackage{lmodern}  
                  \usepackage{pgf,amssymb,amsmath}  
                  \usepackage{mathrsfs}  
                  \usepackage[margin=1cm,pdftex]{geometry}  
                  \pagestyle{empty}  
 
                  \begin{document}  
                             \begin{figure}  
                             \centering  
                             \input{file.pgf}%  
                             \end{figure}  
                  \end{document}

That file can, of course, be modified. First you have to remove the copy that can be found in TeXgraph’s temp directory ($HOME/.TeXgraph under linux et c:\tmp under windows), then you can modify the original in the TeXgraph directory.