[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: restraining @center location and add other centering environments?
From: |
Karl Berry |
Subject: |
Re: restraining @center location and add other centering environments? |
Date: |
Wed, 11 Feb 2009 17:19:20 -0600 |
@address@hidden Centered and in code text}
It's erroneous, since @center has to start at the beginning of a line.
@center A centered address@hidden is
a footnote for centered text} with a footnote
It's erroneous, since the newline after "This is" is the end of
@center's argument.
What I propose is that @center should only be used in toplevel text
It depends on what you mean by top-level. The canonical use of @center
is within @titlepage. It can't be used as (part of) an argument to
another @-command, for sure.
and that any @-command opened in @center should be closed before the
end of line.
Yes.
To still be able to center some text flexibly I think that a new
environment similar with @flushleft and @flushright (maybe called
@flushcenter?) should be introduced.
Oleg already defined @raggedcenter, in fact (I asked him to remove the
doc though since a use for it was not apparent), and @flushcenter would
not be hard either. (Filled vs. non-filled text.)
I don't have a problem with either of these, but I'm not anxious to
define new commands that no one has ever requested, either ...
maybe after the texi2html switch.
Also a bracketed environment could be introduced, to be used in paragraphs
or in @item or in titles or other in-text environments. Like, for example
@centeredtext{Some text centered}
It couldn't be feasibly implemented in TeX, in general. It would have
to close the paragraph, do the centered text, and start a new
paragraph. And that can already be done with @center.
Thanks,
Karl