So I am trying to center my text across the center of the \makebox
.
Code:
\documentclass[12pt]{article}
\begin{document}
\makebox[2in]{\hrulefill\rlap{John Doe}\hrulefill}
\end{document}
Right now, the text is starting to appear at the center of the \makebox
instead of being centered at \makebox
's center. Is there a way to fix it?