Skip to content · ⁨본문 바로가기⁩
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 명령어와 그들이 그리는 선, 원, 직사각형

Log in or create account · ⁨로그인 또는 계정 만들기⁩

IGCSE, A-Level & AP