On 10/17/2010 6:44 AM, Agustin Lobo wrote:
Hi!

I'm trying to use Lyx to write an article
for SpringerVerlag (svjour3 class) but ...

1. Under Document/Properties/Document Class I have many items
as "Unaivalable:article (*)", what do I have to do in order
to have them available?

That means LyX has a layout file for the document class, but the document class itself is not installed under LaTeX. Install the corresponding LaTeX class (exactly how depends on your distribution) and then reconfigure LyX.

2. I've downloaded
http://www.springer.com/cda/content/document/cda_downloaddocument/LaTeX.zip
(which has, among others, the file svjour3.cls)
and installed according to section 5.1 in:
/usr/share/lyx/doc/Customization.lyx

and made a file svjour3.layout
#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass[svjour3]{article (svjour3)}
# Input general definitions
Input stdclass.inc

and saved it to
/home/alobo/.lyx/layouts
as mentioned in
http://stefaanlippens.net/customLaTeXclassesinLyX

I do not think that was necessary. There is a layout file (svglobal3.layout) supplied with LyX that I think should work. What version of LyX are you using? In 1.6.7, the article class is listed as "article (Springer svjour3/global)" in the document class list.

Then sudo texhash, open lyx and Tools/Reconfigure, quit and start lyx
again...
but still all I get is a "Unavailable: article (svjour3)" listed
under Document/Properties/Document Class

3. Perhaps this is because:
3.1. My env variables are not set, despite I do have the
/usr/share/texmf/web2c/texmf.cnf file.
3.2. My Tools/Preferences/Paths/PATH prefix field in Lyx is empty

Try 'kpsewhich svjour3.cls' in a terminal (as yourself, not as root) to make sure that texhash found it. If so, check whether you have the svglobal3 layout file installed with LyX and, if so, try removing your layout file and reconfiguring LyX again.

/Paul

Reply via email to