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); วาดเส้นจากจุดหนึ่งไปยังอีกจุดหนึ่ง คำสั่งทุกอย่างลงท้ายด้วย ;

สามคำสั่ง TikZ และเส้น วงกลม และสี่เหลี่ยมผืนผ้าที่ THEY วาด

Log in or create account · ⁨เข้าสู่ระบบหรือสร้างบัญชี⁩

IGCSE, A-Level & AP