TikZ Diagrams in Markdown
How to write TikZ graphics commands to create high-quality LaTeX diagrams.
TikZ (a recursive acronym for “TikZ ist kein Zeichenprogramm”, or “TikZ is not a drawing program”) is the standard graphics package for LaTeX. It produces beautiful, extremely precise graphs, mathematical diagrams, and scientific visualizations.
MarkdownToPrettyPDF allows you to write TikZ commands in a tikz fenced block.
Basic Syntax
To use TikZ, treat the fence block as the interior of a tikzpicture environment. Kroki handles wrapping the document appropriately.
|
|
|
Advanced Examples
TikZ is extraordinarily expressive. You can define nodes, styles, and loop through repetitive commands:
|
|
|
Mathematical Functions
You can also plot basic mathematical functions without requiring an external plotting program:
|
|
|
Use the tikz language when you require the utmost precision and the aesthetic quality of LaTeX documents.