I have a document template I've written that has worked well until now. It includes input to define things like the name of the document, doc control numbers, etc.
Unfortunately, I have a case of a document with a multi-line title, which is not processing correctly and I can't figure out how to detect it and/or process it other than by making a special exception (which I'd rather not do if I can help it [plus this is a chance to expand my understand of latex ;) ]).
The example code below runs fine, but if you remove the %comment% demarcator from the middle of line 5, it errors out. Does anyone know how I can get latex to detect this case and put the two parts of the docName on separate rows of the table?
Thanks in advance, Sean
\documentclass{article}
\usepackage{tabularx}
\begin{document}
\newcommand{\docName}{Video Endoscope \& Imaging Module}% \\DVT Support Manual}
\newlength{\headerwidth}
\setlength{\headerwidth}{\textwidth}
%This table holds the document name.
\hspace{-6mm}
\begin{tabularx}{\headerwidth}{|c|X|c|} \hline
& \\
\footnotesize \sffamily{\textbf{Dokument-/Dateiname:}} & \\
\footnotesize \sffamily{\textbf{Document-/File-Name:}} & \raisebox{1\totalheight\relax}[0pt][0pt]{\docName} \\
\hline
\end{tabularx}
\end{document}
\newline
instead of\\
? – Andrew Cashner yesterday