Any conference/ journal template will generally provide with .cls, .aux, .bib, .bbl, .tex, .blg, .bst files. What are the roles of these files?
.cls is a document class file (like the standard
report; you use them via
.bst is a bibliography style file (written in
bibtex's own Forth-like language).
These are actual style files you need to point LyX to; the rest either belong to an example paper (
.tex) or are temporary files produced when this paper is compiled (
.blg) — probably included in the style pack by mistake.
There may be some
.sty files present as well (these are the ones you include via
How can one integrate these files to LyX? Where should you place these files and how can you get started?
The files (
.bst) should be placed to standard TeX search directories. These may vary depending on OS/distribution, and on TeX distribution. For example, on Ubuntu and with TexLive, these are:
~/texmf/ if you want these files to be accessible for you only, and
/usr/share/texmf/ if you want them to be accessible system-wide.
(see https://help.ubuntu.com/community/LaTeX for details). In order to test that this part works, take
.bib files from the conference/journal pack, place them in the separate directory and try to compile with TeX.
Now for the layout. LyX layouts are the way to describe how the style's sectioning commands and (possibly) other macros are represented in LyX's GUI. For example, this code in the layout file (taken from RevTeX layout file, with some omissions for simplicity):
adds "Affiliation" to the list of styles at the top left, in the "FrontMatter" category, and when you select it, it shows the label "Affiliation:" in italic to the left from the paragraph you are typing; and when the file is compiled, this paragraph is placed into the
Fairly extensive documentation can be found in LyX docs, "Customization" part, section 5 "Installing New Document Classes, Layouts, and Templates". Or you can just look for existing layout files (not sure where LyX keeps them on Ubuntu, look for
*.layout) and hack away.