Here's my code:
\documentclass[12pt]{article}
\usepackage{soul}
\begin{document}
\setul{}{2pt}
\ul{\Huge\textbf{Some text}}
\underline{\Huge\textbf{Some text \hspace{1in}}}
\ul{\Huge\textbf{Some text \hspace{1in}}} % This line causes error
\end{document}
The command \underline{\Huge\textbf{Some text \hspace{1in}}} produces the result
I want the underline to be thicker though, so I tried using the soul package, setting the thickness, and then \ul{Some text}
This gives me the desired underline thickness

The problem occurs when I try to combine the two to get a thick line extending beyond the text. The command \ul{\Huge\textbf{Some text \hspace{1in}}} produces an error, "Missing number, treated as zero."
Any ideas why or how to fix it? Or better ways of underlining text with a bold line that extends an arbitrary distance beyond the text?



\documentclass{...}and ending with\end{document}. – Apr 12 '15 at 00:03\protect\hspace*{1in}– Apr 12 '15 at 00:08\ul{\Huge\textbf{Some text \protect\hspace{1in}}}fixes the error but cuts the underline off at the end of the text... produces same result as second image above – Philip Apr 12 '15 at 00:14\ul{\Huge\textbf{\mbox{Some text \hspace{1in}}}}– Apr 12 '15 at 00:18