I've been working on a bug concerning LaTeX output. The attached file
tells the tale. It won't compile. View the source instead to see what is
happening. (By the way, View Source is excellent.)

This all got started because a user was trying to left-align his
sections, and the LaTeX output was invalid. So the question arises how
to resolve this problem, and pursuing that has led me to some further
questions.

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}}
but this in the case of spacing:
    \begin{doublespace}
    \section{Section stuff}
    \end{doublespace}
As a result, the attempt to set spacing in, say, the title does not
work, since we have:
    \begin{doublespace}
    \title{Title stuff}
    \end{doublespace}
Another issue: Consider a user who wants to right-align (?) his section
headings. I strongly suspect that he does not suppose that doing so will
cause utter chaos in the table of contents and page headers. But as we
presently handle that, it will. Nor, I take it, do we want to write this:
    \section{\begin{doublespace}Section stuff\end{doublespace}}
since that will also mess up the TOC, contrary to what the user expects.

The difference here obviously concerns whether we're dealing with a
moving argument. So what I propose to do is the following. If we are
dealing with a moving argument, we output the alignment and spacing info
OUTSIDE of the command; if we're not, we put it INSIDE the command.

Comments?

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

Attachment: output_test.lyx
Description: application/lyx

Reply via email to