Thanks to the help of this answer, I've defined a command for creating a blank line:
\newcommand{\blank}[1]{\rule{#1}{0.4pt}}
However, because this is a user-defined command, LaTeX doesn't seem to factor it in to its calculations of when to start a new line. For example, if I write:
This is a long line and the blank line at the end is going to run off the page \blank{6cm}
then the blank line at the end runs off the page. How can I prevent this from happening?
EDIT: This actually only happens in a specific case: when I'm in the amsthm package's proof environment, and I have at least one line of writing followed by an enumeration.
\documentclass{article}
\usepackage{amsthm}
\newcommand{\blank}[1]{\rule[-3pt]{#1}{0.4pt}} % nice blank underscores
\begin{document}
\begin{proof}
Here is my proof:
\begin{enumerate}
\item This is a long line and the blank line is going to run off \blank{8cm}
\item This is the second line.
\end{enumerate}
\end{proof}
\end{document}
Even when the blank line doesn't run off the page, I still get an overfull hbox warning for each instance of \blank I have within an enumerate in a proof.



amsthmpackage'sproofenvironment, and I have at least one line of writing followed by an enumeration. I've edited the question to explain this. – jamaicanworm Dec 14 '11 at 02:44enumerateenvironment, not just within a proof withamsthm. (removeamsthmand the proof environment to demonstrate.) it's still a useful question though. – barbara beeton Dec 14 '11 at 13:54