来源:这个图形是一道小学五年级几何习题的答案。
% Circle and Rectangle % Author: Bentley \documentclass{article} \usepackage{tikz} %%%< \usepackage{verbatim} \usepackage[active,tightpage]{preview} \PreviewEnvironment{tikzpicture} \setlength\PreviewBorder{5pt}% %%%> \begin{comment} :Title: Circle and Rectangle \end{comment} \begin{document} \pagestyle{empty} \begin{figure}[bt] \centering \scalebox{4} { \begin{tikzpicture}[scale=6] \tikzstyle{vertex}=[rectangle,minimum size=10pt,inner sep=1pt, green] \tikzstyle{edge} = [draw,thick,-,black] \node[vertex] (v0) at (0,0) {$A$}; \node[vertex] (v1) at (0,1) {$B$}; \node[vertex] (v2) at (1,0) {$C$}; \node[vertex] (v3) at (1,1) {$D$}; \node[vertex] (v4) at (0,0.5) {$E$}; \draw[edge] (v0)--(v1) --(v3)--(v2)--(v0); %\draw[semithick] (0,0) arc (0:180:1); \node [draw, thick, minimum size=12cm, circle,blue] at (0,0) {}; \node [draw, thick, minimum size=12cm, circle,blue] at (0,1) {}; \node [draw, thick, minimum size=6cm, circle,blue] at (0,0.5) {}; \node [draw, thick, minimum size=6cm, circle,blue] at (1,0.5) {}; \draw(0,0.5)--(1,0.5); %\draw(0.5,0.5)--(0.5,0); \draw(0,1)--(1,0.5); \end{tikzpicture} } \caption{Circle and Rectangle} \end{figure} \end{document}