Skip to main content

TikZ

TikZ creates precise diagrams with TeX drawing commands.

Use this type

Use TikZ for mathematical, scientific, geometric, and publication-quality diagrams.

Source format

The source format is TeX with TikZ. Enter the source in the diagram.zip editor.

Syntax essentials

  • Put drawing commands in a tikzpicture environment.
  • Create shapes with commands such as node, draw, and path.
  • Put options in square brackets.
  • Terminate each path command with a semicolon.

Example

\begin{tikzpicture}
\node (user) at (0,0) {User};
\node (diagram) at (3,0) {diagram.zip};
\draw[->] (user) -- (diagram);
\end{tikzpicture}

The rendered view uses a complete project example for this diagram type.

Rendered exampleDrag to pan. Use the wheel or controls to zoom.
100%
This view uses the live diagram.zip renderer.

Upstream reference

TikZ documentation