\Header{pictex}{A PicTeX Graphics Driver}
\keyword{device}{pictex}
\begin{Description}\relax
This function produces graphics suitable for inclusion in TeX and
LaTeX documents.\end{Description}
\begin{Usage}
\begin{verbatim}
pictex(file = "Rplots.tex", width = 5, height = 4, debug = FALSE,
       bg = "white", fg = "black")
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{file}] the file where output will appear.
\item[\code{width}] The width of the plot in inches.
\item[\code{height}] the height of the plot in inches.
\item[\code{debug}] should debugging information be printed.
\item[\code{bg}] the background color for the plot.
\item[\code{fg}] the foreground color for the plot.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
This driver does not have any font metric information, so the use of
\code{\Link{plotmath}} is not supported.

Multiple plots will be placed as separate environments in the output file.\end{Details}
\begin{Author}\relax
This driver was provided by Valerio Aimale
\email{valerio@svpop.com.dist.unige.it}
of the Department of Internal Medicine, University of Genoa, Italy.\end{Author}
\begin{References}\relax
Knuth, D. E. (1984)
\emph{The TeXbook.}
Reading, MA: Addison-Wesley.

Lamport, L. (1994)
\emph{LATEX: A Document Preparation System.}
Reading, MA: Addison-Wesley.

Goossens, M., Mittelbach, F. and Samarin, A. (1994)
\emph{The LATEX Companion.}
Reading, MA: Addison-Wesley.\end{References}
\begin{SeeAlso}\relax
\code{\Link{postscript}}, \code{\Link{Devices}}.\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
pictex()
plot(1:11,(-5:5)^2, type='b', main="Simple Example Plot")
dev.off()
##--------------------
## Don't run: 
%% LaTeX Example
\documentclass{article}
\usepackage{pictex}
\begin{document}
%...
\begin{figure}[h]
  \centerline{\input{Rplots.tex}}
  \caption{}
\end{figure}
%...
\end{document}

%%-- TeX Example --
\input pictex
$$ \input Rplots.tex $$
## End Don't run
##--------------------
unlink("Rplots.tex")
\end{ExampleCode}
\end{Examples}

