Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to write a paper for a conference that requires the use of a specific style-sheet, see here: http://www.acl2012.org/call/sub01.asp under "ACL 2012 Style Files".

I would like to use LyX for writing the paper, but, as far as I see, LyX works with .layout files.

How can I convert the acl2012.sty file to a format that LyX can understand?

share|improve this question
2  
Did you check the LyX help file "Customization", here item 5.2.2? I think this answers your question. –  vaettchen Oct 15 '12 at 15:12
    
Straight and to the point, thank you! –  Erel Segal Halevi Oct 15 '12 at 20:33
    
@vaettchen Can you turn your comment into an answer (maybe expanding it a bit)? –  egreg Feb 2 '13 at 22:23
add comment

1 Answer

up vote 3 down vote accepted

Taken from the LyX help file and adapted for the given circumstances:

Start by copying the existing class's layout file into your local directory (I assume the underlying class is report and we work in Linux):

cp report.layout ~/.lyx/layouts/acl2012.layout

Then edit acl2012.layout and change the line:

\DeclareLaTeXClass{report}

to read

\DeclareLaTeXClass[report, acl2012.sty]{report (acl2012)}

Then add:

Preamble     
    \usepackage{acl2012}
EndPreamble

near the top of the file.

Start LyX and select Tools->Reconfigure. Then restart LyX and try creating a new document. You should see report (acl2012) as a document class option in the Document->Settings dialog.

In case of complications (sectioning commands working differently etc.) consult the LyX help file that contains further information.

share|improve this answer
    
Thank you! Can you please add explanation about how to incorporate the bibliography style file - acl.bst ? Usually .sty and .bst files change together, so it makes sense to relate to both of them... –  Erel Segal Halevi Feb 5 '13 at 5:08
    
Have you tried copying the .bst file into the same directory where your .lyx file is, and then using the style as is from there? You would call the usual Insert -> List / TOC -> BibTex Bibliography menu and select the acl2012 from the browse window. I didn't check this specific one thoroughly but it should work. –  vaettchen Feb 5 '13 at 7:08
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.