[pstricks] psmatrix changing node style problem
Atsushi Tanabe
ttn13w30a9 at mx1.ttcn.ne.jp
Wed Oct 17 03:16:49 CEST 2007
Hello,
You can avoid its error by a following way.
But I don't know why the way doesn't cause error.
$
\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\\[0cm] %<------ add [0cm]
[mnode=circle] 10 & \pi^v & v=2.0114\dots\\
& 5^w & w=1.4306\dots\\
& 10^x & x=1\\
& 25^y & y=0.7153\dots\\
& 100^z & z= 0.5\\
\endpsmatrix
$
Thanks,
Atsushi Tanabe
----- Original Message -----
From: "Vincent McGarry" <vmcgarry at austin.rr.com>
To: "PSTricks PSTricks" <pstricks at tug.org>
Sent: Wednesday, October 17, 2007 7:49 AM
Subject: [pstricks] psmatrix changing node style problem
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)
***********
_______________________________________________
pstricks mailing list
pstricks at tug.org
http://tug.org/mailman/listinfo/pstricks
More information about the PSTricks
mailing list