[pstricks] nbput and ncput

Vinay Kanetkar vkanetka at uoguelph.ca
Wed Sep 1 15:40:18 CEST 2010


Hi Herbert:

I now have better understanding of error. 

On my home computer, I have pstricks with following
pstricks.tex    2008/06/17 v1.24 `PSTricks' (tvz)

On my office computer, I have most recent pstricks, Aug, 2010. 

On my home computer, both codes work fine. On my office computer,
Compiling works fine but when I preview, screen goes blank (black) and see several 
errors from Ghostscript.

Main difference in both code is \nbput (does not work in recent pstricks) 
and \ncput works in both computer.

Minimal codes are provided below.

==== Code works
\listfiles

\documentclass[style=fyma,
%mode=handout,nohandoutpagebreaks,nohandoutframes
display=slides,paper=letterpaper
]{powerdot}

\usepackage{graphics}
\usepackage{xcolor}

\usepackage{natbib}
\usepackage{bibentry}
\usepackage{pstricks}
\usepackage{pst-plot}
\usepackage{pstricks-add}


\def\parno{\par\noindent}
\newpsobject{showgrid}{psgrid}{subgriddiv=1,griddots=10,gridlabels=6pt}


\begin{document}

\begin{slide}[toc=,bm=]{Customer-Driven Pricing}
\begin{quote}
The demands of the market require pricing every product to reflect the customer's ``willingness-to-pay.''
\end{quote}
\vspace*{1cm}
\begin{center}
\psset{unit=1cm,linewidth=1.5pt,linecolor=brown}
\begin{pspicture}(0,0)(3,3)%\showgrid
\rput(0,3){\rnode{A}{\psframebox{Price Paid}}}
\rput(0,0){\rnode{B}{\psframebox{Willingness to Pay}}}
\ncangle[angleA=180,angleB=180,armA=1cm,armB=1cm,linearc=.5]{->}{A}{B}
\ncput*{?}
\ncangle[angleA=0,angleB=0,armA=1cm,armB=2cm,linearc=.5]{->}{B}{A}
\ncput*{?}
\end{pspicture}
\end{center}
\end{slide}
\end{document}

==== Code works with older pstricks

\listfiles

\documentclass[style=fyma,
%mode=handout,nohandoutpagebreaks,nohandoutframes
display=slides,paper=letterpaper
]{powerdot}

\usepackage{graphics}
\usepackage{xcolor}

\usepackage{natbib}
\usepackage{bibentry}
\usepackage{pstricks}
\usepackage{pst-plot}
\usepackage{pstricks-add}


\def\parno{\par\noindent}
\newpsobject{showgrid}{psgrid}{subgriddiv=1,griddots=10,gridlabels=6pt}


\begin{document}

\begin{slide}[toc=,bm=]{Customer-Driven Pricing}
\begin{quote}
The demands of the market require pricing every product to reflect the customer's ``willingness-to-pay.''
\end{quote}
\vspace*{1cm}
\begin{center}
\psset{unit=1cm,linewidth=1.5pt,linecolor=brown}
\begin{pspicture}(0,0)(3,3)%\showgrid
\rput(0,3){\rnode{A}{\psframebox{Price Paid}}}
\rput(0,0){\rnode{B}{\psframebox{Willingness to Pay}}}
\ncangle[angleA=180,angleB=180,armA=1cm,armB=1cm,linearc=.5]{->}{A}{B}
\nbput{?}
\ncangle[angleA=0,angleB=0,armA=1cm,armB=2cm,linearc=.5]{->}{B}{A}
\nbput{?}
\end{pspicture}
\end{center}
\end{slide}
\end{document}
 

Thanks for help.

Vinay

----- Original Message -----
From: "Herbert Voss" <Herbert.Voss at FU-Berlin.DE>
To: "Graphics with PSTricks" <pstricks at tug.org>
Sent: Wednesday, September 1, 2010 6:04:01 AM
Subject: Re: [pstricks] nbput and ncput

Am 31.08.2010 20:36, schrieb Vinay Kanetkar:

> I have examples below, first one works, second one gives error message. 
> Any fix will be appreciated?

and what kind of error message?

> ======= Working Example 

and what code chamges has the not working example?

Herbert
_______________________________________________
PSTricks mailing list
PSTricks at tug.org
http://tug.org/mailman/listinfo/pstricks
archive: http://www.tug.org/pipermail/pstricks/


More information about the PSTricks mailing list