The solution is in the gb4e manual on page 7:
% first gloss line in italics:
\let\eachwordone=\it
Wednesday, February 25, 2009
Table lines starting with square bracket
this one does not compile:
\documentclass{article}
\begin{document}
\begin{tabular}{ll}
a & b \\
[c] & d \\
\end{tabular}
\end{document}
if required, one can specify the vertical gap between lines in a table using
LaTeX removed the newline and whitespace to interpret the table as having a
So the solution is to write the initial square bracket into curly braces. This way it is not interpreted as the beginning of the optional argument of the newline command.
\documentclass{article}
\begin{document}
\begin{tabular}{ll}
a & b \\
{[}c] & d \\
\end{tabular}
\end{document}
Thanks to Werner Grundlingh for showing me the problem source.
\documentclass{article}
\begin{document}
\begin{tabular}{ll}
a & b \\
[c] & d \\
\end{tabular}
\end{document}
if required, one can specify the vertical gap between lines in a table using
\\[len]
LaTeX removed the newline and whitespace to interpret the table as having a
\\[c]
entry, and there exists no length "c".So the solution is to write the initial square bracket into curly braces. This way it is not interpreted as the beginning of the optional argument of the newline command.
\documentclass{article}
\begin{document}
\begin{tabular}{ll}
a & b \\
{[}c] & d \\
\end{tabular}
\end{document}
Thanks to Werner Grundlingh for showing me the problem source.
Subscribe to:
Posts (Atom)