From a9d59a2d83b345581f2eb0c6b7f08c091f5622f0 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 29 Dec 2005 00:31:48 +0000 Subject: doc/english/F-ca git-svn-id: svn://tug.org/texlive/trunk@19 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/english/FAQ-en/html/FAQ-flushboth.html | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Master/texmf-doc/doc/english/FAQ-en/html/FAQ-flushboth.html (limited to 'Master/texmf-doc/doc/english/FAQ-en/html/FAQ-flushboth.html') diff --git a/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-flushboth.html b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-flushboth.html new file mode 100644 index 00000000000..9812becd9a3 --- /dev/null +++ b/Master/texmf-doc/doc/english/FAQ-en/html/FAQ-flushboth.html @@ -0,0 +1,46 @@ + +UK TeX FAQ -- question label flushboth + +

Cancelling \ragged commands

+

LaTeX provides commands \raggedright and \raggedleft, but +none to cancel their effect. The \centering command is +implemented in the same way as the \ragged* commands, and suffers +in the same way. +

The following code (to be inserted in a package of your own, or as + +internal LaTeX code) defines a command that +restores flush justification at both margins: +

+\def\flushboth{%
+  \let\\\@normalcr
+  \@rightskip\z@skip \rightskip\@rightskip
+  \leftskip\z@skip
+  \parindent 1.5em\relax}
+
+There's a problem with the setting of \parindent in the code: it's +necessary because both the \ragged commands set \parindent to +zero, but the setting isn't a constant of nature: documents using a +standard LaTeX class with twocolumn option will have 1.0em by +default, and there's no knowing what you (or some other class) will +have done. +

If you are using Martin Schröder's ragged2e package, it is +worth updating to the latest release (January 2003), which has a +\justifying command to match its +versions of the LaTeX 'ragged' commands. The +package also provides a +justify environment, which permits areas of justified +text in a larger area which is ragged. +

+
ragged2e.sty
Distributed as part of macros/latex/contrib/ms (gzipped tar, browse) +
+ + + + + + + + + +

This question on the Web: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=flushboth + -- cgit v1.2.3