Graphics, Figures & Tablespst-node - labeling line problem

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
bios
Posts: 2
Joined: Wed Jun 09, 2010 10:42 pm

pst-node - labeling line problem

Post by bios »

Hello,
I got a crazy bug with labeling lines with pst node.
Even in the example of the offical pstricks site the error appear

Code: Select all

\documentclass{article}
\usepackage{pstricks}
\usepackage{pstricks-add}

\begin{document}

\begin{center}
\begin{tabular}{p{2cm} c}
   \begin{psmatrix}[rowsep=0.8,colsep=0.4]
     [name=X1] & \\[-25pt]
               & \dianode[fillstyle=solid,fillcolor=red!30]{S}{Condition1?}\\[0pt]
               & \rnode{SA}{\psframebox[fillstyle=solid,fillcolor=blue!30]{do something}}\\[-25pt]
     [name=X2] & \\[0pt]
               & \dianode[fillstyle=solid,fillcolor=red!30]{R}{Condition2?}\\[-10pt]
     [name=Y2] &
   \end{psmatrix}%
       \psset{arrows=->,nodesep=0pt}
       \ncline{S}{SA}\nbput{Yes}
       \ncline{SA}{R}
     \psbrace[ref=r,rot=180,nodesepA=-8pt](X1)(X2){Stage 1}
     \psbrace[ref=r,rot=180,nodesepA=-8pt](X2)(Y2){\parbox{2cm}{Stage 2 very
       looooooong text}}
\end{tabular}
\end{center}

\end{document}
As you can see in the attachment the labels move the right at the bottom
Attachments
la.jpeg
la.jpeg (15.98 KiB) Viewed 3604 times
Last edited by bios on Thu Jun 10, 2010 8:32 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

pst-node - labeling line problem

Post by localghost »

Apart from some warnings your code works fine for me. Perhaps a matter of outdated packages. I obtained the file list below by adding the \listfiles command as very first line to your example.

Code: Select all

 *File List*
 article.cls    2007/10/19 v1.4h Standard LaTeX document class
  size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
pstricks-add.sty    2009/03/17 v. 0.13 package wrapper for pstricks-add.tex (hv)
pstricks.sty    2008/11/26 v0.40 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex    2009/05/19 v1.29 `PSTricks' (tvz,hv)
  xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)
   color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
   dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pstricks-add.tex    2009/10/12 v3.35 `PSTricks-add' (hv)
pst-xkey.tex    2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
 xkeyval.sty    2008/08/13 v2.6a package option processing (HA)
 xkeyval.tex    2008/08/13 v2.6a key=value parser (HA)
 ***********

Best regards and welcome to the board
Thorsten
bios
Posts: 2
Joined: Wed Jun 09, 2010 10:42 pm

pst-node - labeling line problem

Post by bios »

I just updated the whole pstricks files my new filelist is

Code: Select all

 *File List*
 article.cls    2007/10/19 v1.4h Standard LaTeX document class
  size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
pstricks.sty    2008/11/26 v0.40 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex    2010/06/06 v2.08 `PSTricks' (tvz,hv)
pst-xkey.tex    2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
 xkeyval.sty    2008/08/13 v2.6a package option processing (HA)
 xkeyval.tex    2008/08/13 v2.6a key=value parser (HA)
  pst-fp.tex    2010/06/06 v2.08 `PST-fp' (hv)
  xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)
   color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
   dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pstricks-add.sty    2010/02/11 v. 0.14 package wrapper for pstricks-add.tex (hv
)
pstricks-add.tex    2010/06/05 v3.40 `PSTricks-add' (hv)
This was not the problem.
The problem was that okular (ubuntu default viewer) couldnt read the ps file correctly

so the problem is fixed

thx anyway
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

pst-node - labeling line problem

Post by CrazyHorse »

bios wrote: This was not the problem.
The problem was that okular (ubuntu default viewer) couldnt read the ps file correctly

so the problem is fixed
you should view ps output only with ghostview or alternatively
the pdf output, when using okular

Herbert
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

pst-node - labeling line problem

Post by CrazyHorse »

localghost wrote:Apart from some warnings your code works fine for me. Perhaps a matter of outdated packages. I obtained the file list below by adding the \listfiles command as very first line to your example.

Code: Select all

 *File List*
 article.cls    2007/10/19 v1.4h Standard LaTeX document class
  size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
pstricks-add.sty    2009/03/17 v. 0.13 package wrapper for pstricks-add.tex (hv)
pstricks.sty    2008/11/26 v0.40 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex    2009/05/19 v1.29 `PSTricks' (tvz,hv)
  xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)
   color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
   dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pstricks-add.tex    2009/10/12 v3.35 `PSTricks-add' (hv)
pst-xkey.tex    2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
 xkeyval.sty    2008/08/13 v2.6a package option processing (HA)
 xkeyval.tex    2008/08/13 v2.6a key=value parser (HA)
 ***********
your packages are really out of date ... :)

Herbert
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

pst-node - labeling line problem

Post by localghost »

CrazyHorse wrote: [...] your packages are really out of date [...]
TeX Live 2009 packages from my Linux distribution. Since there is no »tlmgr«, updating all »pst-xxx« packages would be too time-consuming.
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

pst-node - labeling line problem

Post by CrazyHorse »

localghost wrote:
CrazyHorse wrote: [...] your packages are really out of date [...]
TeX Live 2009 packages from my Linux distribution. Since there is no »tlmgr«, updating all »pst-xxx« packages would be too time-consuming.
it is a "cp * .../texmf-dist/" when using
http://archiv.dante.de/~herbert/PSTricks-TDS.tgz

Herbert
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

pst-node - labeling line problem

Post by localghost »

CrazyHorse wrote: it is a "cp * .../texmf-dist/" when using
http://archiv.dante.de/~herbert/PSTricks-TDS.tgz [...]
Perhaps I will do so with the TeX tree in my home directory. Many thanks for that.
Post Reply