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 12:24:
> Ved du også hvordan man tegner en linie 'under' en anden? altså så den
> ene har et hul den anden går gennem?

Ikke nogen *god måde*. Du kan lave en fattigmandsversion med forskellige 
lag:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{intersections}

\pgfdeclarelayer{a}
\pgfdeclarelayer{b}
\pgfdeclarelayer{x}
\pgfsetlayers{main,a,x,b}
\begin{document}

\begin{tikzpicture}

	\coordinate (a1) at (0,0);
	\coordinate (a2) at (1,1);
	\coordinate (b1) at (0,1);
	\coordinate (b2) at (1,0);

	\begin{pgfonlayer}{a}
		\draw[name path global=A] (a1) -- (a2);
	\end{pgfonlayer}
	\begin{pgfonlayer}{b}
		\draw[name path global=B] (b1) -- (b2);
	\end{pgfonlayer}
	\begin{pgfonlayer}{x}
		\fill[white,name intersections={of=A and B}] (intersection-1) circle 
(1mm);
	\end{pgfonlayer}
	
\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.