Re: [dk-tug] tikz og matrix af matematik noder og styling

Martin Heller <[email protected]>
Newsgroups gmane.comp.tex.danish
Message-ID <[email protected]>
Lars Madsen wrote, on 14-09-2011 14:18:

> Fandt lige et svar på nettet samtidigt med dit svar
>
> man kan anvende
>
> cross line/.style={preaction={draw=white, -,line width=6pt}}


Det er basalt set det samme som at tegne med "double"

\documentclass{article}
\usepackage{tikz}

\begin{document}

\begin{tikzpicture}[%
	line width=1pt,
	cross line/.style={preaction={draw=white, -,line width=3pt}},
	cross line2/.style={double=#1,white,double distance=1pt},
	cross line2/.default=black]
	
	\draw (0,0) -- (1,1);
	\draw[cross line,red] (0,1) -- (1,0);
	\draw[cross line,green] (.5,.5) circle (5mm);
	
	\draw (2,0) -- (3,1);
	\draw[cross line2=blue] (2,1) -- (3,0);
	\draw[cross line2=yellow] (2.5,.5) circle (5mm);
	
\end{tikzpicture}

\end{document}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.