What is the difference between \\ and \tabularnewline?
Is it same as the difference between \\ and newline?
Is \tabularnewline preferred over \\ when creating tables?
What is the difference between \\ and \tabularnewline?
Is it same as the difference between \\ and newline?
Is \tabularnewline preferred over \\ when creating tables?
If your tabular contains p-columns, then there is a ambiguity: Does \\ should end a line inside a cell or should it end a tabular row? The use of \newline and \tabularnewline make that clear, the first ends the line in a cell, the latter the row of the table.
See also \arraybackslash of package array that can be used to reset the meaning of \\ to be \tabularnewline, from the documentation:
\arraybackslash: Restore\\for use in array and tabular environment (after\raggedrightetc.).\def\arraybackslash{\let\\\tabularnewline}
\\ has many definitions in latex: in tables, in normal text in centering etc it is locally defined to whatever needs doing.
– David Carlisle
Oct 23 '12 at 15:18
\\ end tabular row. So is \tabularnewline for clarity for the user? (If it matters I usually use memoir and article document)
– mythealias
Oct 23 '12 at 15:53
tabularnewlinebut it gave me lot of results, but wasn't able to find the difference. – mythealias Oct 23 '12 at 15:11