Document ClassesPSTricks Bug: \ncline cannot connect "tr" node to "Br" node.

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
fractal.generator
Posts: 66
Joined: Tue Oct 07, 2008 9:39 am

PSTricks Bug: \ncline cannot connect "tr" node to "Br" node.

Post by fractal.generator »

Dear all,

I want to connect "top right" (of a box) node and "Base right" node using the following code:

Code: Select all

\documentclass{book}
\usepackage{pst-node,xcolor,graphicx}
\pagestyle{empty}
\begin{document}
\psset{linewidth=0.01pt}
\scalebox{20}{%
	\rnode[tl]{tl}{%
		\rnode[Bl]{Bl}{%
			\rnode[tr]{tr}{%
				\rnode[Br]{Br}{%
					\psframebox[framesep=0]{\color{cyan}\TeX}}}}}
\SpecialCoor
\psset{dotscale=0.1,linecolor=red}
\psdot(tl)\uput{0.5pt}[135](tl){\scalebox{0.1}{tl}}
\psdot(Bl)\uput{0.5pt}[180](Bl){\scalebox{0.1}{Bl}}
\psdot(tr)\uput{0.5pt}[45](tr){\scalebox{0.1}{tr}}
\psdot(Br)\uput{0.5pt}[0](Br){\scalebox{0.1}{Br}}
\psset{nodesep=0,arrows=<->,arrowscale=0.2,linecolor=blue,linewidth=0.05pt}
\ncline{tl}{Bl}
\ncline{tr}{Br}
}
\end{document}
Unfortunately, the output is a bit strange as follows:

Image

The strange case is that the command

Code: Select all

\ncline{tr}{Br}
did not draw a line connecting tr and Br.

other information:

1. there is no problem for \ncline connecting "top left" and "Base left".
2. there is no problem for \ncarc connecting any two nodes.


Any suggestion for me?

Thank you in advance.


Hayashi Aikiyoshi

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
Post Reply