Discussion:
Installing CTAN package and making it work in Lyx
Bennett Helm
2008-08-28 11:54:28 UTC
Permalink
I would like to use the following CTAN package (specifically, the
'brief' layout class) [1]. But for some reason, I cannot seem to get
it to work in my setup. I've spent quite some time searching the
internet for ways to accomplish this, but none make the document class
appear in Document -> Settings -> Document Class. I use Lyx 1.5.6 on
Mac OS X Leopard (10.5.4) using the MacTex / Tex Live 2007
distribution. Any help to make this work is greatly appreciated.
It would help if you'd let us know what you've done!

Assuming you've put the package files in the relevant directory
(~/Library/texmf/tex/latex), my guess is that you haven't gone to
Terminal.app and run "texhash" (without the quotes).

Bennett
Daan Stolp
2008-08-28 12:01:43 UTC
Permalink
Post by Bennett Helm
I would like to use the following CTAN package (specifically, the
'brief' layout class) [1]. But for some reason, I cannot seem to get
it to work in my setup. I've spent quite some time searching the
internet for ways to accomplish this, but none make the document class
appear in Document -> Settings -> Document Class. I use Lyx 1.5.6 on
Mac OS X Leopard (10.5.4) using the MacTex / Tex Live 2007
distribution. Any help to make this work is greatly appreciated.
It would help if you'd let us know what you've done!
Assuming you've put the package files in the relevant directory
(~/Library/texmf/tex/latex), my guess is that you haven't gone to
Terminal.app and run "texhash" (without the quotes).
That's exactly what I did, and my many attempts usually mean doing
this procedure (copying the cls files, running texhash, reconfigure
LyX), but trying to place the .cls files in various different folders.
I've also run the texhash command, also as "sudo", but this does not
make the class show up in LyX. Running Lyx -> Reconfigure afterwards
makes no difference.

Any other suggestions or things I may have missed?

Regards,
Daan
Konrad Hofbauer
2008-08-28 12:35:29 UTC
Permalink
Post by Daan Stolp
Any other suggestions or things I may have missed?
Does it work without LyX (using latex only)?

If not, you may have to "compile" the package?

From
http://wundt.uni-graz.at/hockemeyer/l2short/english/lshort-node70.html

Packages such as geometry, hyphenat, and many others are typically made
up of two files: a file with the extension .ins and another with the
extension .dtx. There will often be a readme.txt with a brief
description of the package. You should of course read this file first.

In any event, once you have copied the package files onto your machine,
you still have to process them in a way that (a) tells your TEX
distribution about the new style package and (b) gives you the
documentation. Here's how you do the first part:

1. Run LATEX on the .ins file. This will extract a .sty file.
2. Move the .sty file to a place where your distribution can find
it.
3. Refresh your distribution's file-name database.

Now you can extract the documentation from the .dtx file:

1. Run LATEX on the .dtx file. This will generate a .dvi file. Note
that you may have to run LATEX several times before it gets the
cross-references right.
2. Check to see if LATEX has produced a .idx file among the various
files you now have. If you do not see this file, then you may proceed to
step 5.
3. In order to generate the index, type the following:
\fbox{\texttt{makeindex -s gind.ist \textit{name}}}
(where name stands for the main-file name without any extension).
4. Run LATEX on the .dtx file once again.

5. Last but not least, make a .ps or .pdf file to increase your
reading pleasure.

Sometimes you will see that a .glo (glossary) file has been produced.
Run the following command between step 4 and 5:

makeindex -s gglo.ist -o name.gls name.glo

Be sure to run LATEX on the .dtx one last time before moving on to step 5.


HTH,
Konrad
Daan Stolp
2008-08-28 10:46:02 UTC
Permalink
I would like to use the following CTAN package (specifically, the
'brief' layout class) [1]. But for some reason, I cannot seem to get
it to work in my setup. I've spent quite some time searching the
internet for ways to accomplish this, but none make the document class
appear in Document -> Settings -> Document Class. I use Lyx 1.5.6 on
Mac OS X Leopard (10.5.4) using the MacTex / Tex Live 2007
distribution. Any help to make this work is greatly appreciated.

Thanks,
Daan

[1] http://www.ctan.org/tex-archive/macros/latex/contrib/ntgclass/
Paul A. Rubin
2008-08-29 21:40:30 UTC
Permalink
I would like to use the following CTAN package (specifically, the
'brief' layout class) [1]. But for some reason, I cannot seem to get
it to work in my setup. I've spent quite some time searching the
internet for ways to accomplish this, but none make the document class
appear in Document -> Settings -> Document Class. I use Lyx 1.5.6 on
Mac OS X Leopard (10.5.4) using the MacTex / Tex Live 2007
distribution. Any help to make this work is greatly appreciated.
Thanks,
Daan
[1] http://www.ctan.org/tex-archive/macros/latex/contrib/ntgclass/
Did you create a LyX layout file for it? (Help -> Customization, chapter 5)

/Paul

Loading...