From e1b393fd8b706fa4971df7956367ea9ba0051e44 Mon Sep 17 00:00:00 2001 From: Michael J Gruber Date: Wed, 15 Nov 2006 14:57:00 +0100 Subject: [PATCH] advertise usage of \linebreak rather than \newline The widespread use of \newline (in the incarnation \\) for enforcing linebreaks causes many problems with the alignment of parboxes. \linebreak is the correct way to force a line break without destroying alignment. --- examples/text/halign.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/text/halign.txt b/examples/text/halign.txt index a9d15e36..b1453d08 100644 --- a/examples/text/halign.txt +++ b/examples/text/halign.txt @@ -23,3 +23,7 @@ well, when you do not create a parbox. !! Note that the alignment features are implemented in such a way, that they work in both, TeX and LaTeX mode. Furthermore, you can always influence the alignment of the box contents by appropriate TeX and LaTeX commands as well. + +!! If you want to enforce line breaks in a parbox use `\linebreak`, not `\newline` (which +is equivalent to `\\`). `\linebreak` makes sure that horizontal alignment is preserved +throughout the text box. -- 2.11.4.GIT