winson wrote:
Hello there:

I am planning to submit a paper to a journal. The
format of the journal paper is provided as a style
file, say 'ndst.sty'.
I am using LyX 1.42 on Windows XP. Following the
instructions in 'Customization' manual, I did the
following:

1)I made a copy of 'artical.layout', and renamed it to
'ndst.layout'.

2)I modified the top lines of 'ndst.layout' to
#% Do not delete the line below; configure depends on
this
#  \DeclareLaTeXClass[article,
ndst.sty]{article(ndst)}

Preamble
        \usepackage{ndst}
EndPreamble

The remaining lines of 'ndst.layout' are kept
unchanged.

After I reconfigured LyX and re-started LyX, the
document classs Article(ndst) is still marked as
'UnAvailable'.

This may be caused by that the system could not locate
file 'ndst.sys', as I am not sure where to put it. I
would appreciate if anyone can give me some help on
how to configure LyX on Windows XP, so that the
document class in style file can be applied to my
paper.


If you have not already done so, you first need to put ndst.sty in a directory where LaTeX will find it and then refresh the LaTeX file name database. After that, you need to reconfigure and restart LyX.

Where to put ndst.sys is somewhat up to you. If you have a localtexmf directory defined, my suggestion would be to put it in a directory such as <localtexmf>\tex\latex\ndst (which you will need to create). If you don't have a localtexmf, you can put it under <texmf>\tex\latex\ndst, where <texmf> is the root of your LaTeX distribution. (If you're a MikTeX user, which is likely, try running

kpsewhich article.cls

from a DOS prompt. It should cough up blah/blah/blah/base/article.cls. Change 'base' to 'ndst' and put it there.)

As to how you refresh the file name database, that varies by LaTeX distribution. If you're a MikTeX user, run the Options application from the Start menu and click 'Refresh FNDB' on the General tab. Then reconfigure/restart LyX

/Paul

Reply via email to