[pstricks] rotated label between arrows

Luís Lopes qed_texte at hotmail.com
Wed Feb 23 16:18:38 CET 2011


Dear All, 

With commands such as 

\pnode(-2.3,0){U}
\pnode(-2.3,3.4){V}
\ncline[linewidth=0.2pt]{<->}{U}{V}
\ncput*{$h_{_a}$}

I get the label at the right place. 

And with 

\rput[c]{57}(2.84,1.88){$\frac{r_{_b}-r_{_c}}{2}$}

the label is rotated. Fine. 

But if (U,V) is not a vertical/horizontal line I have difficulties 
placing the label in a rotated position. Please consider 

\pnode(0.94366,2.10268){U}
\pnode(5.78241,3.8267){V}
\ncline[linewidth=0.2pt]{<->}{U}{V}
\ncput*{$h_{_b}$}

Is ok. But to have the label rotated I did 

\pnode(0.94366,2.10268){U}

\pnode(5.78241,3.8267){V}

\ncline[linewidth=0.2pt]{<->}{U}{V}

\ncput*{\quad}
\rput[c]{27}(3.40,2.99){$h_{_b}$}

But this is not elegant (it is awful). 

How to proceed in such cases? 

Thank you. 

Luis 

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20110223/c049de65/attachment.html>


More information about the PSTricks mailing list