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

View File

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