[pstricks] Empty space in figure due to \FP statements

Luis Sequeira lichinho at icloud.com
Sun Oct 27 20:12:03 CET 2013


On Oct 27, 2013, at 3:46 PM, pstricks-request at tug.org wrote:

> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Sun, 27 Oct 2013 16:46:16 +0100
> From: Juergen Rose <rose at rz.uni-potsdam.de>
> To: Graphics with PSTricks <pstricks at tug.org>
> Subject: [pstricks] Empty space in figure due to \FP statements
> Message-ID: <1382888776.16000.8.camel at impala.homenet>
> Content-Type: text/plain; charset="utf-8"
> 
> 
> 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?
> 

Not having a complete minimal example I can't say for sure, but it looks like one of those cases where an extra space at the end of a line is causing trouble.
Either post a complete minimal example, or start by trying placing a few comment signs ('%') at the end of lines.

Luis Sequeira




More information about the PSTricks mailing list