[pstricks] Empty space in figure due to \FP statements
Hensh, Richard
hensh at math.msu.edu
Sun Oct 27 17:25:54 CET 2013
Juergen,
In the file circles_3_1.tex append a `%' at the end of each line that contains an \FP command. For example,
\FPset\radiusZd{0.9}%
\FPmul\diameter\radiusZd{2}%
\FPset\xCee{\radiusZd}%
...
See attached.
regards
rick
________________________________________
From: PSTricks [pstricks-bounces at tug.org] on behalf of Juergen Rose [rose at rz.uni-potsdam.de]
Sent: Sunday, October 27, 2013 11:46 AM
To: Graphics with PSTricks
Subject: [pstricks] Empty space in figure due to \FP statements
I use in the file circles_1.tex the following code:
\begin{figure}[ht!]
\begin{centering}
\fbox{
\input{circles_3_1.tex}
}
\caption{An array of circles}
\label{fig:circles_3}
\end{centering}
\end{figure}
At the begin of circles_3_1.tex there are several \FP statements in
front of a pspicture:
\FPset\radiusZd{0.9}
\FPmul\diameter\radiusZd{2}
\FPset\xCee{\radiusZd}
...
\FPmul\radiusZdq\radiusZd{0.25}
\begin{pspicture}[](\xpsmin,\ypsmin)(\xpsmax,\ypsmax)
\psaxes[]{->}(0,0)(\xmin,-\radiusZdh)(\xmax,\ymax)
...
\rput(\xgzl,\ygzl){$g_2$}
\end{pspicture}
In the resulting circles_1.pdf there is a lot of empty space at the left
side of the figure. If I split circles_3_1.tex in circles_3_data.tex and
circles_3_2.tex, where circles_3_data.tex contains the \FP statements
and circles_3_2.tex contains the pspicture and include both files in
circles_2.tex:
\input{circles_3_data.tex}
\begin{figure}[ht!]
\begin{centering}
\fbox{
\input{circles_3_2.tex}
}
\caption{An array of circles}
\label{fig:circles_3}
\end{centering}
\end{figure}
the figure looks as expected. It looks if the FP statements in circles_3_1.tex are
responsible for the right shift of pspicture to right side in circles_1.pdf.
I would like to have only one input file for one figure but also to avoid this right shift.
Is there any way?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: circles_3_1.tex
Type: application/x-tex
Size: 5116 bytes
Desc: circles_3_1.tex
URL: <http://tug.org/pipermail/pstricks/attachments/20131027/7e7c95ed/attachment.tex>
More information about the PSTricks
mailing list