Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

flushleft, flushright vs. raggedleft, raggedright...

781 views
Skip to first unread message

Jonathan Christensen

unread,
Apr 4, 2004, 8:16:37 AM4/4/04
to
Is there any difference between flushleft and raggedright, or flushright and
raggedleft? In my brief tests, I can't see any...

But, I see references to both in the various beginners tutorials and such
that I've read, as well as on here, so I thought I'd ask just in case.

Thanks!
Jonathan


Scott Pakin

unread,
Apr 4, 2004, 2:48:35 PM4/4/04
to

\begin{flushright}
flushleft and flushright are environments.
\end{flushright}

\raggedright
raggedleft and raggedright are macros.
\raggedleft


-- Scott

Robin Fairbairns

unread,
Apr 4, 2004, 2:59:16 PM4/4/04
to

\raggedright and \raggedleft are advertised as commands, which work
"from now on" (the faq discusses the fact that there's no "back to
normal" command for use after those two, or after \centering).

the definitions of \raggedright and \raggedleft are used in the
flushleft and flushright environments (as \centering is used in the
center environment). the environments provide a "safe" encapsulation
of the commands -- a safe way out after issuing the command, if you
like.
--
Robin (http://www.tex.ac.uk/faq) Fairbairns, Cambridge

Donald Arseneau

unread,
Apr 4, 2004, 6:32:15 PM4/4/04
to
"Jonathan Christensen" <dzho...@hotmail.com> writes:

> Is there any difference between flushleft and raggedright, or flushright and
> raggedleft? In my brief tests, I can't see any...

As Robin says, the environments allow you to get back to normal,
whereas the commands do not. Additionally, the environments insert
vertical separation, like a list or quotation.

Donald Arseneau as...@triumf.ca

0 new messages