[Tex/LaTex] LyX template prerequisites on Mac are missing

lyxlyx-layoutstemplates

This is my first time using LyX to write my thesis.

Running on Mac (OSX 10.9) and downloaded LyX Version 2.1.1.

I noticed that there is no installer. All LyX files are bundled here:

(1) /Applications/LyX.app/

Below (where LyX looks in for templates) is empty:

(2) /Library/Application Support/LyX-2.1/

So, I copied relevant files from (1) to (2).

Now, LyX sees the templates.

But, LyX complains that I am missing template prerequisites when I try to load them.

For example, I tried to load this template:

https://ccrma.stanford.edu/~dtyeh/thesistemplate.html

I got:

"Document cannot be compiled until the following prerequisites are installed: report.cls"

Similar flags are thrown for the other default Lyx templates.

How and where do I get these template prerequisites?

I have MacTex installed.

I must be missing something: it should not be this hard.

Thanks!

Lance

Best Answer

To make LyX aware of installed packages, run reconfigure (Tools → Reconfigure).

If you need another package that is required by LyX and not provided by MacTeX, install it in ~/Library/texmf or /usr/local/texlive/texmf-local.

If you choose to install in /usr/local/texlive/texmf-local, you will need to run mktexlsr /usr/local/texlive/texmf-local in order for TeX to find the files. If you install in ~/Library/texmf, this is not necessary.

Don't forget to reconfigure LyX again.


As @cfr already pointed out: do not copy stuff from the application package to some place else. Instead do a clean install of LyX (remove the App with AppTrap or a similar tool if necessary) and MacTeX. Aaand reconfigure LyX.