0

enter image description here

Hi i was wondering how to draw this diagram in latex.

Thanks so much.

  • 1
    You could have a look at the tikz package. – DLichti May 19 at 11:43
  • \documentclass[tikz,border=3.14mm]{standalone} \begin{document} \begin{tikzpicture} \draw[->] (0,0) -- (5,0); \foreach \X in {0,...,3} {\draw[thick,-latex] (\X,-0.1) node[below]{$\X$} -- ++(0,0.6) node[above]{$1$};} \draw[thick,-latex] (4.6,-0.1) node[below]{$n$} -- ++(0,0.6) node[above]{$1$}; \node at (3.8,0.4) {$\cdots$}; \end{tikzpicture} \end{document} – user121799 May 19 at 12:13
2

As DLichti is saying you could use TikZ.

\documentclass[tikz,border=3.14mm]{standalone}
\begin{document}
\begin{tikzpicture}
 \draw[->] (0,0) -- (5.4,0);
 \foreach \X in {0,...,3}
  {\draw[thick,-latex] (\X,-0.1) node[below]{$\X$} -- ++(0,0.6) node[above]{$1$};}
 \draw[thick,-latex] (4.6,-0.1) node[below]{$n-1$} -- ++(0,0.6) node[above]{$1$};
 \node at (3.8,0.4) {$\cdots$};
\end{tikzpicture}
\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.