[pstricks] psmatrix changing node style problem
Vincent McGarry
vmcgarry at austin.rr.com
Wed Oct 17 00:49:30 CEST 2007
I am having difficulty changing the node style at the beginning of a
row of a matrix. See the following:
%-------- This works:
\documentclass[11pt]{article}
\listfiles
\pagestyle{empty}
\usepackage{pstricks}
\usepackage{pst-node}
\usepackage{multido}
\newcommand*{\eu}{\ensuremath{\textnormal{e}}}
\begin{document}
$
\psmatrix[colsep=7em,rowsep=2.8ex,mcol=l]
& \left( \frac{1}{5}\right)^r & r=-1.4306\dots\\
& \left( \frac{3}{4}\right)^s & s=-8.0039\dots\\
& 2^t & t=3.3219\dots\\
& \eu^u & u=2.3025\dots\\
10 & [mnode=circle] \pi^v & v=2.0114\dots\\ <--- changing this node
works OK
& 5^w & w=1.4306\dots\\
& 10^x & x=1\\
& 25^y & y=0.7153\dots\\
& 100^z & z= 0.5\\
\endpsmatrix
$
\psset{nodesep=3pt,arrows=->}
\multido{\ia=1+1}{10}{
\ncline{5,1}{\ia,2}
\ncline{\ia,2}{\ia,3}
}
\end{document}
%------------------ This doesn't work---see message below:
\documentclass[11pt]{article}
\listfiles
\pagestyle{empty}
\usepackage{pstricks}
\usepackage{pst-node}
\usepackage{multido}
\newcommand*{\eu}{\ensuremath{\textnormal{e}}}
\begin{document}
$
\psmatrix[colsep=7em,rowsep=2.8ex,mcol=l]
& \left( \frac{1}{5}\right)^r & r=-1.4306\dots\\
& \left( \frac{3}{4}\right)^s & s=-8.0039\dots\\
& 2^t & t=3.3219\dots\\
& \eu^u & u=2.3025\dots\\
[mnode=circle] 10 & \pi^v & v=2.0114\dots\\ <--- changing this
node FAILS
& 5^w & w=1.4306\dots\\
& 10^x & x=1\\
& 25^y & y=0.7153\dots\\
& 100^z & z= 0.5\\
\endpsmatrix
$
\psset{nodesep=3pt,arrows=->}
\multido{\ia=1+1}{10}{
\ncline{5,1}{\ia,2}
\ncline{\ia,2}{\ia,3}
}
\end{document}
%------- This is from the log:
! Missing number, treated as zero.
<to be read again>
m
l.19 [mnode=circle]
10 & \pi^v & v=2.0114\dots\\
?
%------- And the file list.
*File List*
article.cls 2005/09/16 v1.4f Standard LaTeX document class
size11.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
pstricks.sty 2007/02/18 v0.33 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex 2007/09/10 v1.16a `PSTricks' (tvz)
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-node.sty 2006/01/01 package wrapper for pst-node.tex
pst-node.tex 2007/06/24 1.00 `pst-node' (tvz)
multido.sty 2004/05/17 package wrapper for PSTricks `multido.tex',
(HV/RN)
multido.tex 2004/05/18 v1.41 `multido' (tvz)
***********
More information about the PSTricks
mailing list