[pstricks] nbput and ncput

Vinay Kanetkar vkanetka at uoguelph.ca
Tue Aug 31 20:36:14 CEST 2010


Hi Everyone:

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

Vinay

======= Working Example 
\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}

\begin{slide}[toc=,bm=]{Customer-Driven Pricing - Does not work}
\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}


============= Log file of List of Files
*File List*
powerdot.cls    2005/12/06 v1.3 powerdot presentation class (HA,CE)
 xkeyval.sty    2008/08/13 v2.6a package option processing (HA)
 xkeyval.tex    2006/11/18 v2.5f key=value parser (HA)
 article.cls    2005/09/16 v1.4f Standard LaTeX document class
  size10.clo    2005/09/16 v1.4f Standard LaTeX file (size option)
  size11.clo    2005/09/16 v1.4f Standard LaTeX file (size option)
geometry.sty    2002/07/08 v3.2 Page Geometry
hyperref.sty    2007/02/07 v6.75r Hypertext links for LaTeX
  pd1enc.def    2007/02/07 v6.75r Hyperref: PDFDocEncoding definition (HO)
kvoptions.sty    2006/08/22 v2.4 Connects package keyval with LaTeX options (HO
)
     url.sty    2005/06/27  ver 3.2  Verb mode for urls, etc.
  hdvips.def    2007/02/07 v6.75r Hyperref driver for dvips
 pdfmark.def    2007/02/07 v6.75r Hyperref definitions for pdfmark specials
graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
graphics.sty    2006/02/20 v1.0o Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg
   dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pstricks.sty    2010/08/28 v0.46 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex    2010/08/27 v2.10 `PSTricks' (tvz,hv)
pst-xkey.tex    2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
  pst-fp.tex    2010/08/27 v2.10 `PST-fp' (hv)
  xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)
   color.cfg
enumitem.sty    2005/05/12 v1.1 Customized lists
verbatim.sty    2003/08/22 v1.5q LaTeX2e package for verbatim enhancements
powerdot-fyma.sty    2005/12/06 v1.2 fyma style (SA,HA)
pst-grad.sty    2004/07/15 package wrapper for pst-grad.tex (hv)
pst-grad.tex    2006/11/04 1.05 `pst-grad' (tvz)
  natbib.sty    2007/02/05 8.0 (PWD)
bibentry.sty    2000/06/20 1.4 (PWD)
pst-plot.sty    2010/01/22 package wrapper for pst-plot.tex
pst-plot.tex    2010/08/03 1.18 `pst-plot' (tvz,hv)
pstricks-add.sty    2010/02/11 v. 0.14 package wrapper for pstricks-add.tex (hv
)
pstricks-add.tex    2010/08/28 v3.44 `PSTricks-add' (hv)
  ot1phv.fd    2001/06/04 scalable font definitions for OT1/phv.
 nameref.sty    2006/12/27 v2.28 Cross-referencing by name of section
refcount.sty    2006/02/20 v3.0 Data extraction from references (HO)


More information about the PSTricks mailing list