[pstricks] latest pstricks-add (v3.03) bug? pslinewidth not inherited in psbrace

jean-pierre moreau jpmoreau at gmail.com
Sun Jun 1 22:16:21 CEST 2008


I installed latest pstricks-add (v3.03), to use new options of its \psbrace.

( pstricks-add v3.03 + latest xkeyval + latest pstricks
  (all its components, for example dvips .pro files) in TeTeX of
  Slackware-11.0; all installed in current working dir; I checked
  that nearly every updated file needed is from current dir. )

Below latex source works, so installation seems Ok.
Except I can't use in \psbrace the \pslinewidth from the \pspicture
where I use this \psbrace. I think this is not the 'normal' way for
PSTricks.

Possibly the \pslinewidth inside \psbrace is kind of
PostScript rendering engine, since from code below I get
(in gv)
  'inside psbrace stuff \the\pslinewidth: 0.01 pt'.

LaTeX input showing the problem(?) of pslinewidh in psbrace of pstricks-add

--- The source .tex file I use ---

\documentclass[11pt, letterpaper]{article}
% color package loaded by pstricks-add, pstricks-add doc says so:
\usepackage{pstricks,pstricks-add}

\begin{document}

\noindent
The default LaTeX (NOT pstricks) linewidth (text lines) : \the\linewidth.\\
The default pstricks linewidth, \verb=\the\pslinewidth=: \the\pslinewidth.\\
\psset{linewidth=4pt}
Now changed to 4pt, \verb=\the\pslinewidth=: \the\pslinewidth.

\begin{figure}[ht]

\label{fig1-B}
\begin{center}
\begin{pspicture}(0,0)(12,4)
\put(3,3.5){{\scriptsize inside pspicture
$\backslash$the$\backslash$pslinewidth: \the\pslinewidth}}
%
% It seems that \pslinewidht is 0.01 pt INSIDE \pspbrace, no matter what it is
% outside \psbrace, since braceWidth is traced 1pt when
%  \psbrace[braceWidth=100\pslinewidth,...]...
\psbrace[braceWidth=1pt,ref=r](3,0)(3,3)%
        {\parbox{2.5cm}{\scriptsize braceWidth=\\ 1pt}}
\psbrace[braceWidth=100\pslinewidth,ref=r](6,0)(6,3)%
        {\parbox{2.5cm}{\scriptsize braceWidth=\\ 100$\backslash$pslinewidth}}
\psbrace[braceWidth=400\pslinewidth,ref=l](9,0)(9,3)%
        {\parbox{3cm}{\scriptsize braceWidth=\\\
                      400$\backslash$pslinewidth\\
                      \\
                      inside psbrace \emph{stuff}\\
                      $\backslash$the$\backslash$pslinewidth: \the\pslinewidth}}
\end{pspicture}
\end{center}
\end{figure}

Contrary to above \verb=\psbrace= of pstricks-add, here a simple
\verb=\psline= of
pstricks that shows \verb=\psline= inherits \verb=\pslinewidth=. Inside a
\verb=\pspicture=, 1st \verb=\psset= linewidth to 8 pt, then
\verb+\psline[linewidth=0.25\pslinewidth]...+:

\begin{pspicture}(0,0)(6,4)
\psset{linewidth=8pt,arrowscale=2 1}
\psline{*-*}(0,0)(3,3)
\psline[linewidth=0.25\pslinewidth]{*-*}(3,0)(6,3)
\end{pspicture}

\end{document}

--- ---

-- 
Jean-Pierre Moreau



More information about the PSTricks mailing list