Comment 5 for bug 595821

Revision history for this message
alejandro.erickson@gmail.com (alejandro-erickson) wrote : Re: ps+LaTeX wrong size when text outside other drawing objects

If in doubt, do what xfig does (since it is the program containing the feature we want). Here is a file in which the rendered text is much wider than the eps file. The .pstex_t is just pasted here and the .pstex (eps) file is attached. Point is that xfig solves this by making two pictures. It seems to decide the size of the text picture after typesetting it. This renders fine in my document.

\begin{picture}(0,0)%
\includegraphics{projection.pstex}%
\end{picture}%
\setlength{\unitlength}{2368sp}%
%
\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}(5355,2445)(961,-6973)
\put(976,-4711){\makebox(0,0)[lb]{\smash{{\SetFigFont{7}{8.4}{\familydefault}{\mddefault}{\updefault}{\color[rgb]{0,0,0}$(1,4,0),(3,2,0),(4,0,1),(3,2,0),(1,4,0),(1,4,0),(2,2,1),(2,2,1),(2,2,1),(2,2,1),(1,4,0)$}%
}}}}
\put(6301,-5161){\makebox(0,0)[lb]{\smash{{\SetFigFont{7}{8.4}{\familydefault}{\mddefault}{\updefault}{\color[rgb]{0,0,0}$(6,3,2)$}%
}}}}
\put(6301,-5536){\makebox(0,0)[lb]{\smash{{\SetFigFont{7}{8.4}{\familydefault}{\mddefault}{\updefault}{\color[rgb]{0,0,0}$(4,7,0)$}%
}}}}
\put(6301,-5986){\makebox(0,0)[lb]{\smash{{\SetFigFont{7}{8.4}{\familydefault}{\mddefault}{\updefault}{\color[rgb]{0,0,0}$(2,8,1)$}%
}}}}
\put(6301,-6361){\makebox(0,0)[lb]{\smash{{\SetFigFont{7}{8.4}{\familydefault}{\mddefault}{\updefault}{\color[rgb]{0,0,0}$(4,70)$}%
}}}}
\put(6301,-6811){\makebox(0,0)[lb]{\smash{{\SetFigFont{7}{8.4}{\familydefault}{\mddefault}{\updefault}{\color[rgb]{0,0,0}$(6,3,2)$}%
}}}}
\end{picture}%