# [LyX] Installing New Document Layouts and Classes

LyX is my favourite tool for LaTeX processor. The one problem I encounter anytime with fresh-installed Lyx is the layout and document class. This method has been tested on LyX 2.2 and 2.3; I am not certain about this issue being automated in the future version.

### Here goes:

Suppose you are trying to install ACM sig-alternate template.

1. LyX layout file, unfortunately I do not know any official source for this and found only ones which contributed by the community. Do a search with “LyX sig-alternate layout”. This one works
Credit to JackKelly.
2. LaTeX template package from ACM SIG Proceedings Templates
2. Browse to your LyX installation directory, assume C:\Program Files\LyX 2.3
1. Go to Resources and layouts
2. Put sig-alternate.layout here
3. Create a directory under your Tex distribution, assume that we are talking about MikTeX for Windows:
C:\Program Files\MiKTeX 2.9\tex\latex\sig-alternate
The name sig-alternate is important as the name has to match between LyX layout and LaTeX distribution database.
4. Extract the ZIP file into the aforementioned directory. You only need CLS, STY, and BIB files in this directory though.
5. At MikTeX Settings (or Console), run Update/Research Filename Database (FNDB). The name of the command menu varies by MikTeX version. This database is important for LyX to discover new template.
6. At LyX, run Tools and Reconfigure
7. Restart LyX
8. That’s it!