Re: newline
- From: <corff@xxxxxxxxxxxxxxxxxx>
- Date: 31 May 2007 20:10:34 GMT
bodinsoul@xxxxxxxxx <bodinsoul@xxxxxxxxx> wrote:
: what is the difference, if there is a difference, between // and
: newline commands in latex,
: besides the fact that // has some other options
Well, it's \\, not //, and it's \newline, not "newline" (without the
backslash.
The option \\[<dimension>], like: \\[0.5ex] indicates the spacing to
the next line, under condition of being in a normal paragraph.
You can't use \\ as a stand-alone tool to create vertical space, the
typical error message if you try is "There's no line here to end".
The other use of \\ is to indicate the end-of-line in tables, i.e.
with the {tabular} environment.
\begin{tabular}{cc}
x & y \\
\hline
2.5 & 3.7\\
1.3 &2.9\\
\end{tabular}
If you want to break a line inside a tabular cell, there is no way
to use \\ as it indicates the end of the total line; here, you'll
use \newline instead.
HTH,
Oliver.
--
Dr. Oliver Corff e-mail: corff@xxxxxxxxxxxxxxxxxx
.
- References:
- newline
- From: bodinsoul@xxxxxxxxx
- newline
- Prev by Date: Re: unicode H-underdot and biblatex
- Next by Date: Hyperref produces deformed links with amsrefs
- Previous by thread: newline
- Next by thread: Breaks in Long Unix Commands
- Index(es):