[latexrefman-commits] r428 - in /trunk: ChangeLog latex2e.texi

jhefferon at domain.hid jhefferon at domain.hid
Sat Sep 12 00:00:53 CEST 2015


Author: jhefferon
Date: Sat Sep 12 00:00:52 2015
New Revision: 428

URL: http://svn.gna.org/viewcvs/latexrefman?rev=428&view=rev
Log:
\newline

Modified:
    trunk/ChangeLog
    trunk/latex2e.texi

Modified: trunk/ChangeLog
URL: http://svn.gna.org/viewcvs/latexrefman/trunk/ChangeLog?rev=428&r1=427&r2=428&view=diff
==============================================================================
--- trunk/ChangeLog	(original)
+++ trunk/ChangeLog	Sat Sep 12 00:00:52 2015
@@ -1,3 +1,8 @@
+2015-09-11  Jim Hefferon  <jhefferon at domain.hid>
+
+	* latex2e.texi (\newline): Add description of what happens in
+	a table.  Add example.
+
 2015-09-11  Jim Hefferon  <jhefferon at domain.hid>
 
 	* latex2e.texi (\\): Split \\ from \\*.  Mention

Modified: trunk/latex2e.texi
URL: http://svn.gna.org/viewcvs/latexrefman/trunk/latex2e.texi?rev=428&r1=427&r2=428&view=diff
==============================================================================
--- trunk/latex2e.texi	(original)
+++ trunk/latex2e.texi	Sat Sep 12 00:00:52 2015
@@ -4350,9 +4350,24 @@
 @findex \newline
 @cindex new line, starting (paragraph mode)
 
-The @code{\newline} command breaks the line at the present point, with
-no stretching of the text before it.  It can only be used in paragraph
-mode.
+In ordinary text this is equivalent to double-backslash (@pxref{\\}); it
+breaks a line, with no stretching of the text before it.
+
+Inside a tabular or array environment, in a column with a @code{p@{..@}}
+specifier, @code{\newline} inserts a line break inside of the column,
+that is, it does not break the entire row.  To break the entire row use
+ at code{\\} or its equivalent @code{\tabularnewline}.
+
+This will print @samp{Name:} and @samp{Address:} as two lines in a
+single cell of the table.
+
+ at example
+\begin at domain.hid@}@}
+  Name: \newline Address: &Date: \\ \hline
+\end at domain.hid@}
+ at end example
+
+The @samp{Date:} will be baseline aligned with @samp{Name:}.
 
 
 @node \- (hyphenation)





More information about the latexrefman-commits mailing list