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 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/examples/text/halign.txt b/examples/text/halign.txt index a9d15e3..b1453d0 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. -- 1.7.6.336.gdf067 ------------------------------------------------------------------------------ 10 Tips for Better Web Security Learn 10 ways to better secure your business today. Topics covered include: Web security, SSL, hacker attacks & Denial of Service (DoS), private keys, security Microsoft Exchange, secure Instant Messaging, and much more. http://www.accelacomm.com/jaw/sfnl/114/51426210/ _______________________________________________ PyX-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyx-devel
