[pstricks] pstricks-add psbrace: nodesep has no effect.
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Sat Jul 24 22:24:01 CEST 2010
Am 24.07.2010 21:59, schrieb Greg Hersh:
> In any case, I read the documentation again, more carefully, and realized that nodesepA and nodesepB has nothing to do with what I was trying to control: to make the braces starting not the center of the nodes A and B, but at some distance (just like what nodesep do for node connections, like ncline or ncarc). Is there any other parameter to control it?
\listfiles
\documentclass[12pt]{article}
\usepackage{pstricks-add}
\begin{document}
\begin{pspicture}(0,-2)(2,1) % original
\psline{<->}(0,0)(2,0)
\rput(0.45,0){$]$}
\rput(0.55,0){$($}
\rput(1.5,0){$]$}
\rput(0.5,-0.35){\rnode{A}{$a$}}
\rput(1.5,-0.35){\rnode{B}{$b$}}
\psbrace[braceWidth=0.5pt,
braceWidthInner=4pt,
braceWidthOuter=4pt,
nodesepA=-.5ex](A)(B){foo}
\end{pspicture}
\begin{pspicture}(0,-2)(2,1)
\psline{<->}(0,0)(2,0)
\rput(0.45,0){$]$}
\rput(0.55,0){$($}
\rput(1.5,0){$]$}
\rput(0.5,-0.35){\rnode{A}{$a$}}
\rput(1.5,-0.35){\rnode{B}{$b$}}
\psbrace[braceWidth=0.5pt,
braceWidthInner=4pt,
braceWidthOuter=4pt,
nodesepA=-.5ex]%
(!\psGetNodeCenter{A} A.x A.y .2 sub)%
(!\psGetNodeCenter{B} B.x B.y .2 sub){foo}
\end{pspicture}
\begin{pspicture}(0,-2)(2,1)
\psline{<->}(0,0)(2,0)
\rput(0.45,0){$]$}
\rput(0.55,0){$($}
\rput(1.5,0){$]$}
\rput(0.5,-0.35){\rnode[bc]{A}{$a$\vphantom{gt}}}
\rput(1.5,-0.35){\rnode[bc]{B}{$b$\vphantom{gt}}}
\psbrace[braceWidth=0.5pt,
braceWidthInner=4pt,
braceWidthOuter=4pt,
nodesepA=-.5ex](A)(B){foo}
\end{pspicture}
\end{document}
Herbert
More information about the PSTricks
mailing list