Saturday, April 21, 2012

How to install a class file in Mac Lyx

Insufficient number of Mac users does not necessarily mean they do not use Mac version of Lyx.  Indeed, the documents like Lyx Wiki (http://wiki.lyx.org/FAQ/MacInstall) regarding Mac installation have many errors, which may hinder some beginners of Lyx user to install and apply a well-made customized layout file.  Here I am discussing some skills of the layout file installation on a Mac.

Generally, there are two steps.  First you have to deal with Latex, and then you should do some work on Lyx. 

1.  Copy the class into /usr/local/texlive/2011/texmf/tex/latex/
You will be promoted to provide the pass code of root access.  Some beginners may wonder how to enter this folder.  For those of you who have such question, please refer to my previous article (http://haoapec.blogspot.com/2012/04/to-install-and-apply-lyx-style-file-in.html)


2.  In terminal, type and run "sudo texhash"

3.  Now let's focus on Lyx.  Go to "Applications", right click "Lyx", and select "Show contents"

4. Navigate to "/Contents/Resources/layouts"

5. Copy your self-made layout file to here.  How to make this file?  Please refer to my previous article (http://haoapec.blogspot.com/2012/04/use-your-own-lyx-class.html)

6. Reconfigure Lyx and restart it. 

Finally you will be able to use this layout.




No comments:

Post a Comment