سلام
به صورت زیر عمل کنید.
\documentclass[a4paper,12pt]{report}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\coordinate [label=left:\textcolor{black}{$A$}] (A) at (0,0);
\coordinate [label=right:\textcolor{black}{$B$}] (B) at (3,0);
\draw[densely dashed] (A) -- (B);
\end{tikzpicture}
\end{document}
که شکل آن به صورت زبر است

اگر بخواهید خط کامل باشد به صورت زیر عمل کنید
\documentclass[a4paper,12pt]{report}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\coordinate [label=left:\textcolor{black}{$A$}] (A) at (0,0);
\coordinate [label=right:\textcolor{black}{$B$}] (B) at (3,0);
\draw (A) -- (B);
\end{tikzpicture}
\end{document}
که شکل به صورت زیر است
