Document ClassesWhat does "nodesep" means?

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

What does "nodesep" means?

Post by fractal.generator »

Dear all,


I noticed the nodesep option gives inconsistent results as shown in the following figure.

Image

Code: Select all

\documentclass{book}
\pagestyle{empty}
\usepackage{pstricks,pst-node}
\begin{document}
\pspicture[showgrid=true](9,5)
\SpecialCoor
\psset{nodesep=1}

\pnode(1,4){A}
\pnode(6,4){B}
\psdot(A)\psdot(B)
\ncline[linecolor=blue]{<->}{A}{B}% the line becomes shorter.

\rput(4,1){%
	\rnode[tr]{TR}{%
		\rnode[bl]{TL}{%		
			\psframebox[linecolor=red,framesep=0pt]{\Huge Mathenphy}}}}
				
\psdot(TL)\psdot(TR)
\ncline[linecolor=blue]{<->}{TL}{TR}% the line becomes longer.
\endpspicture
\end{document}


My question is "why the second line passing through the opposite corners is longer than the diagonal?"
In my mind, it should be shorter than the diagonal.


Thank you in advance.


regards,

Hayashi

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

Re: What does "nodesep" means?

Post by daleif »

might be better to ask on comp.text.tex, most of the pstricks people read that news group
Post Reply