[pstricks] pstricks example error

Herbert Voss LaTeX at zedat.fu-berlin.de
Sat Dec 10 18:55:42 CET 2005


Bernhard Walle wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Herbert Voss <LaTeX at zedat.fu-berlin.de> [2005-11-29]:
> 
>>Bernhard Walle wrote:
>>
>>
>>>Updating had no effect. The solution is simple: I wanted to test
>>>pst-pdf and didn't remove it.
>>>
>>>So: Without pst-pdf, all works fine.
>>>    With pst-pdf, it produces this errors.
>>>
>>>Can somebody of the pst-pdf maintainers check if it is a bug of pst-pdf?
>>
>>when you use pst-pdf, then you'll get a special dvi file which
>>cannot be used to get a ps with dvips. \usepackage[inactive]{pst-pdf}
>>is the correct setting if you want to run only latex
>>
>>http://tug.org/PSTricks/main.cgi?file=pdf/pdfoutput#pst-pdf
> 
> 
> Yes, that works.
> 
> But it doesn't work with the normal pst-pdf workflow (i.e. ps4pdf):
> 
>   /usr/bin/ps4pdf: command ps2pdf -dAutoRotatePages=/None bsp07-pics.ps
>   bsp07-pics.pdf returned with code 1 Error: /undefined in ArrowBc

ok, understood. With the tabular environment the code needs
some modifications. The following code worked for me with
ps4pdf

Herbert



\documentclass[12pt,a4paper]{article}
\usepackage{bigdelim}
\usepackage{multirow}
\usepackage{array}
\usepackage[table]{pstricks}
\usepackage{pst-node}
\usepackage{pst-pdf}
\PreviewEnvironment{tabular}
%
\definecolor{gray}{rgb}{0.9,0.9,0.9}

\parindent=0pt
\pagestyle{empty}
\begin{document}

\def\arraystretch{1.1}
\begin{tabular}{c|c|l}
\multicolumn{1}{c}{\textbf{Segment}} & 
\multicolumn{1}{c}{\textbf{Usage}} & \\
\multicolumn{1}{c}{\textbf{number}}  & \multicolumn{1}{c}{} 
   & \\\cline{2-2}
0x0  & \cellcolor{gray}Kernel text and data & \\\cline{2-2}
0x1  & \cellcolor{gray}User text            & \\\cline{2-2}
0x2  & \cellcolor{red}User stack, data      & \\\cline{2-2}
0x3  & \pnode{A}
      & \rdelim\}{10}{5.5cm}[\parbox{7.5cm}{Available for the user process\\
             \hspace*{0.25cm}\pnode{A2}if \texttt{shmat()}or 
\texttt{mmap()} is called}]\\\cline{2-2}
0x4  &  & \\\cline{2-2}
0x5  &  & \\\cline{2-2}
0x6  &  & \\\cline{2-2}
0x7  &  & \\\cline{2-2}
0x8  &  & \\\cline{2-2}
0x9  &  & \\\cline{2-2}
0xA  &  & \\\cline{2-2}
0xB  &  & \\\cline{2-2}
0xC  & \pnode{B}                            & \\\cline{2-2}
0xD  & \cellcolor{gray}Shared library text  & \\\cline{2-2}
0xE  &  & \pnode{B2}   \\\cline{2-2}
\ncline[arrows=->,linewidth=2pt,linecolor=blue,doubleline=true]{A}{B}%
\ncdiag[arrows=->,linewidth=1.25pt,linearc=0.2,%
     angleA=180,angleB=0,armA=0.2cm,nodesepB=-0.25cm,armB=0.625cm]{A2}{B2}%
0xF  & \cellcolor{gray}\footnotesize Per-process shared library data & 
\\\cline{2-2}
\end{tabular}

\end{document}





More information about the PSTricks mailing list