Dear all,
The addition of document classes in LyX is for sure one of the most
debated topic. I also have had the problem in the past, and with
evolving LyX (on OSX) the way to solve has become more and more easy.
Just as an example, I have installed svmono from springer in this easy
way (MAC OSX 10.5.5):
1)
download and unpack the svmono.zip from Springer
2)
Perform TeX implementation update:
a)
copy files svmono.cls, svmult.cls e svind.ist into
~/Library/texmf/tex /latex
(if a folder does not exist, then create it)
b)
copy file svind.ist into
~/Library/texmf/tex /makeindex
(if a folder does not exist, then create it)
3)
LyX implementation update: (here the problem comes)
a)
find a .layout file to modify:
- ctrl-click on the LyX package and select "show content" from the menu
- go inside the Resources folder and then into the layouts folder
- copy the book.layout file on the Desktop and rename it svmono.layout
- modify the second row from
# \DeclareLaTeXClass{book}
to
# \DeclareLaTeXClass{svmono}
b)
copy svmono.layout into
~/Library/Application Support/Lyx-1.5/layouts
c)
start LyX and from the LyX menu select Reconfigure
END of the story
___________________________________________
Now, usually everybody has the .cls files, and nobody knows how to
create the .layout file
Here is my proposal:
Even if not tested, and then not included into the LyX distributions,
why don't we start to collect them and put somewhere on the web site,
may be with a WARNING-UNRELIABLE MATERIAL label?
I truly believe this would help a lot!
Just in case, here is my svmono.layout file:
___________________________________________________
#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass{svmono}
# Book textclass definition file. Taken from initial LyX source code
# Author : Matthias Ettrich <[EMAIL PROTECTED]>
# Transposed by Pascal AndrĂˆ <[EMAIL PROTECTED]>
# Heavily modifed and enhanced by serveral developers.
# Input general definitions
Input stdclass.inc
# Global parameters.
Sides 2
PageStyle Headings
# There is no abstract environment in book.cls
NoStyle Abstract
# a few changes to the bibliography
Style Bibliography
TopSep 4
LabelString Bibliography
# label font definition
LabelFont
Series Bold
Size Huge
EndFont
End
______________________________________________________
___________________________________________________
Prof. Giorgio Zavarise
Chair of Structural Mechanics
Department of Innovation Engineering
University of Salento
Via per Monteroni - Edificio "La Stecca"
I-73100 LECCE - Italy
tel. +39 0832 297 275
fax +39 0832 325 362
handy +39 338 269 0187
e-mail [EMAIL PROTECTED]
skype giorgio.zavarise
web http://staff.polito.it/giorgio.zavarise
___________________________________________________