Re: latex and memory related
On Fri, May 21, 1999 at 12:25:52PM +0000, Shao Zhang wrote:
> Hi,
> I drew a simple box in xfig and used it to generated a latex file.
>
> The file looks like this:
>
> \documentclass{article}
> \begin{document}
>
> \setlength{\unitlength}{4144sp}%
> %
> \begingroup\makeatletter\ifx\SetFigFont\undefined%
> \gdef\SetFigFont#1#2#3#4#5{%
> \reset@font\fontsize{#1}{#2pt}%
> \fontfamily{#3}\fontseries{#4}\fontshape{#5}%
> \selectfont}%
> \fi\endgroup%
> \begin{picture}(3804,2679)(2104,-5338)
> \thinlines
> \special{ps: gsave 0 0 0 setrgbcolor}\put(2116,-5326){\framebox(3780,2655){}}
> \special{ps: gsave 0 0 0 setrgbcolor}\put(3331,-4786){\framebox(1395,1620){}}
> \end{picture}
>
> \end{document}
>
> But, the latex command used about 70MB ram when it process the file, and the dvips used just about the same ram. See below:
> 3916 shao 10 0 85788 83M 580 R 0 93.3 66.7 3:13 dvips
>
> Is this normal?? What is the recommanded way to export the stuff from xfig to latex??
Save your graphics as Encapsulated PostScript (eps).
Add
\usepackage{epsfig}
to the document's head.
Put your graphic with
\epsfig{file=<filename>}
I've heared of a latex package which can load a lot of common picture
formats. But I don't know its name. Sorry.
There is a disavantage in doing so. Text in your graphic is displayed not
in the latex font and/or in another size.
Armin
Reply to: