I am currently trying to improve the images of some basic geometry articles in Wikipedia. One image I have improved is the of an Arbelos (en).
This is the LaTeX-Code:
\documentclass{article}
\usepackage[pdftex,active,tightpage]{preview}
\setlength\PreviewBorder{2mm}
\usepackage{tikz}
\begin{document}
\begin{preview}
\begin{tikzpicture}
% Draw A
\coordinate[label=left:$A$] (A) at (0,0);
\begin{scope}[shift={(4,0)}]
% big half-circle from A to B
\draw[thick,fill=green!30] (0,0) -- (0:4cm) arc (0:180:4cm);
% Draw D
\coordinate[label=below:$D$] (D) at (2,0);
% Perpendicular CD
\draw[thick] (2,0) -- node[] {} (2,3.47);
% Draw C
\coordinate[label=above:$C$] (C) at (2,3.47);
\end{scope}
\begin{scope}[shift={(3,0)}]
% Crop circle AD from the big green circle AB
% This is the one I would like to be transparent
\draw[thick,fill=white] (0,0) -- (0:3cm) arc (0:180:3cm);
% Draw B
\coordinate[label=below:$B$] (B) at (5,0);
\end{scope}
% Circle DB - should also be transparent
\draw[thick,fill=white] (7,0) -- (8cm,0) arc (0:180:1cm);
% Cirlce CD
\draw[thick] (6,1.735) circle (1.735cm);
% I have to draw this one, as "arc" doesn't completely
% draw the line AB
\draw[thick] (0,0) -- node[] {} (8,0);
\end{tikzpicture}
\end{preview}
\end{document}
It is working and looks like that:
Looks fine, except that the two circles AD and DB are white, not transparent. Take a look at the SVG for that: File:Arbelos-tikz.svg. How can I overwrite the green filled circle with transparent / crop this part out of the green circle?
(If it is possible to make this piece of LaTeX-Code simpler, please let me know.)





