lyx_mirror/lib/layouts/svmult.layout
Richard Heck df5409d1c8 Updates to sv* layouts, from Marcus Kriele.
Notes from his email:

=====================

The following issues still persist:

1) LyXHTML export generates incorrect html files.  The problem is due to the table of contents, but I am not at all familiar with html and do not know how to fix this.

2) "Short title" for optional arguments does not work.  This is intentional in order to guarantee backward compatibility.  One can use ERT instead of "Short title".  (By the way, wouldn't it be advisable to change the GUI?  For a new user it would be hard to guess the general  meaning of  "Short title".)

3) Numbering of theorems within LyX does not work.  I tried to copy the implementation of  the theorem-sec.module but LyX does not pick up the correct \thetheorem value.  I have a hunch that this is due to Springer's replacement of the "\newtheorem" command with their own "\spnewtheorem" command.  \thetheorem is still defined and provides the correct value via ERT, but but I was unable to use it through through the layout mechanism.

4) Book authors may need the LaTeX commands \sidecaption and \sidecaption[t] for the correct placement of figure captions. tex2lyx does not know \sidecaption[t]. Georg wrote this command would be imported correctly if it was registered in the file "lib/synlib/syntax.default".

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39114 a592a061-630c-0410-9148-cb99ea01b6c8
2011-06-16 21:25:52 +00:00

227 lines
3.8 KiB
Plaintext

#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass[svmult,natbib.sty]{book (Springer svmult)}
# Author: Koji Yokota <yokota@res.otaru-uc.ac.jp>
# adapted: Marcus Kriele <mkriele@mac.com> (April 2011)
#
# Supports: SVMULT DOCUMENT CLASS -- version 5.4 (25-Jun-07)
# Class and style files and templates are found at:
# http://www.springer.com/authors
#
Format 35
Input svcommon.inc
ClassOptions
FontSize 10
End
NoStyle Acknowledgements
#NoStyle Acknowledgement
Counter svmultlsti
LabelString "Contributor \Roman{svmultlsti}:"
End
# Additional headings
Style MiniTOC
CopyStyle Running_Title
LatexType Command
LatexName svmulttoc
LeftMargin "TOC depth (provide a number):xxx"
LabelString "TOC depth (provide a number):"
Preamble
\newcommand{\svmulttoc}[1]{\setcounter{minitocdepth}{#1}\dominitoc}
EndPreamble
End
Style Title*
CopyStyle Title
LatexName title*
LabelString "Title*: "
LabelSep "xxx"
LabelType Static
Margin First_Dynamic
HTMLTitle true
LabelFont
Color Blue
EndFont
End
Style Title
TopSep 2
LabelString "Chapter \thechapter"
LabelType Counter
LabelCounter chapter
TocLevel 1
InTitle 0
End
Style Contributors
CopyStyle Foreword
LabelString "List of Contributors"
LatexName contributors
End
Style List_of_Abbreviations_&_Symbols_[Deprecated]
InTitle 1
CopyStyle Description
LatexName abbrsymblist
End
Style List_of_Abbreviations_&_Symbols
InTitle 1
CopyStyle Description
LatexName abbrsymblist
ObsoletedBy List_of_Abbreviations_&_Symbols_[Deprecated]
End
Style Author
Font
Series Bold
Family Sans
Size Normal
Shape Up
EndFont
End
Counter svmultlsti
LabelString "Contributor \Roman{svmultlsti}"
Within chapter
End
Style List_of_Contributors
Category "For editors"
Margin First_Dynamic
LatexType Item_Environment
LatexName svmultlstcnt
NextNoIndent 1
InTitle 0
LabelType Counter
LabelCounter svmultlsti
LabelSep xxx
LabelFont
Series Bold
Shape Italic
Color Blue
EndFont
ParSkip 0.0
ItemSep 0.2
TopSep 0.7
BottomSep 0.7
ParSep 0.3
Align Block
AlignPossible Block, Left
Preamble
\newcounter{svmultlsti}%
\newenvironment{svmultlstcnt}{%
\setcounter{svmultlsti}{0}\let\svmultitem\item%
\renewcommand{\item}{%
\ifthenelse{\value{svmultlsti} = 0}{}{\and}%
\stepcounter{svmultlsti}}%
\setcounter{svmultlsti}{0}\begin{thecontriblist}}{%
\end{thecontriblist}\let\item\svmultitem%
\setcounter{svmultlsti}{0}}
EndPreamble
Requires ifthen
End
Style Problem
ObsoletedBy Problem_(theorem-like)
End
Style Solution
ObsoletedBy Solution_(theorem-like)
End
InsetLayout Flex:Inst
Decoration Classic
LabelString "Institute # [deprecated]"
LatexType Command
LatexName inst
LyxType custom
Font
Size Small
Color Red
EndFont
End
InsetLayout Flex:at_Address
CopyStyle Flex:and
LatexName at
LabelString "at address"
End
Style Part
Category "For editors"
End
Style PartBacktext
Category "For editors"
End
Style Chapter
Category "For editors"
End
Style ChapAuthor
Category "For editors"
End
Style ChapSubtitle
Category "For editors"
End
Style extrachap
Category "For editors"
End
Style Extrachap
Category "For editors"
End
Style Dedication
Category "For editors"
End
Style Foreword
Category "For editors"
End
Style Preface
Category "For editors"
End
Style Acknowledgement
Category "For editors"
End
Style Contributors
Category "For editors"
End
Style Motto
CopyStyle ChapMotto
Category "FrontMatter"
End
NoStyle ChapMotto
Style Abstract
Category "FrontMatter"
End
Style Abstract*
Category "FrontMatter"
End
Style Keywords
Category "FrontMatter"
End