Andrej Kastrin | 5 May 2012 11:18
Picon
Favicon

Curve through a sequence of points with TikZ (and Metapost)

Hi,

I found Metapost best for drawing complex smooth curves (i.e., Bezier, splines), while you do not have to
directly specify Bezier control points. However, I need to use TikZ for my current project exclusively;
drawing (closed) curves in TikZ is tedious and very time-consuming task. So I combined the "power" of
Metapost with TikZ into the following workflow:
 - Draw desired closed curve in Metapost.
 - Open generated ps file in text editor and manually extract control points.
 - Paste extracted points into TikZ figure and modify PGF/TikZ expressions to draw curve.

Pasted below is a reproducible example to illustrate described approach.

%% Construct curve in Metapost
beginfig(1)
draw (0,0) .. (60,40) .. (40,90) .. (10,70) .. (30,50) .. cycle;
endfig;
end

%% Extract control points from postscript file
newpath 0 0 moveto
5.18756 -26.8353 60.36073 -18.40036 60 40 curveto
59.87714 59.889 57.33896 81.64203 40 90 curveto
22.39987 98.48387 4.72404 84.46368 10 70 curveto
13.38637 60.7165 26.35591 59.1351 30 50 curveto
39.19409 26.95198 -4.10555 21.23804 0 0 curveto closepath stroke

%% Create Tikz figure in pdfLaTeX
\documentclass{standalone}
\usepackage{tikz}
\begin{document}
(Continue reading)

Zarko F. Cucej | 6 May 2012 23:30
Picon

tikz in-line picture in caption

Hi!
as part of caption I like to describe some symbols drawn by TikZ used in 
picture (see minimal exmple below), but for any in-line tikz picture i 
receive error:

! Use of \pgf <at> arrowsdeclarecombine <at> star doesn't match its definition.
\pgfutil <at> ifnextchar ...1\def \pgfutil <at> reserved <at> a {

#2}\def\pgfutil <at> reserved <at> ...

in preamble of document I have also declared

\pgfarrowsdeclarecombine[\pgflinewidth]
{hastype}{hastype}{triangle 45}{triangle 45}{triangle 45}{triangle 45}

for needs in driving some diagrams (there work fine as well in in-line 
tikz picture in text). if I comment above definition, then i receive error:

! Argument of \tikz <at> style <at> parseA has an extra }.

I wonder, if caption doesn't allow to use TikZ in-line pictures in 
caption text at all or I doing something wrong? Do anyone know a 
solution for my problem?

regards,     Zarko

minimal example:
     \documentclass{memoir}

     \usepackage{TikZ}
(Continue reading)

Mark Wibrow | 7 May 2012 07:52
Picon

Re: tikz in-line picture in caption

Hi,

I can't remember the exact reason why this happens, but the following 
fixes it:

\def\thistikzcaption{\tikz[arrow-1]\node[A=white]{};}

\caption{Sparse time-base. Sparse events \protect\thistikzcaption\ are 
only allowed to occur within the intervals $\pi$}

although I'm not sure what scope the protected macro should have (it 
works in this case with the local definition just before \caption).

Regards

Mark
On 06/05/12 22:30, Zarko F. Cucej wrote:
> \documentclass{memoir}
>
>       \usepackage{TikZ}
>       \usetikzlibrary{arrows,shapes}
>       \tikzset{arrow-1/.style = {
> A/.style = {shape=single arrow, sharp corners, draw, thin, rotate=-90,
>               fill=##1,
>               minimum height=5mm, minimum width=3mm, single arrow head
> extend=0.5mm,
>               inner sep=1pt, anchor=east},
>                                   }
>               }
> \pgfarrowsdeclarecombine[\pgflinewidth]
(Continue reading)

Corentin Henry | 8 May 2012 07:53
Picon

How to create new node shapes ?

Hi,

I'd like to draw TCP/IP networks with Tikz, so I need nodes such as routers, swithches, hubs etc.
I can draw it each time I need it, but what would be cool is a syntax like

\node[router];
\node[switch];

etc.

Anyone know how to do this ? I saw a similar discussion here : http://comments.gmane.org/gmane.comp.tex.pgf.user/701,
but as I begin with Tikz I didn't really understood, and I'm not even sure this is exacly what I want.

Regards,

Corentin

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users
Ignasi | 8 May 2012 09:19
Picon
Gravatar

Re: How to create new node shapes ?

On Tue, 08 May 2012 07:53:34 +0200, Corentin Henry  
<corentinhenry <at> gmail.com> wrote:

> Hi,
>
> I'd like to draw TCP/IP networks with Tikz, so I need nodes such as
> routers, swithches, hubs etc.
> I can draw it each time I need it, but what would be cool is a syntax  
> like
>
> \node[router];
> \node[switch];
>
> etc.
>
> Anyone know how to do this ? I saw a similar discussion here :
> http://comments.gmane.org/gmane.comp.tex.pgf.user/701,
> but as I begin with Tikz I didn't really understood, and I'm not even
> sure this is exacly what I want.
>
> Regards,
>
> Corentin

I also would like to have such kind of symbols. While waiting for it, you  
can
look at

http://tex.stackexchange.com/questions/22837/cisco-icons-for-network-diagrams

There you will find a partial solution using cico icons converted to  
eps/pdf and TiKZ.

Best regards,

	Ignasi

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Mark Wibrow | 8 May 2012 09:58
Picon

Re: How to create new node shapes ?

Hi,

With a teensy hack (to cancel code executed at the beginning of nodes - 
which I think should probably exist as an option anyway) one can embed 
previously defined code inside a node a bit like this:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes.symbols}
\begin{document}

\makeatletter
\tikzset{
	symbol/.style={
		execute at begin node={
			\begin{tikzpicture}
				\def\tikz <at> atbegin <at> node{}
				\tikzset{symbols/#1}
			\end{tikzpicture}
		}	
	}
}
\makeatother

\tikzset{
	symbol lines/.style={
		very thick,
		line join=round,
	},
}
\colorlet{symbol fill}{black!50}
\colorlet{symbol draw}{black!25}

\tikzset{symbols/.cd,
	internet/.code={
		\node [cloud, cloud puffs=9, cloud puff arc=110,
		minimum width=2.5cm, minimum height=1.5cm, fill=symbol fill, 
draw=symbol draw]{};
	},
	cable modem/.code={
		\path [fill=symbol fill, draw=symbol draw, symbol lines]
			(0,0) -- (0,0.5) -- (0.5,1) -- (1.75,1) -- (1.75,0.5) -- (1.25,0) -- 
cycle;
		\path [draw=symbol draw, symbol lines]
		(0,0.5) -- (1.25,0.5) -- (1.75,1) (1.25,0.5) -- (1.25,0);
		\path [draw=symbol draw, line width=0.1cm, stealth-stealth, 
fill=symbol draw]
		(0.0625,0.25) -- (0.875,0.25);
		\path [draw=symbol draw, line width=0.1cm, -stealth, fill=symbol draw, 
line join=rect]
		(1,0.25) -- ++(-0.1, 0);
	}
}
\begin{tikzpicture}[level distance=2cm, every child/.style={symbol lines}]
	\node [symbol=internet, label=center:Internet] {}
		child { node [symbol=cable modem, label=below:cable modem] {} };
\end{tikzpicture}

\end{document}

Hope this helps

Mark
On 08/05/12 08:19, Ignasi wrote:
> On Tue, 08 May 2012 07:53:34 +0200, Corentin Henry
> <corentinhenry <at> gmail.com>  wrote:
>
>> Hi,
>>
>> I'd like to draw TCP/IP networks with Tikz, so I need nodes such as
>> routers, swithches, hubs etc.
>> I can draw it each time I need it, but what would be cool is a syntax
>> like
>>
>> \node[router];
>> \node[switch];
>>
>> etc.
>>
>> Anyone know how to do this ? I saw a similar discussion here :
>> http://comments.gmane.org/gmane.comp.tex.pgf.user/701,
>> but as I begin with Tikz I didn't really understood, and I'm not even
>> sure this is exacly what I want.
>>
>> Regards,
>>
>> Corentin
>
> I also would like to have such kind of symbols. While waiting for it, you
> can
> look at
>
> http://tex.stackexchange.com/questions/22837/cisco-icons-for-network-diagrams
>
> There you will find a partial solution using cico icons converted to
> eps/pdf and TiKZ.
>
> Best regards,
>
> 	Ignasi
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> pgf-users mailing list
> pgf-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pgf-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Ignasi | 8 May 2012 10:33
Picon
Gravatar

Re: How to create new node shapes ?

Thank you Mark for the example.
Just a question about it.
Where is the 'outer sep' defined, i.e., why the edge between the cloud and  
cable modem doesn't touch the borders?

Thank you,

Ignasi

On Tue, 08 May 2012 09:58:42 +0200, Mark Wibrow <m.wibrow <at> gmail.com> wrote:

> \documentclass{article}
> \usepackage{tikz}
> \usetikzlibrary{shapes.symbols}
> \begin{document}
> \makeatletter
> \tikzset{
> 	symbol/.style={
> 		execute at begin node={
> 			\begin{tikzpicture}
> 				\def\tikz <at> atbegin <at> node{}
> 				\tikzset{symbols/#1}
> 			\end{tikzpicture}
> 		}	
> 	}
> }
> \makeatother
> \tikzset{
> 	symbol lines/.style={
> 		very thick,
> 		line join=round,
> 	},
> }
> \colorlet{symbol fill}{black!50}
> \colorlet{symbol draw}{black!25}
> \tikzset{symbols/.cd,
> 	internet/.code={
> 		\node [cloud, cloud puffs=9, cloud puff arc=110,
> 		minimum width=2.5cm, minimum height=1.5cm, fill=symbol fill,
> draw=symbol draw]{};
> 	},
> 	cable modem/.code={
> 		\path [fill=symbol fill, draw=symbol draw, symbol lines]
> 			(0,0) -- (0,0.5) -- (0.5,1) -- (1.75,1) -- (1.75,0.5) -- (1.25,0) --
> cycle;
> 		\path [draw=symbol draw, symbol lines]
> 		(0,0.5) -- (1.25,0.5) -- (1.75,1) (1.25,0.5) -- (1.25,0);
> 		\path [draw=symbol draw, line width=0.1cm, stealth-stealth,
> fill=symbol draw]
> 		(0.0625,0.25) -- (0.875,0.25);
> 		\path [draw=symbol draw, line width=0.1cm, -stealth, fill=symbol draw,
> line join=rect]
> 		(1,0.25) -- ++(-0.1, 0);
> 	}
> }
> \begin{tikzpicture}[level distance=2cm, every child/.style={symbol  
> lines}]
> 	\node [symbol=internet, label=center:Internet] {}
> 		child { node [symbol=cable modem, label=below:cable modem] {} };
> \end{tikzpicture}
> \end{document}

--

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Mark Wibrow | 8 May 2012 11:06
Picon

Re: How to create new node shapes ?

Hi,

The symbol is placed inside a rectangle node (the default node shape) 
whose border is used to calculate points for tree edges.

You can see this if you add the `draw' key to the symbol style.

If you want exact border edges then you would have to define the shape 
using \pgfdeclareshape and define anchors appropriately. The following 
is incomplete, and it is cheating a bit to use tikz code in the shape 
(and may result in undesirable behaviours in some circumstances), but it 
shows how to approach the problem.

Doing things purely in PGF would give maximum control, but is a bit more 
work.

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric,shapes.symbols}
\begin{document}

\tikzset{
	symbol lines/.style={
		very thick,
		line join=round,
	},
}
\colorlet{symbol fill}{black!50}
\colorlet{symbol draw}{black!25}

\pgfdeclareshape{cable modem}{
	\nodeparts{}
	\anchor{center}{\pgfpoint{0.75cm}{0.5cm}}
	\anchor{north}{\pgfpoint{1.125cm}{1cm}}
	\anchor{south}{\pgfpoint{1.125cm}{0cm}}
	\behindbackgroundpath{
		\path [fill=symbol fill, draw=symbol draw, symbol lines]
			(0,0) -- (0,0.5) -- (0.5,1) -- (1.75,1) -- (1.75,0.5) -- (1.25,0) -- 
cycle;
		\path [draw=symbol draw, symbol lines]
		(0,0.5) -- (1.25,0.5) -- (1.75,1) (1.25,0.5) -- (1.25,0);
		\path [draw=symbol draw, line width=0.1cm, stealth-stealth, 
fill=symbol draw]
		(0.0625,0.25) -- (0.875,0.25);
		\path [draw=symbol draw, line width=0.1cm, -stealth, fill=symbol draw, 
line join=rect]
		(1,0.25) -- ++(-0.1, 0);
	}
}

\begin{tikzpicture}[level distance=2cm, every child/.style={symbol lines}]
	\draw [help lines] grid(3,2);
	\node [cable modem] (c) at (0,1){};
	
	\draw (3,2) -- (c.north) (3,0) -- (c.south);
\end{tikzpicture}

\end{document}

regards

Mark

On 08/05/12 09:33, Ignasi wrote:
> Thank you Mark for the example.
> Just a question about it.
> Where is the 'outer sep' defined, i.e., why the edge between the cloud and
> cable modem doesn't touch the borders?
>
> Thank you,
>
> Ignasi
>
> On Tue, 08 May 2012 09:58:42 +0200, Mark Wibrow<m.wibrow <at> gmail.com>  wrote:
>
>> \documentclass{article}
>> \usepackage{tikz}
>> \usetikzlibrary{shapes.symbols}
>> \begin{document}
>> \makeatletter
>> \tikzset{
>> 	symbol/.style={
>> 		execute at begin node={
>> 			\begin{tikzpicture}
>> 				\def\tikz <at> atbegin <at> node{}
>> 				\tikzset{symbols/#1}
>> 			\end{tikzpicture}
>> 		}	
>> 	}
>> }
>> \makeatother
>> \tikzset{
>> 	symbol lines/.style={
>> 		very thick,
>> 		line join=round,
>> 	},
>> }
>> \colorlet{symbol fill}{black!50}
>> \colorlet{symbol draw}{black!25}
>> \tikzset{symbols/.cd,
>> 	internet/.code={
>> 		\node [cloud, cloud puffs=9, cloud puff arc=110,
>> 		minimum width=2.5cm, minimum height=1.5cm, fill=symbol fill,
>> draw=symbol draw]{};
>> 	},
>> 	cable modem/.code={
>> 		\path [fill=symbol fill, draw=symbol draw, symbol lines]
>> 			(0,0) -- (0,0.5) -- (0.5,1) -- (1.75,1) -- (1.75,0.5) -- (1.25,0) --
>> cycle;
>> 		\path [draw=symbol draw, symbol lines]
>> 		(0,0.5) -- (1.25,0.5) -- (1.75,1) (1.25,0.5) -- (1.25,0);
>> 		\path [draw=symbol draw, line width=0.1cm, stealth-stealth,
>> fill=symbol draw]
>> 		(0.0625,0.25) -- (0.875,0.25);
>> 		\path [draw=symbol draw, line width=0.1cm, -stealth, fill=symbol draw,
>> line join=rect]
>> 		(1,0.25) -- ++(-0.1, 0);
>> 	}
>> }
>> \begin{tikzpicture}[level distance=2cm, every child/.style={symbol
>> lines}]
>> 	\node [symbol=internet, label=center:Internet] {}
>> 		child { node [symbol=cable modem, label=below:cable modem] {} };
>> \end{tikzpicture}
>> \end{document}
>
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Mark Wibrow | 8 May 2012 20:14
Picon

Re: How to create new node shapes ?

Hi again,

The following (although far from perfect) shows how the approach can be 
used to build symbols from other symbols:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric,shapes.symbols}
\begin{document}

\makeatletter
\tikzset{
	symbol/.style={
		inner sep=0pt,
		shape=rectangle,
		execute at begin node={
			\begin{tikzpicture}
				\def\tikz <at> atbegin <at> node{}
				\tikzset{symbols/.cd, #1}
			\end{tikzpicture}
		}	
	}
}
\makeatother

\tikzset{
	symbol lines/.style={
		very thick,
		line join=round,
	},
}
\colorlet{symbol color}{red!50}

\tikzset{symbols/.cd,
	.unknown/.code={
		\let\symbolkey=\pgfkeyscurrentname%
	 	\tikzset{\symbolkey={#1}}%
	},
	code/.code=\begin{scope}#1\end{scope},
	cylinder top/.code={
		\begin{scope}[yscale=0.5]		
			\path [fill=symbol color!50] circle [radius=1cm];
		\end{scope}
	},
	cylinder body/.code={
		\path [fill=symbol color]
			(-1cm, 0cm) -- (-1cm, -#1) arc (180:360:1cm and 0.5cm) -- (1cm, 0cm) 
arc (360:180:1cm and 0.5cm) -- cycle;
	},
	router arrows/.code={
		\begin{scope}[yscale=0.5]		
			\foreach \i in {0, ..., 3}
				\path [fill=symbol color!5, rotate=\i*90+45, 
xshift={0.25cm+mod(\i,2)*0.625cm}, xscale={mod(\i+1,2)*2-1}]
				(0cm,0cm) -- (0cm,0.125cm) -- (0.375cm,0.125cm) -- (0.375cm, 0.25cm) 
-- (0.625cm, 0cm) --
				(0.375cm, -0.25cm) -- (0.375cm, -0.125cm) -- (0cm, -0.125cm) -- cycle;
		\end{scope}
	},
	3D box/.code args={width #1 height #2 depth #3}{
		\path [fill=symbol color!50] (-#1/2,-#2/2) rectangle ++(#1, #2);
		\path [fill=symbol color] (#1/2, -#2/2) -- ++(0cm, #2) -- ++(#3, #3) 
-- ++(0cm, -#2) -- cycle;
		\path [fill=symbol color!75] (-#1/2, #2/2) -- ++(#1, 0cm) -- ++(#3, 
#3) -- ++(-#1, 0cm) -- cycle;
	},
	arrows from circle/.code={
		\path [fill=symbol color!5]
			circle [radius=0.25cm];
		\foreach \i in {0, 45, ..., 315}
			\path [symbol lines, draw=symbol color!5,  fill=symbol color!5, 
rotate=\i]
				(0cm,0cm) -- (#1, 0cm)  (#1,0.0625cm) -- (#1+0.125cm,0cm) -- 
(#1,-0.0625cm) -- cycle;
	}
}

\tikzset{symbols/.cd,
	internet/.code={
		\node [cloud, cloud puffs=9, cloud puff arc=110,
		minimum width=2.5cm, minimum height=1.5cm, fill=symbol color, 
draw=symbol draw]{};
	},
	router/.style={
		cylinder body=0.5cm,
		cylinder top,
		router arrows		
	},
	generic gateway/.style={
		cylinder body=1.25cm,
		cylinder top,
		router arrows,
		code={
			\tikzset{yshift=-1.125cm, symbols/.cd, arrows from circle=0.375cm}
		}
	},
	router with firewall/.style={
		cylinder body=0.25cm,
		code={
			\tikzset{yshift=-0.3125cm, symbols/.cd, cylinder body=0.5cm}
		},
		cylinder top,
		code={
			\begin{scope}[yscale=0.5]
				\clip circle [radius=1cm];
				\tikzset{rotate=-45}
				\foreach \i in {-3,-2,...,3}{
					\draw [draw=symbol color!75, symbol lines](\i*0.5cm,-1cm) -- 
(\i*.5cm,1cm);
						\foreach \j in {-1,0, 1}
							\draw [draw=symbol color!75, symbol lines] 
[yshift={mod(\i,2)*0.5cm)}](\i*.5cm,\j*1cm) -- (\i*.5cm+0.5cm,\j*1cm);
				}
			\end{scope}
		},
		router arrows
	},
	access point/.style={
		3D box=width 2cm height 0.5cm depth 0.25cm,
		code={
			\path [symbol lines, draw=symbol color!25]
				(-0.75, 0) \foreach \i in {0,...,2} {
					sin ++(0.125,0.125) cos ++(0.125,-0.125) sin ++(0.125,-0.125) cos 
++(0.125,0.125)
				};
			\path [symbol lines, draw=symbol color!5, yscale=-1]
				(-0.75, 0) \foreach \i in {0,...,2} {
					sin ++(0.125,0.125) cos ++(0.125,-0.125) sin ++(0.125,-0.125) cos 
++(0.125,0.125)
				};
		}
	},
	layer 3 switch/.style={
		3D box=width 1.5cm height 1.5cm depth 0.25cm,
		arrows from circle=0.5cm
	}
}

\foreach \c in {red, blue, green!50!red}{
\colorlet{symbol color}{\c!50}
\foreach \s in {access point, layer 3 switch, generic gateway, router 
with firewall, router}
	{\tikz\node[symbol=\s]{};\space}
\par
}	

\end{document}

Hope this helps

mark

On 08/05/12 09:33, Ignasi wrote:
> Thank you Mark for the example.
> Just a question about it.
> Where is the 'outer sep' defined, i.e., why the edge between the cloud and
> cable modem doesn't touch the borders?
>
> Thank you,
>
> Ignasi
>
> On Tue, 08 May 2012 09:58:42 +0200, Mark Wibrow<m.wibrow <at> gmail.com>  wrote:
>
>> \documentclass{article}
>> \usepackage{tikz}
>> \usetikzlibrary{shapes.symbols}
>> \begin{document}
>> \makeatletter
>> \tikzset{
>> 	symbol/.style={
>> 		execute at begin node={
>> 			\begin{tikzpicture}
>> 				\def\tikz <at> atbegin <at> node{}
>> 				\tikzset{symbols/#1}
>> 			\end{tikzpicture}
>> 		}	
>> 	}
>> }
>> \makeatother
>> \tikzset{
>> 	symbol lines/.style={
>> 		very thick,
>> 		line join=round,
>> 	},
>> }
>> \colorlet{symbol fill}{black!50}
>> \colorlet{symbol draw}{black!25}
>> \tikzset{symbols/.cd,
>> 	internet/.code={
>> 		\node [cloud, cloud puffs=9, cloud puff arc=110,
>> 		minimum width=2.5cm, minimum height=1.5cm, fill=symbol fill,
>> draw=symbol draw]{};
>> 	},
>> 	cable modem/.code={
>> 		\path [fill=symbol fill, draw=symbol draw, symbol lines]
>> 			(0,0) -- (0,0.5) -- (0.5,1) -- (1.75,1) -- (1.75,0.5) -- (1.25,0) --
>> cycle;
>> 		\path [draw=symbol draw, symbol lines]
>> 		(0,0.5) -- (1.25,0.5) -- (1.75,1) (1.25,0.5) -- (1.25,0);
>> 		\path [draw=symbol draw, line width=0.1cm, stealth-stealth,
>> fill=symbol draw]
>> 		(0.0625,0.25) -- (0.875,0.25);
>> 		\path [draw=symbol draw, line width=0.1cm, -stealth, fill=symbol draw,
>> line join=rect]
>> 		(1,0.25) -- ++(-0.1, 0);
>> 	}
>> }
>> \begin{tikzpicture}[level distance=2cm, every child/.style={symbol
>> lines}]
>> 	\node [symbol=internet, label=center:Internet] {}
>> 		child { node [symbol=cable modem, label=below:cable modem] {} };
>> \end{tikzpicture}
>> \end{document}
>
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Corentin Henry | 9 May 2012 15:55
Picon

Re: How to create new node shapes ?

Hi,

Thank you very much for your help Mark and Ignasi. Your code seems very complicated to me Mark as I just start with LaTeX and Tikz, so maybe I'll have some questions soon.

Thank you again,

Corentin

(PS : I just have the summary of the topics on the mailing list, how can I have all the messages ?)

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
pgf-users mailing list
pgf-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgf-users

Gmane