Is there a way to define a TeX command that checks if the current position in the text is at the beginning of a paragraph, and if true, then to go back to the end of the previous paragraph?
Edit: The aim is to solve the following problem. I have a bunch of files that contain several multiple choice questions, in the following format:
\begin{problem}
... the statement of the question ...
\choices
\end{problem}
where \choices is some command that I defined to display the choices for the answer. The problem is that now I want to have the choices displayed in the last line of the previous paragraph (separated by \hfill from the statement of the question) in order to gain some space; instead, now the choices for the answer start a new paragraph. I want to modify \choices such that it automatically clears the previous empty line(s), if there is one (or more), so I don't have to do it manually (which would be quite painful).
\documentclassand the appropriate packages so that those trying to help don't have to recreate it. I believe that there is a simpler solution to your problem, but need a test case to see how you are defining things. – Peter Grill Jan 12 '13 at 23:24