Skip to content

Instantly share code, notes, and snippets.

@gioAlea
Last active October 13, 2015 04:23
Show Gist options
  • Save gioAlea/00b916524d085a6258b1 to your computer and use it in GitHub Desktop.
Save gioAlea/00b916524d085a6258b1 to your computer and use it in GitHub Desktop.
Tutorial on how to add the JACoW document class to LyX

Tutorial on how to add the JACoW document class to LyX

Based on a tutorial from @inspectorgadget found here.

Step 0:

Download the JACoW class from here.

Step 1:

Find the LaTeX directory: go to LyX > Tools > TeX Information > LaTeX Classes > Show path. For me it was ~/.lyx/texlive/texmf-dist/tex/latex/ Once you have found the folder path, go to it and add to it a new directory named lyx in the folder by doing

sudo mkdir lyx

Then copy the class file in the newly created directory:

sudo cp ~/jacow.cls ~/.lyx/texlive/texmf-dist/tex/latex

Step 2:

Make a new .layout file with the same name of the class file i.e.

sudo gedit jacow.layout

Copy the following text in the newly created file and save it:

#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass[jacow]{article (jacow)}
# Input general definitions
Input stdclass.inc

#####Step 3:

Copy the jacow.layout file into your package content. For me it was ~/.lyx/layouts/ Copy the jacow.layout file in it:

sudo cp jacow.layout ~/.lyx/layouts

Step 4:

Reconfigure LaTeX by command prompting

sudo texhash

Step 5:

Open LyX, and then go to Tools > Reconfigure. Once the reconfiguration is over, you will be told to restart LyX for the new document classes to be available. Restart Lyx.

Step 6:

In LyX, go to Document > Settings > Document Class > article(jacow)

Start writing happily your article in JACow template with LyX!

@sivanandareddy
Copy link

Thanks for your tutorial. It saved my day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment