Paul,
Thanks for your answer.
1. I appologize not mentioning I'm using Lyx 1.6.5 on ubuntu 9.10
2. kpsewhich svjour3.cls does not produce any result, despite the fact I do have
/home/alobo/tex/latex/svjour3/svjour3.cls
3. I do have /usr/share/lyx/layouts/svglobal3.layout, but have that class liste
as Unavailable.
4. You say: "Install the corresponding LaTeX class (exactly how depends on your
distribution) and then reconfigure LyX."
but how? I've followed directions from /usr/share/lyx/doc/Customization.lyx,
which I thought was the official directions.
Agus
Sun, 17 Oct 2010 07:18:12 -0700
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
--
Dr. Agustin Lobo
Institut de Ciencies de la Terra "Jaume Almera" (CSIC)
LLuis Sole Sabaris s/n
08028 Barcelona
Spain
Tel. 34 934095410
Fax. 34 934110012
email: agustin.l...@ija.csic.es
http://www.ija.csic.es/gt/obster