revtex4-1.layout: update to latest REVTeX 4.1

- added support for the command \onlinecite
- some style and whitespace issues
- revtex4-1.lyx: update accordingly
This commit is contained in:
Uwe Stöhr 2014-10-27 01:39:18 +01:00
parent f454bf931b
commit a1add5e804
2 changed files with 210 additions and 357 deletions

View File

@ -13,11 +13,7 @@
# a note:
# - we provide natbib-internal according to LyX bug #5182
# todo:
# - add support for \lowercase{}
# - add support for \pacs[]{}
# - add support for \onlinecite{}
# - add support for subequation environment
# - fix broken flex inset setfloatlink
Format 49
@ -32,23 +28,23 @@ TocDepth 3
DefaultStyle Standard
Style Section
Align Center
Align Center
Font
Shape Smallcaps
Shape Smallcaps
EndFont
End
Style Subsubsection
Font
Shape Italic
Shape Italic
EndFont
End
Style Paragraph
Font
Shape Italic
Shape Italic
EndFont
End
@ -60,151 +56,152 @@ Input stdstarsections.inc
########### Front matter ############
Style Abstract
InTitle 1
InTitle 1
End
Style Affiliation
Category FrontMatter
Margin Dynamic
LatexType Command
InTitle 1
LatexName affiliation
ParSkip 0.4
Align Center
AlignPossible Block, Left, Right, Center
LabelType Static
LabelSep M
LabelString "Affiliation:"
Category FrontMatter
Margin Dynamic
LatexType Command
InTitle 1
LatexName affiliation
ParSkip 0.4
Align Center
AlignPossible Block, Left, Right, Center
LabelType Static
LabelSep M
TextFont
Family Typewriter
EndFont
LabelString "Affiliation:"
LabelFont
Shape Italic
Color Green
Series Bold
EndFont
End
Style Affiliation_(alternate)
CopyStyle Affiliation
LatexName altaffiliation
LabelString "Affiliation (alternate):"
CopyStyle Affiliation
LatexName altaffiliation
LabelString "Affiliation (alternate):"
Argument 1
LabelString "Alternate Affiliation Option"
Tooltip "Optional argument to the altaffiliation command"
LabelString "Alternate Affiliation Option"
Tooltip "Optional argument to the altaffiliation command"
EndArgument
PassThru 1
End
Style Affiliation_(none)
CopyStyle Affiliation
KeepEmpty true
LabelString "No affiliation"
LatexName noaffiliation%
CopyStyle Affiliation
KeepEmpty true
LabelString "No affiliation"
LatexName noaffiliation%
End
# Address is exactly the same as Affiliation. We just put
# this in so that tex2lyx will know what to do with it.
Style Address
CopyStyle Affiliation
LatexName address
LabelString "Address:"
CopyStyle Affiliation
LatexName address
LabelString "Address:"
End
Style Author_Email
CopyStyle Affiliation
LatexName email
LabelString "Electronic Address:"
CopyStyle Affiliation
LatexName email
LabelString "Electronic Address:"
Argument 1
LabelString "Electronic Address Option|s"
Tooltip "Optional argument to the email command"
LabelString "Electronic Address Option|s"
Tooltip "Optional argument to the email command"
EndArgument
PassThru 1
PassThru 1
TextFont
Family Typewriter
EndFont
LabelFont
Family Roman
Family Roman
EndFont
End
Style Author_URL
CopyStyle Author_Email
LatexName homepage
LabelString "URL:"
CopyStyle Author_Email
LatexName homepage
LabelString "URL:"
Argument 1
LabelString "Author URL Option"
Tooltip "Optional argument to the homepage command"
LabelString "Author URL Option"
Tooltip "Optional argument to the homepage command"
EndArgument
PassThru 1
PassThru 1
End
Style Collaboration
CopyStyle Affiliation
LatexName collaboration
LabelString "Collaboration:"
CopyStyle Affiliation
LatexName collaboration
LabelString "Collaboration:"
End
Style Date
LabelType Static
LabelString "Date:"
LabelFont
Shape Italic
EndFont
LabelType Static
LabelString "Date:"
End
Style Keywords
Category FrontMatter
Margin Dynamic
LatexType Command
InTitle 1
LatexName keywords
LabelType Static
LabelSep M
LabelString "Keywords:"
Category FrontMatter
Margin Dynamic
LatexType Command
InTitle 1
LatexName keywords
LabelType Static
LabelSep M
LabelString "Keywords:"
LabelFont
Color Green
Series Bold
EndFont
End
Style PACS
CopyStyle Keywords
LatexName pacs
LabelString "PACS numbers:"
CopyStyle Keywords
LatexName pacs
LabelString "PACS numbers:"
End
Style Preprint
Category FrontMatter
Margin Right_Address_Box
LatexType Command
InTitle 1
LatexName preprint
ParSkip 0.4
BottomSep 1.5
ParSep 1.5
Align Left
Category FrontMatter
Margin Right_Address_Box
LatexType Command
InTitle 1
LatexName preprint
ParSkip 0.4
BottomSep 1.5
ParSep 1.5
Align Left
End
Style Thanks
CopyStyle Affiliation
LatexName thanks
LabelString "Thanks:"
CopyStyle Affiliation
LatexName thanks
LabelString "Title footnote:"
End
Style Title
Argument 1
LabelString "Short Title|S"
Tooltip "Short title as it appears in the running headers"
LabelString "Short Title|S"
Tooltip "Short title as it appears in the running headers"
EndArgument
Font
Series Bold
Size Large
Series Bold
Size Large
EndFont
End
@ -212,94 +209,120 @@ End
########### Back matter #############
Style Acknowledgments
CopyStyle Standard
Category BackMatter
LatexType Environment
LatexName acknowledgments
LabelType Centered
LabelString "acknowledgments"
LabelBottomSep 0.5
CopyStyle Standard
Category BackMatter
LatexType Environment
LatexName acknowledgments
LabelType Centered
LabelString "acknowledgments"
LabelBottomSep 0.5
LabelFont
Series Bold
Shape Smallcaps
Size Larger
Series Bold
Shape Smallcaps
Size Larger
EndFont
TopSep 0.7
TopSep 0.7
End
##### stuff specific to REVTeX 4.1
Style Ruled_Table
CopyStyle Standard
Category Specials
LatexName ruledtabular
LatexType environment
CopyStyle Standard
Category Specials
LatexName ruledtabular
LatexType environment
End
Style Turn_Page
CopyStyle Standard
Category Specials
LatexName turnpage
LatexType environment
CopyStyle Standard
Category Specials
LatexName turnpage
LatexType environment
End
Style Wide_Text
CopyStyle Standard
Category Specials
LatexName widetext
LatexType environment
CopyStyle Standard
Category Specials
LatexName widetext
LatexType environment
End
Float
Extension lov
GuiName Video
IsPredefined true
ListCommand listofvideos
ListName "List of Videos"
NumberWithin none
Placement tbp
Style plain
Type video
UsesFloatPkg false
Extension lov
GuiName Video
IsPredefined true
ListCommand listofvideos
ListName "List of Videos"
NumberWithin none
Placement tbp
Style plain
Type video
UsesFloatPkg false
End
InsetLayout Flex:Float_Link
CopyStyle Flex:URL
LabelString "Float Link"
LatexName setfloatlink
LatexType command
LyXType custom
CopyStyle Flex:URL
LabelString "Float link"
LatexName setfloatlink
LatexType command
LyXType custom
End
InsetLayout Flex:Lowercase
Decoration conglomerate
LabelString Lowercase
LatexName lowercase
LatexType command
LyXType custom
LyxType custom
LatexType command
LatexName lowercase
LabelString "lowercase text"
Font
# Keep empty to preserve font settings
# from the surrounding environment
# Keep empty to preserve font settings
# from the surrounding environment
EndFont
LabelFont
Size Small
EndFont
ResetsFont true
End
InsetLayout "Flex:Online cite"
LyxType custom
LatexType command
LatexName onlinecite
LabelString "online cite"
Argument 1
LabelString "Text behind"
Tooltip "text behind the cite"
EndArgument
Font
# Keep empty to preserve font settings
# from the surrounding environment
EndFont
LabelFont
Size Small
EndFont
ResetsFont true
End
InsetLayout Flex:Surname
Decoration conglomerate
LabelString Surname
LatexName surname
LatexType command
LyXType custom
Decoration conglomerate
LabelString Surname
LatexName surname
LatexType command
LyXType custom
Font
# Keep empty to preserve font settings
# from the surrounding environment
# Keep empty to preserve font settings
# from the surrounding environment
EndFont
LabelFont
Color green
Size Small
EndFont
ResetsFont true
End

View File

@ -1,5 +1,5 @@
#LyX 2.1 created this file. For more info see http://www.lyx.org/
\lyxformat 474
#LyX 2.2 created this file. For more info see http://www.lyx.org/
\lyxformat 479
\begin_document
\begin_header
\textclass revtex4-1
@ -182,9 +182,8 @@ Ann Author
\end_layout
\begin_layout Affiliation (alternate)
\begin_inset Argument 1
status collapsed
status open
\begin_layout Plain Layout
Also at
@ -200,7 +199,6 @@ Second Author
\end_layout
\begin_layout Author Email
Second.Author@institution.edu
\end_layout
@ -272,7 +270,6 @@ Charlie Author
\end_layout
\begin_layout Author URL
http://www.Second.institution.edu/~Charlie.Author
\end_layout
@ -326,6 +323,10 @@ prints the current date; should only be replaced for special cases
An article usually includes an abstract, a concise summary of the work covered
at length in the main body of the article.
\begin_inset Separator parbreak
\end_inset
\end_layout
\begin_deeper
@ -338,21 +339,15 @@ PACS
\begin_inset space ~
\end_inset
numbers May be entered using the command
\series bold
\backslash
pacs{number}
\series default
as TeX
numbers May be entered using the environment
\family sans
PACS
\begin_inset space ~
\end_inset
code (where
\series bold
number
\series default
is the PACS (Physics and Astronomy Classification Scheme) number).
numbers
\family default
.
\begin_inset Note Note
status collapsed
@ -381,39 +376,28 @@ Structure You may use the
\family typewriter
Description
\family default
environment to structure your abstract; use the optional argument of the
command
\series bold
\backslash
pacs[optional]{number}
\series default
to give the category of each item.
environment to structure your abstract.
\end_layout
\end_deeper
\begin_layout PACS
Insert suggested PACS numbers here.
Example
\begin_inset ERT
\begin_inset Note Note
status open
\begin_layout Plain Layout
\backslash
pacs[Mass spectra]{33.15.Ta}
Insert suggested PACS numbers here.
An example:
\end_layout
\end_inset
33.15.Ta
\end_layout
\begin_layout Keywords
Suggested keywords
\begin_inset Note Note
status open
status collapsed
\begin_layout Plain Layout
optional; use the document class option
@ -451,83 +435,29 @@ Body of paper goes here.
Some general notes:
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Note Note
status open
\begin_layout Plain Layout
\begin_layout Itemize
Figures should be put into the text as floats.
There is no need to do explicit centering.
\end_layout
\end_inset
\end_layout
\begin_layout Turn Page
\begin_inset Note Note
status open
\begin_layout Plain Layout
\begin_layout Itemize
Surround figures with the Turn Page layout for landscape.
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Note Note
status open
\begin_layout Plain Layout
\begin_layout Itemize
Tables should appear as floats within the text.
\end_layout
\end_inset
\end_layout
\begin_layout Ruled Table
\begin_inset Note Note
status open
\begin_layout Plain Layout
\begin_layout Itemize
The Ruled Table layout adds doubled rules to table and sets a reasonable
default table settings.
\end_layout
\end_inset
\end_layout
\begin_layout Turn Page
\begin_inset Note Note
status open
\begin_layout Plain Layout
\begin_layout Itemize
Surround tables with the Turn Page layout for landscape.
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Note Note
status open
\begin_layout Plain Layout
\begin_layout Itemize
Use LyX's span column option to get a full-width table or figure in two-column.
\end_layout
@ -544,42 +474,15 @@ name "sec:level1"
\end_inset
First-level heading:
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
protect
\end_layout
\end_inset
\begin_inset Newline newline
\end_inset
with line break and two
\begin_inset ERT
status collapsed
\begin_inset Flex Lowercase
status open
\begin_layout Plain Layout
\backslash
lowercase{
\end_layout
\end_inset
lowercase words
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
}
\end_layout
\end_inset
@ -589,17 +492,11 @@ status collapsed
\begin_layout Standard
If a specific letter or word should appear in lowercase instead, you must
escape it using the command
\series bold
\backslash
lowercase
\series default
as TeX
\begin_inset space ~
\end_inset
code as in the heading above.
escape it using the custom inset
\family sans
Lowercase
\family default
as in the heading above.
\end_layout
\begin_layout Subsection
@ -707,73 +604,33 @@ key "article-full"
.
Author-year citations are used when the journal is RMP.
To give a textual citation, use the LateX command
\series bold
\backslash
onlinecite
\series default
as TeX
To give a textual citation, use the custom inset
\family sans
Online
\begin_inset space ~
\end_inset
code: Refs.
cite
\family default
: Refs.
\begin_inset space ~
\end_inset
\begin_inset ERT
status collapsed
\begin_inset Flex Online cite
status open
\begin_layout Plain Layout
\backslash
onlinecite
\end_layout
\end_inset
\begin_inset ERT
status collapsed
\begin_inset Argument 1
status open
\begin_layout Plain Layout
[
\end_layout
\end_inset
, and references therein
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
]
\end_layout
\end_inset
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
{
and references therein
\end_layout
\end_inset
article-full,booklet-full
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
}
\end_layout
\end_inset
@ -1253,7 +1110,7 @@ ruledtabular
\begin_layout Ruled Table
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="3">
<features rotate="0" tabularvalignment="middle">
<features tabularvalignment="middle">
<column alignment="left" valignment="top">
<column alignment="center" valignment="top">
<column alignment="right" valignment="top">
@ -1580,7 +1437,7 @@ This is a wide table that spans the full page width in a two-column layout.
\begin_layout Ruled Table
\begin_inset Tabular
<lyxtabular version="3" rows="7" columns="5">
<features rotate="0" tabularvalignment="middle">
<features tabularvalignment="middle">
<column alignment="center" valignment="top">
<column alignment="center" valignment="top">
<column alignment="center" valignment="top">
@ -2130,7 +1987,7 @@ name "tab:table2"
\begin_layout Ruled Table
\begin_inset Tabular
<lyxtabular version="3" rows="12" columns="8">
<features rotate="0" tabularvalignment="middle">
<features tabularvalignment="middle">
<column alignment="center" valignment="top">
<column alignment="center" valignment="top">
<column alignment="center" valignment="top">
@ -3200,25 +3057,11 @@ Here's the first, from Ref.
\end_inset
\begin_inset ERT
status collapsed
\begin_inset Flex Online cite
status open
\begin_layout Plain Layout
\backslash
onlinecite{
\end_layout
\end_inset
misc-full
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
}
\end_layout
\end_inset
@ -3482,25 +3325,12 @@ target "http://prst-per.aps.org/multimedia/PRSTPER/v4/i1/e010101/e010101_vid1b.m
\end_inset
\begin_inset ERT
status collapsed
\begin_inset Flex Float Link
status open
\begin_layout Plain Layout
\backslash
setfloatlink{
\end_layout
\end_inset
http://link.aps.org/multimedia/PRSTPER/v4/i1/e010101
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
}
\end_layout
\end_inset