Skip to content · ⁨コンテンツへスキップ⁩

Drawing with TikZ · ⁨TikZによる描画⁩

English

Drawing inside LaTeX

  • You can draw diagrams with code using the TikZ package — no image files needed.
  • Load it once, then draw inside a tikzpicture:
  • \draw (0,0) -- (2,1); draws a line from one point to another. Every command ends with ;.

日本語

LaTeX内での描画

  • TikZ パッケージを使用してコードで図を描画できます。画像ファイルは不要です。
  • 一度読み込んだ後、tikzpicture 内で描画します:
\usepackage{tikz}
...
\begin{tikzpicture}
  \draw (0,0) -- (2,1);
\end{tikzpicture}
  • \draw (0,0) -- (2,1); はある点から別の点への線を描きます。すべてのコマンドは; で終わります。

3つのTikZコマンドと、それらが描く線、円、長方形

Log in or create account · ⁨ログインまたはアカウント作成⁩

IGCSE, A-Level & AP