On 09/15/2017 01:58 PM, John Parejko wrote: > I'm getting the following LyX error when building my project [1] > (which has a custom class and layout[2]), both when outputting PDF or > when exporting to LaTeX (XeTeX), although the created LaTeX and PDF > appear to be fine: > > > You are using at least one layout (Date) intended for the title, after > using non-title layouts. This could lead to missing or incorrect output. > > > I've defined Date, Title, Author, Abstract, and DocumentReference (a > custom command) in the layout as "InPremable 1" (our LaTeX class > expects them to come before \begin{document}), but still get the above > message.
You need to define DocumentReference also as "InTitle 1". It might seem as if InPreamble should do this automatically, but there are cases where they come apart. Maybe "InPreamble 1" should by default imply "InTitle 1", but at the moment it doesn't. Richard