Re: Trying to get lyx to find a .cls file
There are two locations that come to mind: ~/Library/texmf/... /usr/local/texlive/texmf-local/... I use the latter and had to edit (use the smaller mactex-basictex-20180417.pkg) /usr/local/texlive/2018basic/texmf.cnf to make TEXMFLOCAL look like TEXMFLOCAL = /usr/local/texlive/texmf-local so that texhash can find the local tree. The layout point is of course a good one, anyway. el On 07/08/2018 01:23, Paul A. Rubin wrote: > On 08/06/2018 04:58 PM, Melvyn Goldstein wrote: >> Hello, >> Can some one tell me where to put a .cls file so that lyx (2.3) can >> find it? >> I’m using Tex-live on a Mac (OS10.13.4). I have the Copernicus style >> files (.cls, in particular). But lyx can’t seem to find it. I’ve >> put them in the folder with the document and have also tried to put >> them in a couple of places in the texmf installation. I’ve used used >> ‘texhash’ in the terminal and ‘reconfigure’ in lyx. But lyx still >> complains and uses a fairly useless default. >> >> I’ve also, in lyx, gone into Document Settings and tried to point to >> the file, but lyx doesn’t seem to recognize the file as something it >> can read, so I haven’t been able to select it. >> >> Thanks very much! >> Melvyn Goldstein > In order to use a class file, LyX needs to have a layout file for the > class. The layout file is unique to LyX, telling it how to translate > class constructs into the GUI. I just looked in the directory of > layout files that come with LyX and did not see any names that > screamed "Copernicus" to me. Do you have a layout file (.layout > extension) for it? > > Paul > >
Re: Trying to get lyx to find a .cls file
On 08/06/2018 04:58 PM, Melvyn Goldstein wrote: Hello, Can some one tell me where to put a .cls file so that lyx (2.3) can find it? I’m using Tex-live on a Mac (OS10.13.4). I have the Copernicus style files (.cls, in particular). But lyx can’t seem to find it. I’ve put them in the folder with the document and have also tried to put them in a couple of places in the texmf installation. I’ve used used ‘texhash’ in the terminal and ‘reconfigure’ in lyx. But lyx still complains and uses a fairly useless default. I’ve also, in lyx, gone into Document Settings and tried to point to the file, but lyx doesn’t seem to recognize the file as something it can read, so I haven’t been able to select it. Thanks very much! Melvyn Goldstein In order to use a class file, LyX needs to have a layout file for the class. The layout file is unique to LyX, telling it how to translate class constructs into the GUI. I just looked in the directory of layout files that come with LyX and did not see any names that screamed "Copernicus" to me. Do you have a layout file (.layout extension) for it? Paul
Trying to get lyx to find a .cls file
Hello, Can some one tell me where to put a .cls file so that lyx (2.3) can find it? I’m using Tex-live on a Mac (OS10.13.4). I have the Copernicus style files (.cls, in particular). But lyx can’t seem to find it. I’ve put them in the folder with the document and have also tried to put them in a couple of places in the texmf installation. I’ve used used ‘texhash’ in the terminal and ‘reconfigure’ in lyx. But lyx still complains and uses a fairly useless default. I’ve also, in lyx, gone into Document Settings and tried to point to the file, but lyx doesn’t seem to recognize the file as something it can read, so I haven’t been able to select it. Thanks very much! Melvyn Goldstein