On Tue, Aug 09, 2016 at 11:05:21PM +0200, Kornel Benko wrote:
> Am Dienstag, 9. August 2016 um 18:57:50, schrieb Scott Kostyshak 
> <skost...@lyx.org>
> > commit e7a64949ad0562764a3d1db3698103ee2b91e3ce
> > Author: Scott Kostyshak <skost...@lyx.org>
> > Date:   Tue Aug 9 12:53:56 2016 -0400
> > 
> >     Foils.lyx: fix output of author
> >     
> >     By moving date and author above the standard layouts, author is now
> >     output in the PDF and the terminal error from LyX about mixing an
> >     InTitle layout with non-InTitle layouts is gone.
> > ---
> >  lib/examples/Foils.lyx    |   20 ++++++++++----------
> >  lib/examples/fr/Foils.lyx |   26 +++++++++++++-------------
> >  2 files changed, 23 insertions(+), 23 deletions(-)
> > 
> 
> From my POV, this should be handled by lyx itself. Why is it important to the 
> user
> in where to add author or date data?

Good point. I hope one of our layout experts joins in this conversation.
My first reaction is the same as yours. However, after studying the code
it seemed to indicate that we do this on purpose, so I decided to at
least fix it at the higher level.

A couple of thoughts come to mind for why things are this way:

1. Do we process the layouts sequentially? If so, it might just be
difficult to see a date layout after the code to make the title is
written and go back. Perhaps we would need two runs?

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.

Hopefully someone else can enlighten us.

Scott

Attachment: signature.asc
Description: PGP signature

Reply via email to