\documentclass{article}

\def\pgfsysdriver{pgfsys-dvipdfm.def}
\RequirePackage{tikz}

\begin{document}
hahaha

jajaja

\begin{center}
\begin{tikzpicture}
    \node [label=below:$M$] (M2) at (1.2,0) {};
    \draw (-2,0)--(2,0);
    \node [fill=black, inner sep=1pt, label=below:$p$] (p) at (0,0) {};
\end{tikzpicture}
\end{center}
\end{document}