![用标签绘制两条边的水平箭头](https://linux22.com/image/416746/%E7%94%A8%E6%A0%87%E7%AD%BE%E7%BB%98%E5%88%B6%E4%B8%A4%E6%9D%A1%E8%BE%B9%E7%9A%84%E6%B0%B4%E5%B9%B3%E7%AE%AD%E5%A4%B4.png)
答案1
像这样:
以下是代码:
\documentclass[tikz,border=2mm]{standalone}
\usepackage{tikz}
\usepackage{xcolor}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{tikzpicture}[label/.style={font=\scriptsize, below}]
\draw [<->, >={Latex},blue] (-1, 0)node[label]{$-1$} -- (1, 0)node[label]{$+1$};
\draw[thin, blue] (0, 0.2,0)--(0,-0.2) node[label]{$0$};
\end{tikzpicture}
\end{document}