![具有不同间隔的数轴](https://linux22.com/image/424566/%E5%85%B7%E6%9C%89%E4%B8%8D%E5%90%8C%E9%97%B4%E9%9A%94%E7%9A%84%E6%95%B0%E8%BD%B4.png)
答案1
尝试从如下的事情开始:
\documentclass{article}
\usepackage{tikz}
\usepackage{mathtools}
\begin{document}
\begin{tikzpicture}
\draw(0,0) -- (10,0);
\node at (1,-1) {0};
\draw(1,0.2) -- (1,-0.2);
\node at (2,-1) {$\dfrac{1}{q}$};
\draw(2,0.2) -- (2,-0.2);
\node at (3,-1) {$\dfrac{2}{q}$};
\draw(3,0.2) -- (3,-0.2);
\node at (4.5,-1) {$\dfrac{P}{q}$};
\draw(4.5,0.2) -- (4.5,-0.2);
\node at (5,1) {P};
\draw(5,0.2) -- (5,-0.2);
\node at (6,-1) {$\dfrac{P+1}{q}$};
\draw(6,0.2) -- (6,-0.2);
\node at (10.5,0) {L};
\end{tikzpicture}
.
\end{document}