[pstricks] Empty space in figure due to \FP statements
Juergen Rose
rose at rz.uni-potsdam.de
Sun Oct 27 16:46:16 CET 2013
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_1.tex
Type: text/x-tex
Size: 1414 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20131027/253e8332/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: circles_3_1.tex
Type: text/x-tex
Size: 4943 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20131027/253e8332/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: circles_1.pdf
Type: application/pdf
Size: 30671 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20131027/253e8332/attachment-0002.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: circles_2.tex
Type: text/x-tex
Size: 1441 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20131027/253e8332/attachment-0007.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: circles_3_data.tex
Type: text/x-tex
Size: 1959 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20131027/253e8332/attachment-0008.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: circles_3_2.tex
Type: text/x-tex
Size: 2985 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20131027/253e8332/attachment-0009.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: circles_2.pdf
Type: application/pdf
Size: 29648 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20131027/253e8332/attachment-0003.pdf>
More information about the PSTricks
mailing list