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

Lars Madsen <[email protected]>
Newsgroups gmane.comp.tex.danish
Message-ID <[email protected]>
Martin Heller wrote, On 2011-09-14 14:09:
> 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}
> 
> _______________________________________________
> [email protected] mailing list
> http://mailman.nfit.au.dk/mailman/listinfo/tug.dk-dk-tug


Fandt lige et svar på nettet samtidigt med dit svar

man kan anvende

   cross line/.style={preaction={draw=white, -,line width=6pt}}

se

http://pdp7.org/blog/?p=133





-- 

/daleif
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.