PreTeXtBook / pretext

PreTeXt: an authoring and publishing system for scholarly documents
https://pretextbook.org
Other
266 stars 208 forks source link

Protect line ends in LaTeX tables #300

Closed rbeezer closed 8 years ago

rbeezer commented 8 years ago

If a line of a table ends with \\ (which is not always, think \hline) and content of next line is a bare [ then LaTeX wants to combine the two into a vertical spacing deal.

Solution: end, the very end, with a %.

https://groups.google.com/d/msg/mathbook-xml-support/9lYbbqoUi-0/IXOmW0p2AAAJ

rbeezer commented 8 years ago

% is not good enough

http://xelatex.blogspot.com/2009/02/table-lines-starting-with-square.html

Maybe \relax

http://tex.stackexchange.com/questions/95236/as-first-character-in-table-row

rbeezer commented 8 years ago

Now using \tabularnewline rather than \\ and need to just add a [0pt] as protection. See Google Group thread for the full discussion of the difficulties.

Fix at ebaf2a1f