Go to page:

Search:   Help

Navigation

Groups

LyX documentation

Edit

Shared groups

Links

CreatingLayouts

Categories: Layouts
<< Homepage | Page list | AMS >>

Tips and links related to creating your own LyX layout-files

This page contains tips, notes and links related to creating your own layout-files for LyX.

Contents

Pages, sites and other resources related to creating layouts

  • LyX documentation: Help→Customization (chapter 5)
  • Links and examples in the Layouts group in this wiki.
  • See also the tutorials-page. I think all of this is covered in Steve Litt's tutorial (LyX Quickstart or the other one)

Background

This page answers the FAQ "How do I make LyX recognize a new LaTeX class?" It was created in response to a question in LyxUsersPost:13975

I would like to submit a paper for siggraph, a computer graphics conference, and they defined some guidelines for paper formatting and delivery everybody has to follow.

They even provide some LaTeX class and BibTeX style files (acmsiggraph.zip [www.siggraph.org]) but I would love to write the paper not with LaTeX but LyX.

Can I use LaTeX class files and BibTeX style files in LyX?

Quick'n dirty answer

First you have to install the latex class and bibtex bst so that it works with latex (put in place and run texhash).

[ RedHat 9.0 / Fedora Core 1,2,3 : latex class location is /usr/share/texmf/tex/latex; make a directory inside this directory called acmsiggraph and place acmsiggraph.cls inside. The bibtex .bst location is /usr/share/texmf/bibtex/bst/; make a directory inside this directory called acmsiggraph and insert .bst file. The .bib file location is /usr/share/texmf/bibtex/bib; make a directory inside this directory called acmsiggraph and insert .bib file. Now run "texhash" . This will reconfigure latex and make it available for lyx. ]

Using their BibTeX style should be very easy. After an Tools>Reconfigure from lyx, it should show up in the drop-down list of available bibtex styles and you can select it as usual.

For using their LaTeX-class, you'll have to write your own LyX-layout. (It shouldn't be that difficult...)

Find the basis class for your new class. Lets assume, the LaTeX class amcsiggraph.cls is a descendant of article.cls, then the lyx layout to use is article.layout. Save the following to a file acmsiggraph.layout in your layouts directory (~/.lyx/layouts/ on UNIX):

 
#% Do not delete the line below; configure depends on this      
#  \DeclareLaTeXClass[acmsiggraph]{ACM SigGraph}

# Read the definitions from article.layout
Input article.layout
 

ACM SigGraph is the text you will see in the Layout>Document>Document-Class drop-down list. (After Tools>Reconfigure and a restart of lyx.)

For a more detailed answer and example files, see the links above.

Layouts

Edit - History - Print - Recent Changes - All Recent Changes - Search
Page last modified on 2007-09-18 15:35 CEST