Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Rightclick on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: Stefan Pinnow <MoG<ul@gm...>  20130109 06:59:37
Attachments:
smime.p7s

Hello Woody, > In a matrix, there are a serial of cells each of which is a node. I > hope the matrix can have a dashed boarder but cell notes have solid > ones. But as long as I specify something like: > \matrix[draw, dashed ...] { ... } > All the cell nodes in the matrix also get affected by the 'dashed' > option, it cause all those cell nodes also have dashed boarder, which > is not what I expected. > > How do I solve the problem? Thanks in advance! you can find the solution in the pgfmanual of v2.10 on page 202 /tikz/every matrix Find attached a minimal example. Best regards, Stefan %  minimal example  \documentclass{article} \usepackage{tikz} \usetikzlibrary{ matrix, } \begin{document} \begin{tikzpicture} % create matrix `A' \matrix [ matrix of nodes, every matrix/.style={ draw=red, dashed, }, ] (A) { aa & ba & ca & da \\ ab & bb & cb & db \\ }; \end{tikzpicture} \end{document} %  
From: Woody Wu <narkewoody@gm...>  20130110 02:48:18

On Wed, Jan 09, 2013 at 07:59:32AM +0100, Stefan Pinnow wrote: > Hello Woody, > > > In a matrix, there are a serial of cells each of which is a node. I > > hope the matrix can have a dashed boarder but cell notes have solid > > ones. But as long as I specify something like: > > \matrix[draw, dashed ...] { ... } > > All the cell nodes in the matrix also get affected by the 'dashed' > > option, it cause all those cell nodes also have dashed boarder, which > > is not what I expected. > > > > How do I solve the problem? Thanks in advance! > > you can find the solution in the pgfmanual of v2.10 on page 202 > /tikz/every matrix > > Find attached a minimal example. > > > Best regards, > Stefan > Hi, Stefan The example you gave is not showing the problem. I modified a little of it: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture} \matrix [ matrix of nodes, nodes={draw,rectangle}, every matrix/.style={draw=red, dashed,}, ] (a) { aa & ba & ca & da \\ ab & bb & cb & db \\ }; \end{tikzpicture} \end{document} By added the 'nodes={draw, rectangle}', I want to draw a box for each node inside the matrix, but I don't want these cell boxes dashed. If you run the example, you will find, every cell box dashed and red. Now you see the problem? Thanks. > > %  minimal example  > \documentclass{article} > \usepackage{tikz} > \usetikzlibrary{ > matrix, > } > \begin{document} > \begin{tikzpicture} > % create matrix `A' > \matrix [ > matrix of nodes, > every matrix/.style={ > draw=red, > dashed, > }, > ] (A) { > aa & ba & ca & da \\ > ab & bb & cb & db \\ > }; > \end{tikzpicture} > \end{document} > %  > >  > Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery > and much more. Keep your Java skills current with LearnJavaNow  > 200+ hours of stepbystep video tutorials by Java experts. > SALE $49.99 this month only  learn more at: > http://p.sf.net/sfu/learnmore_122612 > _______________________________________________ > pgfusers mailing list > pgfusers@... > https://lists.sourceforge.net/lists/listinfo/pgfusers  woody I can't go back to yesterday  because I was a different person then. 
From: Ignasi <nignasi@gm...>  20130110 08:51:16

On Thu, 10 Jan 2013 03:46:33 +0100, Woody Wu <narkewoody@...> wrote: > Hi, Stefan > > The example you gave is not showing the problem. I modified a little of > it: > > > \documentclass{article} > \usepackage{tikz} > \usetikzlibrary{matrix} > > \begin{document} > \begin{tikzpicture} > \matrix [ > matrix of nodes, > nodes={draw,rectangle}, > every matrix/.style={draw=red, dashed,}, > ] (a) { > aa & ba & ca & da \\ > ab & bb & cb & db \\ > }; > \end{tikzpicture} > \end{document} > > Add 'solid' to nodes options and they will be drawn with a solid line while the matrix is dashed. Ignasi 
From: Woody Wu <narkewoody@gm...>  20130110 15:41:19
Attachments:
Message as HTML

在 2013110 PM4:51，"Ignasi" <nignasi@...>写道： > > On Thu, 10 Jan 2013 03:46:33 +0100, Woody Wu <narkewoody@...> wrote: > >> Hi, Stefan >> >> The example you gave is not showing the problem. I modified a little of >> it: >> >> >> \documentclass{article} >> \usepackage{tikz} >> \usetikzlibrary{matrix} >> >> \begin{document} >> \begin{tikzpicture} >> \matrix [ >> matrix of nodes, >> nodes={draw,rectangle}, >> every matrix/.style={draw=red, dashed,}, >> ] (a) { >> aa & ba & ca & da \\ >> ab & bb & cb & db \\ >> }; >> \end{tikzpicture} >> \end{document} >> >> > Add 'solid' to nodes options and they will be drawn with a solid line while the matrix is dashed. I agree that 'solid' is a solution to the case. But how about if I want the nodes with no boards at all? > > > Ignasi 
From: Ignasi <nignasi@gm...>  20130110 15:53:20

nodesOn Thu, 10 Jan 2013 16:41:13 +0100, Woody Wu <narkewoody@...> wrote: > 在 2013110 PM4:51，"Ignasi" <nignasi@...>写道： >> >> On Thu, 10 Jan 2013 03:46:33 +0100, Woody Wu <narkewoody@...> >> wrote: >> >>> Hi, Stefan >>> >>> The example you gave is not showing the problem. I modified a little >>> of >>> it: >>> >>> >>> \documentclass{article} >>> \usepackage{tikz} >>> \usetikzlibrary{matrix} >>> >>> \begin{document} >>> \begin{tikzpicture} >>> \matrix [ >>> matrix of nodes, >>> nodes={draw,rectangle}, >>> every matrix/.style={draw=red, dashed,}, >>> ] (a) { >>> aa & ba & ca & da \\ >>> ab & bb & cb & db \\ >>> }; >>> \end{tikzpicture} >>> \end{document} >>> >>> >> Add 'solid' to nodes options and they will be drawn with a solid line > while the matrix is dashed. > > I agree that 'solid' is a solution to the case. But how about if I want > the > nodes with no boards at all? > nodes={draw=none} will 'draw' a border with no color to inside nodes. Ignasi 
From: Stefan Pinnow <MoG<ul@gm...>  20130110 18:27:45
Attachments:
smime.p7s

Hello Woody, >> I agree that 'solid' is a solution to the case. But how about if I >> want the nodes with no boards at all? >> > > nodes={draw=none} will 'draw' a border with no color to inside nodes. or just use my solution (which you have changed ...). Best regards, Stefan 
From: Woody Wu <narkewoody@gm...>  20130110 23:52:47
Attachments:
Message as HTML

在 2013110 PM11:53，"Ignasi" <nignasi@...>写道： > > nodesOn Thu, 10 Jan 2013 16:41:13 +0100, Woody Wu <narkewoody@...> wrote: > >> 在 2013110 PM4:51，"Ignasi" <nignasi@...>写道： >>> >>> >>> On Thu, 10 Jan 2013 03:46:33 +0100, Woody Wu <narkewoody@...> wrote: >>> >>>> Hi, Stefan >>>> >>>> The example you gave is not showing the problem. I modified a little of >>>> it: >>>> >>>> >>>> \documentclass{article} >>>> \usepackage{tikz} >>>> \usetikzlibrary{matrix} >>>> >>>> \begin{document} >>>> \begin{tikzpicture} >>>> \matrix [ >>>> matrix of nodes, >>>> nodes={draw,rectangle}, >>>> every matrix/.style={draw=red, dashed,}, >>>> ] (a) { >>>> aa & ba & ca & da \\ >>>> ab & bb & cb & db \\ >>>> }; >>>> \end{tikzpicture} >>>> \end{document} >>>> >>>> >>> Add 'solid' to nodes options and they will be drawn with a solid line >> >> while the matrix is dashed. >> >> I agree that 'solid' is a solution to the case. But how about if I want the >> nodes with no boards at all? >> > > nodes={draw=none} will 'draw' a border with no color to inside nodes. > > Ignasi Thanks! 
Sign up for the SourceForge newsletter:
No, thanks