[pstricks] Arrows with Bezier Curves

Nitecki, Zbigniew H. Zbigniew.Nitecki at tufts.edu
Sun Jun 9 19:05:50 CEST 2013


I finally worked out how to use the pst-func.pro file, and can generate the arrows on Bezier.  However, there still appears to be some kind of bug: the arrow style -> seems to put the arrow pointing back, at the beginning of the curve, while the arrow style <- puts it pointing forward, at the end (so they seem to have the opposite effect of what one would expect).  The attached source code has taken account of this, putting the "reverse" arrow style on the relevant Bezier curves.


For your information, here is my console readout (I put in "list files")
### This is /usr/texbin/simpdftex, Version 20070809
### /usr/texbin/latex Beziertest.tex
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)
 restricted \write18 enabled.
entering extended mode
(./Beziertest.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman-x-2009-06-19, ngerman-x-2009-06-19, afrikaans, ancientgreek, ibycus, arabi
c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis
h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis
h, french, galician, german, ngerman, swissgerman, monogreek, greek, hungarian,
 icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, marathi, or
iya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian, kurmanji,
 lao, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk, pol
ish, portuguese, romanian, russian, sanskrit, serbian, serbianc, slovak, sloven
ian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian, welsh, loaded
.
(/usr/local/texlive/2011/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2011/texmf-dist/tex/latex/base/size11.clo))
(/usr/local/texlive/2011/texmf-dist/tex/latex/pstricks/pstricks.sty
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/local/texlive/2011/texmf-dist/tex/generic/oberdiek/ifluatex.sty)
(/usr/local/texlive/2011/texmf-dist/tex/generic/pstricks/pstricks.tex
(/usr/local/texlive/2011/texmf-dist/tex/generic/xkeyval/pst-xkey.tex
(/usr/local/texlive/2011/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/usr/local/texlive/2011/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/usr/local/texlive/2011/texmf-dist/tex/generic/xkeyval/keyval.tex))))
(/usr/local/texlive/2011/texmf-dist/tex/generic/pstricks/pst-fp.tex
`pst-fp' v0.05, 2010/01/17 (hv))
`PSTricks' v2.20  <2011/04/23> (tvz)
(/usr/local/texlive/2011/texmf-dist/tex/generic/pstricks/pstricks.con))
(/usr/local/texlive/2011/texmf-dist/tex/generic/pstricks/pst-fp.tex)
(/usr/local/texlive/2011/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/latexconfig/color.cfg)
(/usr/local/texlive/2011/texmf-dist/tex/latex/graphics/dvips.def)))
(/usr/local/texlive/2011/texmf-dist/tex/latex/pst-plot/pst-plot.sty
(/usr/local/texlive/2011/texmf-dist/tex/latex/xkeyval/pst-xkey.sty)
(/usr/local/texlive/2011/texmf-dist/tex/latex/multido/multido.sty
(/usr/local/texlive/2011/texmf-dist/tex/generic/multido/multido.tex
 v1.42, 2010/05/14 <tvz>))
(/usr/local/texlive/2011/texmf-dist/tex/generic/pst-plot/pst-plot.tex
 v1.29, 2011/04/13 (tvz,hv)))
(/usr/local/texlive/2011/texmf-dist/tex/latex/pst-math/pst-math.sty
(/usr/local/texlive/2011/texmf-dist/tex/generic/pst-math/pst-math.tex
`pst-math' v0.62 , (CJ,hv)))
(/usr/local/texlive/2011/texmf-dist/tex/latex/pstricks-add/pstricks-add.sty
(/usr/local/texlive/2011/texmf-dist/tex/generic/pstricks-add/pstricks-add.tex
(/usr/local/texlive/2011/texmf-dist/tex/generic/pst-node/pst-node.tex
 v1.16, 2011/05/05)
(/usr/local/texlive/2011/texmf-dist/tex/generic/pst-3d/pst-3d.tex
`PST-3d' v1.11, 2010/02/14 (tvz)) `pstricks-add' v3.51, 2011/02/02 (dr,hv)))
(/usr/local/texlive/2011/texmf-dist/tex/latex/pst-func/pst-func.sty
(/usr/local/texlive/2011/texmf-dist/tex/generic/pst-func/pst-func.tex
`PST-func' v0.72, 2011/04/23 (hv))) (./Beziertest.aux) [1] (./Beziertest.aux)

 *File List*
 article.cls    2007/10/19 v1.4h Standard LaTeX document class
  size11.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
pstricks.sty    2011/04/23 v0.50 LaTeX wrapper for `PSTricks' (RN,HV)
   ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)
ifluatex.sty    2010/03/01 v1.3 Provides the ifluatex switch (HO)
pstricks.tex    2011/04/23 v2.20 `PSTricks' (tvz,hv)
pst-xkey.tex    2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
 xkeyval.sty    2008/08/13 v2.6a package option processing (HA)
 xkeyval.tex    2008/08/13 v2.6a key=value parser (HA)
  pst-fp.tex    2011/04/23 v2.20 `PST-fp' (hv)
  xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)
   color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
   dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pst-plot.sty    2011/04/13 package wrapper for pst-plot.tex (hv)
pst-xkey.sty    2005/11/25 v1.6 package wrapper for pst-xkey.tex (HA)
 multido.sty    2004/05/17 package wrapper for PSTricks `multido.tex', (HV/RN)
 multido.tex    2010/05/14 v1.42 `multido' (tvz,hv)
pst-plot.tex    2011/04/13 1.29 `pst-plot' (tvz,hv)
pst-math.sty    2009/01/20 package wrapper for PSTricks pst-math.tex
pstricks-add.sty    2010/02/11 v. 0.14 package wrapper for pstricks-add.tex (hv
)
pstricks-add.tex    2011/02/02 v3.51 `PSTricks-add' (hv)
pst-func.sty    2010/06/21 package wrapper for pst-func.tex (hv)
pst-func.tex    2011/04/23 v0.72 `PST-func' (hv)
pst-func.pro    2009/06/21 v. 0.13, PostScript prologue file (hv)
 ***********

 )
Output written on Beziertest.dvi (1 page, 73740 bytes).
SyncTeX written on Beziertest.synctex.gz.
Transcript written on Beziertest.log.
### /usr/texbin/dvips -R -Poutline  -o /tmp/altpdflatex.38544-1370797221/Beziertest.ps Beziertest.dvi
This is dvips(k) 5.991 Copyright 2011 Radical Eye Software (www.radicaleye.com<http://www.radicaleye.com>)
' TeX output 2013.06.09:1300' -> /tmp/altpdflatex.38544-1370797221/Beziertest.ps
</usr/local/texlive/2011/texmf/dvips/base/tex.pro>
</usr/local/texlive/2011/texmf-dist/dvips/pstricks/pstricks.pro>
</usr/local/texlive/2011/texmf-dist/dvips/pstricks/pst-algparser.pro>
</usr/local/texlive/2011/texmf-dist/dvips/pstricks/pst-tools.pro>
</usr/local/texlive/2011/texmf-dist/dvips/pstricks/pst-dots.pro>
</usr/local/texlive/2011/texmf-dist/dvips/pst-math/pst-math.pro>
</usr/local/texlive/2011/texmf-dist/dvips/pst-node/pst-node.pro>
</usr/local/texlive/2011/texmf-dist/dvips/pst-3d/pst-3d.pro>
</usr/local/texlive/2011/texmf-dist/dvips/pstricks-add/pstricks-add.pro>
<./pst-func.pro></usr/local/texlive/2011/texmf/dvips/base/texps.pro>
</usr/local/texlive/2011/texmf/dvips/base/special.pro>
</usr/local/texlive/2011/texmf/dvips/base/color.pro>.
</usr/local/texlive/2011/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>
[1]
### ps2pdf13 /tmp/altpdflatex.38544-1370797221/Beziertest.ps /tmp/altpdflatex.38544-1370797221/Beziertest.pdf
### Copying/moving pdf file /tmp/altpdflatex.38544-1370797221/Beziertest.pdf to Beziertest.pdf
### Succesfully generated Beziertest.dvi and Beziertest.pdf




On Jun 3, 2013, at 3:32, Herbert Voss wrote:

Am 03.06.2013 00:24, schrieb Nitecki, Zbigniew H.:
(My apologies for the earlier, premature post).
I want to draw curves with specified asymptotes (for which I am using Bezier#), with directions shown by arrowheads.

The following source code

while (true) { provide _always_ complete example documents! }

\documentclass{article}
\usepackage{pst-func}
\begin{document}

\begin{pspicture}(0,0)(10,4.5)
\psline[linewidth=1.5pt, arrows=->](1,1)(1,4)
\psline[linestyle=dashed](2,1)(2,4)
\psline[linestyle=dashed](4,1)(4,4)
\psline[linewidth=1.5pt,arrows=->](5,4)(5,1)
\psBezier5[linewidth=1.5pt,arrows=->](1.1,4.0)(1.1,3.0)(1.5,1.5)(1.6,1)(1.8,1)(2,1)
\psline[linewidth=1.5pt](2,1)(4,1)
\psBezier5[linewidth=1.5pt](4,1)(4.2,1)(4.4,1)(4.5,1.5)(4.9,3)(4.9,4)
\end{pspicture}

\end{document}

works with the pst-func.pro from

http://texnik.dante.de/dvips/pst-func/

there was a bug with the end arrow.

Herbert


<Bildschirmfoto vom 2013-06-03 09:29:36.png>_______________________________________________
PSTricks mailing list
PSTricks at tug.org
http://tug.org/mailman/listinfo/pstricks
archive: http://www.tug.org/pipermail/pstricks/


Zbigniew Nitecki
Department of Mathematics
Tufts University
Medford, MA 02155

telephones:
Office    (617)627-3843
Dept.    (617)627-3234
Dept. fax    (617)627-3966
http://www.tufts.edu/~znitecki/




-------------- next part --------------
A non-text attachment was scrubbed...
Name: Beziertest.tex
Type: application/octet-stream
Size: 1533 bytes
Desc: Beziertest.tex
URL: <http://tug.org/pipermail/pstricks/attachments/20130609/094dd467/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Beziertest.pdf
Type: application/pdf
Size: 11887 bytes
Desc: Beziertest.pdf
URL: <http://tug.org/pipermail/pstricks/attachments/20130609/094dd467/attachment-0001.pdf>


More information about the PSTricks mailing list