LaTeX and Drawing

As everyone knows, the tikz package is the god-tier package for drawing in latex, but the code is genuinely hard to write.
So I recommend using the tikzit software — draw with the mouse, then it automatically converts to latex code.
Downloading the software
Download link: TikZit
I suggest using Google Translate; the feature introductions are detailed and patient. I won’t repeat the drawing tutorial here — tikzit’s page is clean and easy to understand.
The page looks like this:
Environment setup (two ways to insert images)
Let me stress environment setup first.
The key is that you also need to download the package extension yourself — tikzit.sty
There are also two ways to insert images.

This text is in the “insert into LaTeX” section of the download page; note the blue hyperlink text, click it to download.
My recommendation: direct code insertion
First, place the downloaded tikzit.sty in the same directory as your LaTeX paper document,

so that the package can be recognized.
Using the LaTeX package:
| |
Once you finish a diagram in tikzit, click the toolbar in order: tool, jump to selection, and the LaTeX code will pop up at the bottom.
The complete environment code looks like this:
| |
Image reference insertion
The process is: first use tikzit to save multiple groups of vector diagrams you’ve drawn, number them, then insert them into the tex file.
(Refer to the similar insertion approach for LaTeX bibliography and image insertion.)
The specific process,
- Create a folder named
tikzpaper. - Put tikzit.sty inside it.
- Inside the
tikzpaperfolder, create a folder calledfigures, and save all the diagrams tikzit has saved into it. - Create
paper.texin thetikzpaperfolder.
The paper.tex environment is as follows:
Here
\tikzfig{ddd}and\ctikzfig{ddd}are the two ways to reference images; the content inside the curly braces {} is the image filename saved in the figures folder.
| |
Other tools
Open-source software is small and elegant, and much of it works straight out of the box.
- mathcha (web, paid)
- tikzcd-editor (many answers mention this site, but the trouble is it doesn’t tell you which package you need; though now that we have GPT, it hardly matters)
| |
- inkscape (you can treat it as an open-source PS)
- ipe (free and open-source, but there’s no Chinese localization yet, though the page is mostly graphics) When downloading ipe, don’t have Chinese characters in the install path, or it will error when opening. (For ipe, I suggest pairing it with a teaching video on Bilibili: Bilibili tutorial)
- latexdraw (free and open-source)
- TikzEdit (free, open-source, English, but easy to understand

tikzedit
Tikzedit is like a just-in-time compiling tex; the page is also exactly the same as tex.
I’ve tried both TikzEdit and latexdraw. latexdraw’s visual editing is better — text position and color can also be adjusted visually. TikzEdit is more about visual moving-editing of points and lines. But neither can visually edit arrow styles. For someone with some background, TikzEdit is more convenient.
- The dark-art method: use flashy tools (like PPT, processon (an online web page)) to draw, save as PDF, then crop and insert it into latex as a PDF file (this also reduces the typesetting and code-running pressure on latex).

Here is the local environment for inserting a cropped PDF:
| |




