Dear jonathan,

  Certainly the instructions for installing new classes and styles aren't
terribly clear. This is what I did to install the layout
"acmtrans2e" described in latex by acmtrans2e.cls and acmtrans.bst I hope
that it will be helpfull.

(Note: acmtrans2e has the same enviroments than article)

1)  mkdir /usr/share/texmf/tex/latex/acmtrans2e
2)  cp acmtrans2e.cls /usr/share/texmf/tex/latex/acmtrans2e/.
3)  mkdir /usr/share/texmf/bibtex/bst/acmtrans2e
4)  cp acmtrans.bst /usr/share/texmf/bibtex/bst/acmtrans2e/
5) cp  /usr/share/lyx/layouts/article.layout
$HOME/.lyx/layouts/acmtrans2e.layout
6) edit $HOME/.lyx/layouts/acmtrans2e.layout
7) replace second line by #  \DeclareLaTeXClass{acmtrans2e}
7.5)  texhash
8) start lyx
9) edit->reconfigure
10) exit lyx
11) start lyx again

(NOTE: you may try with book.layout instead article.layout)

   hope this helps

       Roberto

On Wed, 30 May 2001, Jonathan Wilson wrote:

> Hello,
> 
> I'm sorry to post such a lame question to the list but this is my situation:
> 
> I'm a Linux system Administrator and as such, know a bit about using Linux, but I 
>don't know a thing about LyX, LaTeX or  TeX, or any form of typesetting. My church, 
>after examining all the options  on all platforms, including things like Quark and 
>Ventura, has decided to use LyX for some publications due to the fact that we have 
>lots of trouble with footnotes in all the other commercial software, and lyX seems 
>like it can fix that. So I have set up a SuSE Linux box for them to try running lyx 
>on. 
> 
> Everything's been going well until they decided to make a new class file. It's 
>actually a set of .cls, .sty and .clo files that they previously set up and got 
>working in some application on windows -- I belive it was Winshell or WinTeX, if that 
>sounds correct ( I know it wasn't MikTeX).
> 
> We have the LyY Users' Guide and other online stuff, a few books about LaTeX and one 
>book about LyX specifically, I can't remember the name of the book. I do know that 
>the book is somewhat out of date, for example it talks about using 
>Options>Reconfigure, and I see now that Reconfigure is under Edit.
> 
> Before I go any further I should note that I am using the very latest version of 
>lyx, I downloaded it just today (1.1.6fix2-1 I belive, before now we've been using 
>fix1-2), not the version that came with SuSE. This could possibly be the source of 
>some of my troubles, since SuSE had a very complex .lyxrc that was obviously there 
>for a reason, but the lyx from lyx.org choked over it so we had to delete it.
> 
> The instructions for installing new classes and styles aren't terribly clear but I 
>did see a section that to my memory read something like this:
> 
> "       To install a new class file (.cls) place it under $UserDir/layouts/ or 
>$LyxDir/layouts, choose  Options>Reconfigure and restart lyx. "
> 
> That's not verbatim, but it is close. Now I can say this: the class we're trying to 
>install is called bookCP.cls, and I have placed that file, along with bookCP.sty, in 
>~/.lyx/layouts/ /usr/share/lyx/layouts and /usr/share/texmf/tex/latex/base/ after 
>which i have tried running texhash and Options.Reconfigure dozens of times and 
>nothing works -- bookCP never shows up along with the rest of the things in in Layout 
>>Document . 
> 
> It should be right there along side book and boo (AMS) and the rest, shouldn't it?
> 
> By the way, after putting it in /usr/share/texmf/tex/latex/base/ and running 
>texhash, it does show up in /usr/share/texmf/ls-R. But never in LyX.
> 
> The only other thing I could think of was the variables that were mentioned. trying 
>things like "echo $USERDIR" "echo $userdir" "$echo UserDir" (BTW, it's a very bad 
>idea to have mixed case env variables - shell variables should always be upper case 
>for sanity's sake) revealed nothing, so I thought maybe that was the problem, but 
>after setting them buy hand, I ran texhash again and Edit>Reconfigure.
> 
> Anyway, the short story is: I've been reading books and User's guides for 2 weeks 
>now off and on, and I'm not getting anywhere. Surely it's not that hard. Hey, it 
>didn't take me /this/ long to learn how to setup postfix ;-)
> 
> 
> Can anyone tell me what I'm doing wrong, or even better, what the correct thing to 
>do is?
> 
> Thanks a million in advance,
> 
> 
> ----------------------------------------------------
> Jonathan Wilson
> System Administrator
> 
> Cedar Creek Software     http://www.cedarcreeksoftware.com
> Central Texas IT     http://www.centraltexasit.com
> 

Reply via email to