#41 Bounding Box not correctly translated to pspicture environme

closed-accepted
nobody
5
2013-02-03
2008-12-05
Anonymous
No

Bounding Box not correctly translated to pspicture environment. One pair of coordinates is always set to zero.

The header is correct - the pspicture environment settings not.

Regards,
Stefan

Example:
%%Created by jPicEdt 1.4.1_03: mixed JPIC-XML/LaTeX format
%%Fri Dec 05 10:58:04 CET 2008
%%Begin JPIC-XML
%<?xml version="1.0" standalone="yes"?>
%<jpic x-min="16" x-max="16" y-min="64" y-max="64" auto-bounding="true">
%<text text-vert-align= "center-v"
% anchor-point= "(16,64)"
% fill-style= "none"
% text-frame= "noframe"
% text-hor-align= "center-h"
% >
%Test
%</text>
%</jpic>
%%End JPIC-XML
%PSTricks content-type (pstricks.sty package needed)
%Add \usepackage{pstricks} in the preamble of your LaTeX file
%You can rescale the whole picture (to 80% for instance) by using the command \def\JPicScale{0.8}
\ifx\JPicScale\undefined\def\JPicScale{1}\fi
\psset{unit=\JPicScale mm}
\psset{linewidth=0.3,dotsep=1,hatchwidth=0.3,hatchsep=1.5,shadowsize=1,dimen=middle}
\psset{dotsize=0.7 2.5,dotscale=1 1,fillcolor=black}
\psset{arrowsize=1 2,arrowlength=1,arrowinset=0.25,tbarsize=0.7 5,bracketlength=0.15,rbracketlength=0.15}
\begin{pspicture}(0,0)(16,64)
\rput(16,64){Test}
\end{pspicture}

Discussion

  • Vincent Belaïche

    I have updated the documentation with respect to this, in

    7.Setting preferences
    1. Picture scale

    jPicEdt does not know how much the text extends because there is no LaTeX compiler in jPicEdt.

    You have to place some blanks in some other text elements so that the picture has the correct bounding box.

    With this trick, the bug can be closed in my opinion.

     
  • Vincent Belaïche

    • status: open --> closed-accepted
     
  • Vincent Belaïche

    corrected in jpicedt/jpicedt/format/output/pstricks/PstricksFormatter.java v1.36

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks