Drawing #
Author: Erhua
Keywords: pgf, TikZ
Basic drawing skills in LaTeX can not only help us draw some basic shapes, but also be used for document layout design.
Currently, the most commonly used drawing package we use is pgf, which stands for “portable graphics format”. TikZ package is the main frontend layer implementation of pgf.
To use the TikZ package, we just need to call it directly, because we don’t need too complex functions for now.
\usepackage{tikz}
When using TikZ to draw, we usually put the graphics in the tikzpicture environment, unless it is a single element, which can be placed outside the environment directly, with \tikz at the beginning.
\tikz \draw (0,0) circle (3mm);
---
\begin{tikzpicture}
\draw (0,0) circle (3mm);
\end{tikzpicture}
… (to be continued)