Consider the following example:
\documentclass{minimal}
\def\myMultiLineText{%
Line One Line One \\ %
Line Two Line Two \\ %
Line Three Line Three \\ %
Line Four Line Four %
}
\begin{document}
Here is multi-line: \myMultiLineText ...
\end{document}
In the document, I'd like to insert something like:
Here is single-line: \doSingleLine{\myMultiLineText} ...
... where the \doSingleLine{} macro would basically remove the line-breaks (\\) from the text stored in \myMultiLineText (so its contents would be rendered on a single line).
Could someone provide an example of such a macro?
\\or its *-form is used. – egreg Sep 28 '11 at 07:59