[OS X TeX] pst-node

Michael Sharpe msharpe at ucsd.edu
Sun Jun 12 19:58:29 CEST 2016


> On Jun 12, 2016, at 10:49 AM, Nitecki, Zbigniew H. <Zbigniew.Nitecki at tufts.edu> wrote:
> 
> I want to set up drawing some braid diagrams using pst-node.  I am stymied by the very first step.
> According to the Latex Graphics Companion (2nd ed), p. 338, the command
> \cnodeput(x,y){name}{object} should put a node at (x,y), labelled “name”, and drawn as the text “object” enclosed in a circle.
> 
> I attempted a test using the source code
> 
> ******************************************************************************************************************
> \documentclass[11pt]{amsart}
> \usepackage{amssymb}
> \usepackage{pstricks}
> \usepackage{pst-node}
> 
> 
> \title{Braid Picture Test}
> \begin{document}
> \maketitle
> \begin{pspicture}(6,8)
> \cnodeput(1,1){A1}{$1$}
> \cnodeput(2,1){A2}{$1$}
> \cnodeput(3,1){A3}{$1$}
> \cnodeput(4,1){A4}{$1$}
> \cnodeput(5,1){A5}{$1$}
> \cnodeput(6,1){A6}{$1$}
> \cnodeput(7,1){A7}{$1$}
> \end{pspicture}
> \end{document}  
> ***********************************************************************************************************************
> 
> And my console reads
>> This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=pdflatex)
>>  restricted \write18 enabled.
>> entering extended mode
>> (./BraidPictureTest.tex
>> LaTeX2e <2014/05/01>
>> Babel <3.9k> and hyphenation patterns for 78 languages loaded.
>> (/usr/local/texlive/2014/texmf-dist/tex/latex/amscls/amsart.cls
>> Document Class: amsart 2009/07/02 v2.20.1
>> (/usr/local/texlive/2014/texmf-dist/tex/latex/amsmath/amsmath.sty
>> For additional information on amsmath, use the `?' option.
>> (/usr/local/texlive/2014/texmf-dist/tex/latex/amsmath/amstext.sty
>> (/usr/local/texlive/2014/texmf-dist/tex/latex/amsmath/amsgen.sty))
>> (/usr/local/texlive/2014/texmf-dist/tex/latex/amsmath/amsbsy.sty)
>> (/usr/local/texlive/2014/texmf-dist/tex/latex/amsmath/amsopn.sty))
>> (/usr/local/texlive/2014/texmf-dist/tex/latex/amsfonts/umsa.fd)
>> (/usr/local/texlive/2014/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
>> (/usr/local/texlive/2014/texmf-dist/tex/latex/amsfonts/amssymb.sty)
>> (/usr/local/texlive/2014/texmf-dist/tex/latex/pstricks/pstricks.sty
>> (/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
>> (/usr/local/texlive/2014/texmf-dist/tex/generic/pstricks/pstricks.tex
>> (/usr/local/texlive/2014/texmf-dist/tex/generic/xkeyval/pst-xkey.tex
>> (/usr/local/texlive/2014/texmf-dist/tex/latex/xkeyval/xkeyval.sty
>> (/usr/local/texlive/2014/texmf-dist/tex/generic/xkeyval/xkeyval.tex
>> (/usr/local/texlive/2014/texmf-dist/tex/generic/xkeyval/keyval.tex))))
>> (/usr/local/texlive/2014/texmf-dist/tex/generic/pstricks/pst-fp.tex
>> `pst-fp' v0.05, 2010/01/17 (hv))
>> (/usr/local/texlive/2014/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.te
>> x
>> (/usr/local/texlive/2014/texmf-dist/tex/generic/pgf/utilities/pgfutil-common-li
>> sts.tex))
>> (/usr/local/texlive/2014/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex
>> (/usr/local/texlive/2014/texmf-dist/tex/generic/pgf/utilities/pgfkeysfiltered.c
>> ode.tex))
>> (/usr/local/texlive/2014/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex
>> (/usr/local/texlive/2014/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex
>> (/usr/local/texlive/2014/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex
>> (/usr/local/texlive/2014/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex)
>> (/usr/local/texlive/2014/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex
>> )
>> (/usr/local/texlive/2014/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code.
>> tex
>> (/usr/local/texlive/2014/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic
>> .code.tex)
>> (/usr/local/texlive/2014/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigo
>> nometric.code.tex)
>> (/usr/local/texlive/2014/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.rando
>> m.code.tex)
>> (/usr/local/texlive/2014/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.compa
>> rison.code.tex)
>> (/usr/local/texlive/2014/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.base.
>> code.tex)
>> (/usr/local/texlive/2014/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.round
>> .code.tex)
>> (/usr/local/texlive/2014/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.misc.
>> code.tex)
>> (/usr/local/texlive/2014/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.integ
>> erarithmetics.code.tex)))
>> (/usr/local/texlive/2014/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.tex)
>> ))
>> `PSTricks' v2.54a  <2014/05/19> (tvz)
>> (/usr/local/texlive/2014/texmf-dist/tex/generic/pstricks/pstricks.con))
>> (/usr/local/texlive/2014/texmf-dist/tex/generic/pstricks/pst-fp.tex)
>> (/usr/local/texlive/2014/texmf-dist/tex/latex/xcolor/xcolor.sty
>> (/usr/local/texlive/2014/texmf-dist/tex/latex/latexconfig/color.cfg)
>> (/usr/local/texlive/2014/texmf-dist/tex/latex/pdftex-def/pdftex.def
>> (/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
>> (/usr/local/texlive/2014/texmf-dist/tex/generic/oberdiek/ltxcmds.sty))))
>> (/usr/local/texlive/2014/texmf-dist/tex/latex/pst-node/pst-node.sty
>> (/usr/local/texlive/2014/texmf-dist/tex/generic/pst-node/pst-node.tex
>>  v1.33, 2014/03/25)) (./BraidPictureTest.aux)
>> (/usr/local/texlive/2014/texmf-dist/tex/latex/amsfonts/umsa.fd)
>> (/usr/local/texlive/2014/texmf-dist/tex/latex/amsfonts/umsb.fd)
>> (/usr/local/texlive/2014/texmf-dist/tex/context/base/supp-pdf.mkii
>> [Loading MPS to PDF converter (version 2006.09.02).]
>> )
>> ./BraidPictureTest.tex:24: Undefined control sequence.
>> <recently read> \c at lor@to at ps 
>>                              
>> l.24 \cnodeput(1,1){A1}{$1$}
>>                              
> 
> 
> What am I doing wrong?
> 
> 
You have to process the file with latex+dvips, not pdflatex.

Michael


----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://www.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
                https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex



More information about the macostex-archives mailing list