0
\begin{tikzpicture}
    \draw[black] (0,0) -- (3,0)
    node[ pos=0.01,label=below:{-2}]{|}
    node[ pos=0.16,label=above:{+}]{}
    node[ pos=0.33,label=below:{0}]{o}
    node[ pos=0.48,label=below:{-}]{}
    node[ pos=0.66,label=below:{2}]{o}
    node[ pos=0.81,label=above:{+}]{}
    node[ pos=0.98,label=below:{3}]{|}
   \end{tikzpicture} 
  • 5
    Welcome to TeX.SX!. In the future, consider providing a MWE in order for people to be able to reproduce your problem and help you. However, here, the error is pretty straightforward : did you try adding a semicolon after your last {|}? Each TikZ command must be terminated with a semicolon, which is what the error tells you. – KersouMan Feb 18 '20 at 16:47
  • Thank you. I just found my errors. I forget ";" end of section. – Batnasan Davaa Feb 18 '20 at 17:19

0 Answers0