答案1
答案2
使用此代码:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=2]
\draw[] (-1,0) -- (3,1) node[pos=.5,sloped] () {\bfseries $\arrowvert$};
\draw[] (3,1) -- (5,-1) node[pos=.5,sloped] () {\bfseries $\Arrowvert$};
\draw[] (5,-1) -- (-1,0) node[pos=.5,sloped] () {\bfseries $\times$};
\end{tikzpicture}
\end{document}
你有这个输出:
添加:使用此代码:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[line width=2pt] (-1,-2)--(2,3) node[pos=.5,sloped] () {\bfseries $\arrowvert$};
\draw[line width=2pt] (2,3)--(5,2) node[pos=.5,sloped] () {\bfseries $\Arrowvert$};
\draw[line width=2pt] (5,2)--(2,-3) node[pos=.5,sloped] () {\bfseries $\arrowvert$};
\draw[line width=2pt] (2,-3)--(-1,-2) node[pos=.5,sloped] () {\bfseries $\Arrowvert$};
\end{tikzpicture}
\end{document}
你可以用相同的符号标记等边: