[Tex/LaTex] How tonstall an Unavailable Document Class for LyX on Windows

document-classeslyxlyx-layouts

I am writing a paper that needs to be formatted using the LNCS style, which is not available out of the box with LyX 2.2.3. How do I install it on my LyX install for Windows 10 x64?

Best Answer

The following worked for me. It's a hybrid of this online how-to and my older question on how to do this on Mac OS X

Step 0: Quit LyX

Step 1:

Download llncs2e.zip, which contains llncs.cls and llncsdoc.sty. I just googled for a download link and got mine from here

Step 2:

Copy those files to the folder ... \ MiKTeX 2.7 \ tex \ latex \ lncs, where ... \ MiKTeX 2.7 is the folder in which MiKTeX is installed. On some systems, copy to ... \ MiKTeX 2.7 \ texmf \ latex \ lncs. The lncs folder will probably need to be created.

Mine was in C:\Program Files (x86)\MiKTeX 2.9\tex\latex, where I had to create the lncs folder (which requires admin privilege escalation). I extracted llncs.cls and llncsdoc.sty to this folder.

Step 3:

Run "texhash" from the command line.

Open up cmd and run texhash. Very straightforward

Step 4:

Run MikTex Settings. Press "Refresh FNDB" under General. Then, possibly, "Update Formats".

It wasn't obvious to me where MikTeX Settings was. This other SX post showed me what to do. Just look for admin in the Start Menu's search bar and you'll see MikTeX Settings (Admin)

Step 5:

Open Lyx and select Tools -> Reconfigure

Very straighforward

Step 6:
You're done. Go do a happy dance or something