________________________________________
From: Jean-Marc Lasgouttes <[email protected]>
Sent: Thursday, October 15, 2015 3:25 PM
To: Weijie Chen; Liviu Andronic
Cc: [email protected]
Subject: Re: Lyx fundamental problem in interpreting new document classes?

Le 15/10/2015 17:48, Weijie Chen a écrit :
> Thank you for the helpful information and suggestions.
>
> I want to take the opportunity to reiterate my existing problem - the more 
> important one: the abstract and keywords are missing from the output file 
> (pdf, dvi, ...).
> What I did is the following (all the files mentioned are attached):
> 1. add sagej.cls to my texlive and put the layout file (sagej.layout) to the 
> desired location so that Lyx can find and list "article(sagej)" as a document 
> class (see screenshot file Lyx_sagej.png);
> 2. edit a file (test_sage.lyx) (see screenshot file Lyx_sagej.png).
> 3. viewpdf and save a copy as test_sage.pdf, in which the abstract and 
> keywords doesn't show.

Add the following to your layout file:

Style Abstract
   Intitle 1
End

In your .lyx file, skip the "From: somewhere on earth" part.
What is it supposed to be? Your affiliation?

The Title, Author, Keyword and Abstract paragraphs should be consecutive
(without anything else in between). This is because, together, they form
the complete title of the document.

Hope this helps. I do not have time to delve more deeply in sagej layout
file definition, unfortunately.

JMarc

Yes! Problem solved. Thanks a million!
The "From:.." was indeed the affiliation. It doesn't work if I use the 
"Address" item in the layout drop-down menu for the affiliation. Instead, I 
used Tex code in the "Author" section to add affiliation and correspondence 
author information and it works perfect. As you said, it seems nothing can be 
put between Title, Author, Abstract, and Keywords (although I don't know why 
there is the "Address" option there in the drop-down menu available for the 
user).
Thanks again. It looks I need to better understand how to write a layout file 
if I get similar problems in the future for other document classes.

Reply via email to