On Wed, Aug 10, 2016 at 05:42:45PM -0400, Richard Heck wrote:
> On 08/10/2016 05:01 PM, Scott Kostyshak wrote:
> > On Wed, Aug 10, 2016 at 02:58:14PM -0400, Richard Heck wrote:
> >> On 08/10/2016 02:14 PM, Scott Kostyshak wrote:
> >>> On Wed, Aug 10, 2016 at 12:11:58PM -0400, Richard Heck wrote:
> >>>
> >>>>> 2. The behavior of what happens seems to depend on the LaTeX class. I'm 
> >>>>> not sure about this, but in some cases, it seems that nothing is wrong 
> >>>>> with e.g. outputting the date after making the title. In other cases 
> >>>>> there is something wrong -- it doesn't show up and there is no LaTeX 
> >>>>> error.
> >>>> Some document classes put \title and \author in the premable. In that
> >>>> case, having them come after non-InTitle stuff won't affect the
> >>>> output---the preamble material is collected during the validation
> >>>> process---but you may still get the warning.
> >>> Ah I see.
> >>>
> >>>> In principle, we could process all the InTitle material during
> >>>> validation, or we could just collect a bunch of pointers to those
> >>>> paragraphs, and process them together at the beginning of the output
> >>>> process, or who knows what. Then you wouldn't have to worry about where
> >>>> those things go. But it's not clear to me whether that is worth the 
> >>>> effort.
> >>> Indeed that seems like a lot of effort. What about making the error a GUI 
> >>> error?
> >> That's probably a good idea. The user may have no idea why the output
> >> isn't correct.
> > OK. I will add this to my TODO list if no one else gets to it. Should it be 
> > an error or a warning? 
> 
> Probably just a warning.

Just one warning or one for each? I think a total of one is best, and
say in the warning that there may be others.

For example, compile templates/aa.lyx and you will see the following:

output_latex.cpp (1195): Error in latexParagraphs: You are using a
layout ("Title") intended for the title, after using non-title layouts.
output_latex.cpp (1195): Error in latexParagraphs: You are using a
layout ("Subtitle") intended for the title, after using non-title
layouts.
output_latex.cpp (1195): Error in latexParagraphs: You are using a
layout ("Author") intended for the title, after using non-title layouts.
output_latex.cpp (1195): Error in latexParagraphs: You are using a
layout ("Address") intended for the title, after using non-title
layouts.
output_latex.cpp (1195): Error in latexParagraphs: You are using a
layout ("Offprint") intended for the title, after using non-title
layouts.
output_latex.cpp (1195): Error in latexParagraphs: You are using a
layout ("Date") intended for the title, after using non-title layouts.
output_latex.cpp (1195): Error in latexParagraphs: You are using a
layout ("Abstract (structured)") intended for the title, after using
non-title layouts.
output_latex.cpp (1195): Error in latexParagraphs: You are using a
layout ("Keywords") intended for the title, after using non-title
layouts.

In this case the issue is particularly bad because there is a duplicate
title layout so the real title is never shown. Subtitle and Author also
are not shown. I brought the issue up about duplicate layouts here:
https://www.mail-archive.com/search?l=mid&q=20160703232354.kwbvcdzlr4lukjtb%40steph

Scott

Attachment: signature.asc
Description: PGP signature

Reply via email to