Enrico Forestieri wrote:
> On Wed, Apr 11, 2007 at 10:59:34AM -0400, Richard Heck wrote:
>   
>> At the moment, we are handling alignment and spacing differently. We
>> output this (corrected) in the case of alignment:
>>     \section{\protect\begin{flushleft}Section stuff\protect\end{flushleft}}
>>     
> By corrected you mean you took away the \par causing the error, I suppose.
>   
Yes.
> I think that the point here is that you are using LyX in the wrong way.
>   
Well, not me, but....
> If the class you are using doesn't double space the title, you should not try 
> to do it by yourself. The correct approach would be to use a (possibly 
> modified) class doing by itself the double spacing in the title.
>   
Yes, of course, and one possibility would be simply to prohibit
paragraph options in the title and similar such places. That's easily
done with alignment, since AlignPossible is already in the layout file.
Some such thing could be added for other options, too, I suppose. And,
ideally, LyX would directly support titlesec or something of the sort,
but it obviously doesn't at the moment.
> [snip] I am against these kind of hacks as I hate when a software tries to be 
> clever than I am. 
Me, too---generally speaking. But I think it's important to recognize
that this issue is due to LyX's increasing popularity with people who
don't know any LaTeX at all. And at present, LyX provides spacing and
alignment options for the title, for section headings, and the like, and
people are using them, or trying to, which is why this issue got raised
on the users' list.

So the only question I'm raising is, if LyX is going to allow people to
set line spacing, alignment, etc, in cases like section, title, etc, how
should it handle these settings? As I said, at present, there is no
uniform answer to this question: LyX handles line spacing one way,
alignment another. Maybe those options shouldn't be presented at all.
But if the options are there, and maybe they should be, but they don't
behave how people expect them to behave, that's going to frustrate
people immensely.
> Note that the problem you describe is not avoidable even when using LaTeX, so 
> it is not avoidable when using LyX.
>   
But this does work:
\begin{flushright}
\section{Here's a section}
\end{flushright}
or at least it almost does. You have to add [EMAIL PROTECTED] or something
of the sort to avoid later problems. Granted, that's ugly, and maybe LyX
just shouldn't allow that at all. But right now it does this:
\begin{onehalfspacing}
\section{Here's a section}
\end{onehalfspacing}
so if you hate the one you ought to hate the other, no?

In any event, it will be a trivial matter to adapt the patch on which
I'm working, which addresses other problems as well---there's a problem
with line spacing and items, in particular---whatever decision we end up
making here.

Richard

-- 
==================================================================
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==================================================================
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto

Reply via email to