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
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

2 Answers 2

up vote 4 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:


to read

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

Then add:


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

The easy way:

  1. Put the .sty file in the same folder which contains the .lyx file.

  2. Open the .lyx file, go to Documents > Settings > LaTeX preamble.

  3. Add this code:

  4. Click apply.


share|improve this answer
How is this different compared to the answer by vaettchen, apart from being shorter and missing some proper formatting? –  Christian Hupfer 3 hours ago
@ChristianHupfer Different technique. vaettchen's answer sets up a custom layout so you can select this, and that layout includes adding the package to the preamble. Mandrivagnome's answer just involves adding the package to the preamble (the part the user can modify). –  Torbjørn T. 3 hours ago
@TorbjørnT. Alright, accepted –  Christian Hupfer 2 hours ago

Your Answer


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.