I want to draw two figures using tikz. One is bigotimes and the other one is diamond, as you can seen in the picture below. But I don't know how to draw them. Could someone help me?

|
I want to draw two figures using tikz. One is
|
||||
|
|
|||
|
|
|
here's my attempt (with limited Tikz knowledge) at the diamond in a tikzpicture environment where you set half of the largest and half of the smallest angle:
The shape starts from (0,0) and then relative coordinates are used. It's worth reading up on these. The subsequent pairs give the angle of the line segment first, then its length. Here the sides are 1cm in length, the angles are just worked out from basic geometry. I can recommend the pgf-tut.pdf by Meik Hellmund if you're starting out. |
||||
|
|
|
Here is one way to draw the diamond:
but you can't have text inside the node this way (or you can, but it gets rotated and the shape won't stay as a diamond). |
|||
|
|
\documentclass{minimal} \usepackage{tikz} \usetikzlibrary{calc,intersections} \begin{document} \begin{tikzpicture} \draw[name path=c] (0,0) circle (1); \path[name path=fst] (-1,-1) -- (1,1); \path[name path=snd] (-1,1) -- (1,-1); \draw[name intersections={of=c and fst,by={a,b}}] (a) -- (b); \draw[name intersections={of=c and snd,by={a,b}}] (a) -- (b); \draw (3,0) +(1,0) -- +(0,2) -- +(-1,0) -- +(0,-2) -- cycle; \end{tikzpicture} \end{document}– Marc van Dongen Jul 30 '12 at 3:06