
다음과 유사한 $\mathbb{R}$에 대한 이진 관계 그래프를 LaTeX에서 조판하는 가장 좋은 방법은 무엇입니까?
굵은 선은 이진 관계(세 개의 선분으로 구성됨)를 나타냅니다.
답변1
$\text{No MWE or attempt} \mapsto \text{minimal explanations from me}$
. 여기에서 다루는 모든 내용 pgfmanual
은 의 2장에서 소개됩니다.Tikz 명령 요약. 이는 한 가지 방법이지만 최선의 방법은 아닐 수도 있습니다.
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}
\draw[thin,gray,text=black,<->] (0,1.4) node[left] {$y$}
|- (1.4,0) node[below] {$x\vphantom{1}$};
\draw[densely dotted,gray] (1,0) |- (0,1);
\draw[thick] (0,1) node[left] {$1$}
-- (0,0) node[below left] {$0$}
-- (1,0) node[below] {$1$}
(0,0) -- (1,1);
\end{tikzpicture}
\end{document}