svglobal3.layout:

- major overhaul for version 3.2 that has to be used since 2007
 - remove wrong document class option, fixes first part of #6198
svjour.inc:
 - remove style "subparagraph" that doesn't exist, fixes second part of #6198
 - simplifications
svjour3.lyx: new template file for articles in journals published by Springer (It is the LyX implementation of the  template.tex file provided by svjour version 3.2)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31417 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2009-09-20 18:12:53 +00:00
parent 52fd1025a9
commit 2b5e6a9d39
5 changed files with 976 additions and 113 deletions

View File

@ -1339,6 +1339,7 @@ lib_templates_files = Split('''
revtex.lyx
revtex4.lyx
slides.lyx
svjour3.lyx
''')

View File

@ -1188,7 +1188,8 @@ dist_templates_DATA = \
templates/README.new_templates \
templates/revtex.lyx \
templates/revtex4.lyx \
templates/slides.lyx
templates/slides.lyx \
templates/svjour3.lyx
texdir = $(pkgdatadir)/tex
dist_tex_DATA = \

View File

@ -6,45 +6,83 @@
#
# Taken from initial LyX source code
# Author : Matthias Ettrich <ettrich@informatik.uni-tuebingen.de>
# Adapted from svjour/jog by Cengiz Gunay in 2003.
# Transposed by Pascal André <andre@via.ecp.fr>
# Heavily modified and enhanced by serveral developers.
# Last revision for svjour version 3.2 by Uwe Stöhr in September 2009
#
# --------
# Adapted from svjour/jog by Cengiz Gunay in 2003.
#
# General textclass parameters
# (global) ?
#
# see www.springer.de/author/tex/help-journals.html for class files
#
# The standard Springer Journal sections
# see ftp://ftp.springer.de/pub/tex/latex/svjour3/ for class files
Format 11
Input svjour.inc
NoStyle Acknowledgement
NoStyle Headnote
NoStyle Dedication
NoStyle Running_LaTeX_Title
NoStyle Author_Running
NoStyle Mail
NoStyle Offprints
NoStyle Keywords
ClassOptions
Other global
Preamble
\smartqed % flush right qed marks, e.g. at end of proof
EndPreamble
InsetLayout Email
LyxType custom
LatexType command
LatexName email
LabelString "Email"
Font
Color foreground
Size Small
Family Roman
Shape Up
Series Medium
Misc No_Emph
Misc No_Noun
Misc No_Bar
EndFont
LabelFont
Color green
Size Small
EndFont
End
# Abstract style definition
InsetLayout Keywords
CopyStyle Email
LatexName keywords
LabelString "Keywords"
End
InsetLayout PACS
CopyStyle Email
LatexName PACS
LabelString "PACS"
End
InsetLayout Subclass
CopyStyle Email
LatexName subclass
LabelString "Subclass"
End
Style Abstract
Margin First_Dynamic
LatexType Command
LatexName abstract
Category FrontMatter
Newline 1
NextNoIndent 0
ParIndent MM
LabelSep xx
ItemSep 0
TopSep 0.7
BottomSep 0.7
ParSep 0
Align Block
AlignPossible Block, Left
LabelType Top_Environment
LabelString "Abstract."
# label font definition
LabelFont
Series Bold
EndFont
LabelType Static
LabelString "Abstract"
End
Style Acknowledgements
CopyStyle Abstract
LatexName acknowledgements
Category BackMatter
LabelString "Acknowledgements"
End

View File

@ -43,11 +43,14 @@ Input stdlayouts.inc
Input stdlists.inc
Input stdfloats.inc
Input stdcounters.inc
Input stdtitle.inc
NoStyle Part
NoStyle Part*
NoStyle Chapter
NoStyle Chapter*
NoStyle Subparagraph
NoStyle Subparagraph*
Style Section
@ -86,15 +89,6 @@ Style Paragraph
End
Style Subparagraph
Font
Series Medium
Shape Up
Size Normal
EndFont
End
Style Headnote
Margin Static
LatexType Command
@ -119,114 +113,79 @@ End
Style Dedication
CopyStyle Headnote
LatexName dedication
LeftMargin Dedication:xxx
LabelString "Dedication:"
CopyStyle Headnote
LatexName dedication
LeftMargin Dedication:xxx
LabelString "Dedication:"
End
Style Title
Margin Static
LatexType Command
InTitle 1
LatexName title
NextNoIndent 1
ParSkip 0.4
TopSep 1.3
BottomSep 0.7
ParSep 0.7
Align Left
AlignPossible Block, Center, Left, Right, Center
LabelType No_Label
Fill_Top 1
Fill_Bottom 1
Align Left
AlignPossible Block, Center, Left, Right, Center
Fill_Top 1
Fill_Bottom 1
Font
Family Sans
Series Bold
Size Largest
Family Sans
Series Bold
EndFont
End
Style Subtitle
Margin Static
LatexType Command
InTitle 1
LatexName subtitle
NextNoIndent 1
ParSkip 0.4
ItemSep 0
TopSep 0
BottomSep 0
ParSep 0
Align Left
LabelType No_Label
CopyStyle Title
LatexName subtitle
NextNoIndent 1
BottomSep 0
ParSep 0
Font
Family Sans
Series Bold
Size Large
Size Large
EndFont
End
Style Running_LaTeX_Title
CopyStyle Headnote
LatexName titlerunning
LeftMargin "Running title:xxx"
LabelString "Running title:"
CopyStyle Headnote
LatexName titlerunning
LeftMargin "Running title:xxx"
LabelString "Running title:"
End
Style Author
Margin Static
LatexType Command
InTitle 1
LatexName author
NextNoIndent 1
ParSkip 0.4
TopSep 0.7
BottomSep 0.7
ItemSep 0
ParSep 0
Align Left
LabelType No_Label
NextNoIndent 1
Align Left
Font
Series Bold
Shape Italic
Series Bold
Shape Italic
EndFont
End
Style Author_Running
CopyStyle Headnote
LatexName authorrunning
LeftMargin "Author Running:xxx"
LabelString "Author Running:"
CopyStyle Headnote
LatexName authorrunning
LeftMargin "Author Running:xxx"
LabelString "Author Running:"
End
Style Institute
Margin Static
LatexType Command
InTitle 1
LatexName institute
NextNoIndent 1
ParSkip 0.4
TopSep 1.3
BottomSep 0.7
ParSep 0.7
Align Left
LabelType No_Label
CopyStyle Author
LatexName institute
Font
Size Small
Series Medium
Shape Up
Size Normal
EndFont
End
Style Date
CopyStyle Institute
LatexName date
Align Left
Font
Size Small
EndFont
End
@ -324,6 +283,7 @@ Style Bibliography
Margin First_Dynamic
LatexType Bib_Environment
LatexName thebibliography
Category BackMatter
NextNoIndent 1
LeftMargin MM
ParSkip 0.4
@ -346,6 +306,7 @@ Style Claim
Margin First_Dynamic
LatexType Environment
LatexName claim
Category MainText
NextNoIndent 0
ParIndent MM
LabelSep xx

862
lib/templates/svjour3.lyx Normal file
View File

@ -0,0 +1,862 @@
#LyX 1.6.5svn created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
\textclass svglobal3
\use_default_options true
\language english
\inputencoding auto
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry false
\use_amsmath 1
\use_esint 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\author ""
\author ""
\end_header
\begin_body
\begin_layout Title
Insert your title here
\begin_inset Foot
status open
\begin_layout Plain Layout
Grants or other notes %about the article that should go on the front page
should be %placed here.
General acknowledgments should be placed at the end of the article.
\end_layout
\end_inset
\end_layout
\begin_layout Subtitle
Do you have a subtitle?
\begin_inset Newline newline
\end_inset
If so, write it here
\end_layout
\begin_layout Author
First Author
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
and
\end_layout
\end_inset
Second Author
\end_layout
\begin_layout Institute
F.
Author
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
at
\end_layout
\end_inset
first address
\begin_inset Newline newline
\end_inset
Tel.: +123-45-678910
\begin_inset Newline newline
\end_inset
Fax: +123-45-678910
\begin_inset Newline newline
\end_inset
\begin_inset Flex Email
status open
\begin_layout Plain Layout
fauthor@example.com
\end_layout
\end_inset
\begin_inset Newline newline
\end_inset
\emph on
Present address:
\emph default
of F.
Author % if needed
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
and
\end_layout
\end_inset
S.
Author
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
at
\end_layout
\end_inset
second address
\end_layout
\begin_layout Date
Received: date / Accepted: date
\begin_inset Note Note
status open
\begin_layout Plain Layout
The correct dates will be entered by the editor
\end_layout
\end_inset
\end_layout
\begin_layout Abstract
Insert your abstract here.
Include keywords, PACS and mathematical subject classification numbers
as needed.
\begin_inset Flex Keywords
status open
\begin_layout Plain Layout
First keyword
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
and
\end_layout
\end_inset
Second keyword
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
and
\end_layout
\end_inset
More
\end_layout
\end_inset
\begin_inset Flex PACS
status open
\begin_layout Plain Layout
PACS code1
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
and
\end_layout
\end_inset
PACS code2
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
and
\end_layout
\end_inset
more
\end_layout
\end_inset
\begin_inset Flex Subclass
status open
\begin_layout Plain Layout
MSC code1
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
and
\end_layout
\end_inset
MSC code2
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
and
\end_layout
\end_inset
more
\end_layout
\end_inset
\begin_inset Note Note
status open
\begin_layout Plain Layout
Specifying PACS and Subclass is optional.
\end_layout
\end_inset
\end_layout
\begin_layout Section
Introduction
\begin_inset CommandInset label
LatexCommand label
name "sec:Introduction"
\end_inset
\end_layout
\begin_layout Standard
Your text comes here.
Separate text sections with
\end_layout
\begin_layout Section
Section title
\begin_inset CommandInset label
LatexCommand label
name "sec:Section-title"
\end_inset
\end_layout
\begin_layout Standard
Text with citations
\begin_inset CommandInset citation
LatexCommand cite
key "Abernethy2003"
\end_inset
,
\begin_inset CommandInset citation
LatexCommand cite
key "Pellacini:2005:LAH"
\end_inset
,
\begin_inset CommandInset citation
LatexCommand cite
key "RefB"
\end_inset
and
\begin_inset CommandInset citation
LatexCommand cite
key "RefJ"
\end_inset
.
\end_layout
\begin_layout Subsection
Subsection title
\begin_inset CommandInset label
LatexCommand label
name "sub:Subsection-title"
\end_inset
\end_layout
\begin_layout Standard
as required.
Don't forget to give each section and subsection a unique label (see Sect.
\begin_inset space ~
\end_inset
\begin_inset CommandInset ref
LatexCommand ref
reference "sec:Section-title"
\end_inset
).
\end_layout
\begin_layout Paragraph
Paragraph headings
\end_layout
\begin_layout Standard
Use paragraph headings as needed.
\end_layout
\begin_layout Standard
\begin_inset Formula \begin{equation}
a^{2}+b^{2}=c^{2}\end{equation}
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Note Note
status open
\begin_layout Plain Layout
only for one column documents:
\end_layout
\end_inset
\begin_inset Float figure
wide false
sideways false
status collapsed
\begin_layout Plain Layout
\begin_inset Graphics
filename ../examples/CV-image.png
\end_inset
\end_layout
\begin_layout Plain Layout
\begin_inset Caption
\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
name "fig:one-column-figure"
\end_inset
Please write your figure caption here
\end_layout
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Note Note
status open
\begin_layout Plain Layout
only for two column documents:
\end_layout
\end_inset
\begin_inset Float figure
wide true
sideways false
status collapsed
\begin_layout Plain Layout
\begin_inset Graphics
filename ../examples/CV-image.png
width 75text%
\end_inset
\end_layout
\begin_layout Plain Layout
\begin_inset Caption
\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
name "fig:two-column-figure"
\end_inset
Please write your figure caption here
\end_layout
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Float table
wide false
sideways false
status open
\begin_layout Plain Layout
\begin_inset Caption
\begin_layout Plain Layout
\begin_inset CommandInset label
LatexCommand label
name "tab:Please-write-your"
\end_inset
Please write your table caption here
\end_layout
\end_inset
\end_layout
\begin_layout Plain Layout
\begin_inset Tabular
<lyxtabular version="3" rows="5" columns="3">
<features>
<column alignment="left" valignment="top" width="0">
<column alignment="left" valignment="top" width="0">
<column alignment="left" valignment="top" width="0">
<row>
<cell alignment="center" valignment="top" topline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
noalign{
\backslash
smallskip}
\end_layout
\end_inset
first
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
second
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" topline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
third
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="center" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
noalign{
\backslash
smallskip}
\end_layout
\end_inset
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
%
\end_layout
\end_inset
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
noalign{
\backslash
smallskip}
\end_layout
\end_inset
number
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
number
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
number
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
number
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
number
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
number
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="center" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
noalign{
\backslash
smallskip}
\end_layout
\end_inset
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
%
\end_layout
\end_inset
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\end_layout
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset
\end_layout
\begin_layout Plain Layout
\end_layout
\end_inset
\end_layout
\begin_layout Acknowledgements
If you'd like to thank anyone, place your comments here.
\end_layout
\begin_layout Section*
---------------------
\end_layout
\begin_layout Standard
You can either use BibTeX:
\begin_inset Note Note
status open
\begin_layout Plain Layout
The following bibliography styles are allowed:
\family sans
spbasic
\family default
(basic style, author-year citations),
\family sans
spmpsci
\family default
(mathematics and physical sciences),
\family sans
spphys
\family default
(APS-like style for physics)
\begin_inset Newline newline
\end_inset
The styles can be downloaded from
\begin_inset Flex URL
status open
\begin_layout Plain Layout
ftp://ftp.springer.de/pub/tex/latex/svjour3/bibtex
\end_layout
\end_inset
.
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset CommandInset bibtex
LatexCommand bibtex
bibfiles "../examples/biblioExample"
options "bibtotoc,spbasic"
\end_inset
\end_layout
\begin_layout Section*
---------------------
\end_layout
\begin_layout Standard
\noindent
or a plain bibliography:
\end_layout
\begin_layout Bibliography
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "RefJ"
\end_inset
Author, Article title, Journal, Volume, page numbers (year)
\end_layout
\begin_layout Bibliography
\begin_inset CommandInset bibitem
LatexCommand bibitem
key "RefB"
\end_inset
Author, Book title, page numbers.
Publisher, place (year)
\end_layout
\end_body
\end_document