AGUTeX: update layout and example file

This commit is contained in:
Uwe Stöhr 2012-11-26 04:21:23 +01:00
parent 0d3e33d7c1
commit b0b1d2f8b1
3 changed files with 189 additions and 160 deletions

View File

@ -1,4 +1,4 @@
#% Do not delete the line below; configure depends on this #% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass[agutex]{American Geophysical Union (AGUTeX)} # \DeclareLaTeXClass[agutex]{American Geophysical Union (AGUTeX)}
# \DeclareCategory{Articles} # \DeclareCategory{Articles}
# elsarticle textclass definition file. # elsarticle textclass definition file.
@ -14,30 +14,30 @@ DefaultStyle Standard
Provides natbib 1 Provides natbib 1
ClassOptions ClassOptions
FontSize 10|11|12 FontSize 10|11|12
end end
# This is just to show how to declare the default font. # This is just to show how to declare the default font.
# The defaults are exactly those shown here. # The defaults are exactly those shown here.
DefaultFont DefaultFont
Family Roman Family Roman
Series Medium Series Medium
Shape Up Shape Up
Size Normal Size Normal
Color None Color None
EndFont EndFont
Style Standard Style Standard
Margin Static Margin Static
LatexType Paragraph LatexType Paragraph
LatexName dummy LatexName dummy
ParIndent MM ParIndent MM
ParSkip 0.4 ParSkip 0.4
Align Block Align Block
AlignPossible Block, Left, Right, Center AlignPossible Block, Left, Right, Center
LabelType No_Label LabelType No_Label
End End
Input stdcounters.inc Input stdcounters.inc
@ -53,171 +53,176 @@ NoStyle Chapter*
Style Title Style Title
Margin Static Margin Static
LatexType Command LatexType Command
LatexName title LatexName title
Category FrontMatter Category FrontMatter
ParSkip 0.4 ParSkip 0.4
ItemSep 0 ItemSep 0
TopSep 0 TopSep 0
BottomSep 1 BottomSep 1
ParSep 1 ParSep 1
Align Center Align Center
LabelType No_Label LabelType No_Label
Font Font
Size Largest Size Largest
EndFont EndFont
End End
Style Authors Style Authors
Margin Static Margin Static
LatexType Command LatexType Command
Category FrontMatter Category FrontMatter
LatexName authors LatexName authors
LabelSep xxx LabelSep xxx
ParSkip 0.4 ParSkip 0.4
TopSep 1.3 TopSep 1.3
BottomSep 0.7 BottomSep 0.7
ParSep 0.7 ParSep 0.7
Align Center Align Center
LabelType No_Label LabelType No_Label
Font Font
Size Large Size Large
EndFont EndFont
End End
InsetLayout "Flex:Affiliation Mark" InsetLayout "Flex:Affiliation Mark"
LyxType custom LyxType custom
LatexType command LatexType command
LatexName altaffilmark LatexName altaffilmark
LabelString "Affiliation Mark" LabelString "Affiliation Mark"
Font Font
Color foreground Color foreground
Size Small Size Small
Family Roman Family Roman
Shape Up Shape Up
Series Medium Series Medium
Misc No_Emph Misc No_Emph
Misc No_Noun Misc No_Noun
Misc No_Bar Misc No_Bar
EndFont EndFont
LabelFont LabelFont
Color latex Color latex
Size Small Size Small
EndFont EndFont
End End
Style "Author affiliation" Style "Author affiliation"
Margin Dynamic Margin Dynamic
LatexType Command LatexType Command
LatexName altaffiltext LatexName altaffiltext
Category FrontMatter Category FrontMatter
ParSkip 0.4 ParSkip 0.4
BottomSep 0.5 BottomSep 0.5
Align Left Align Left
LabelSep xx Argument 1
LabelType Static Mandatory 1
LabelString "Author affiliation:" LabelString "Number"
Tooltip "Consecutive number for the author affiliations"
EndArgument
LabelSep xx
LabelType Static
LabelString "Author affiliation:"
LabelFont LabelFont
Color Green Color Green
Series Bold Series Bold
EndFont EndFont
End End
Style Abstract Style Abstract
Margin Dynamic Margin Dynamic
LatexType Environment LatexType Environment
LatexName abstract LatexName abstract
Category FrontMatter Category FrontMatter
NextNoIndent 1 NextNoIndent 1
LabelSep xxx LabelSep xxx
ParSkip 0.4 ParSkip 0.4
TopSep 0.7 TopSep 0.7
BottomSep 0.4 BottomSep 0.4
Align Block Align Block
LabelType Static LabelType Static
LabelString "Abstract." LabelString "Abstract."
LabelFont LabelFont
Series Bold Series Bold
EndFont EndFont
End End
Style Paragraph Style Paragraph
CopyStyle Subsection* CopyStyle Subsection*
Category BackMatter Category BackMatter
LatexName paragraph LatexName paragraph
TocLevel 4 TocLevel 4
End End
Style Notation Style Notation
Margin Static Margin Static
LatexType Environment LatexType Environment
LatexName notation LatexName notation
Category BackMatter Category BackMatter
NextNoIndent 1 NextNoIndent 1
LabelSep xxx LabelSep xxx
ParSkip 0.4 ParSkip 0.4
TopSep 0.7 TopSep 0.7
BottomSep 0.4 BottomSep 0.4
Align Block Align Block
LabelType Top_Environment LabelType Top_Environment
LabelString "Notation" LabelString "Notation"
LabelFont LabelFont
Series Bold Series Bold
Size Larger Size Larger
EndFont EndFont
End End
Style Acknowledgments Style Acknowledgments
Margin Dynamic Margin Dynamic
LatexType Environment LatexType Environment
LatexName acknowledgments LatexName acknowledgments
Category BackMatter Category BackMatter
NextNoIndent 1 NextNoIndent 1
LabelSep xxx LabelSep xxx
ParSkip 0.4 ParSkip 0.4
TopSep 0.7 TopSep 0.7
BottomSep 0.4 BottomSep 0.4
Align Block Align Block
LabelType Static LabelType Static
LabelString "Acknowledgments." LabelString "Acknowledgments."
Font Font
Size Small Size Small
EndFont EndFont
LabelFont LabelFont
Series Bold Series Bold
Size Small Size Small
EndFont EndFont
End End
Style Bibliography Style Bibliography
Margin First_Dynamic Margin First_Dynamic
LatexType Bib_Environment LatexType Bib_Environment
LatexName thebibliography LatexName thebibliography
Category BackMatter Category BackMatter
NextNoIndent 1 NextNoIndent 1
LeftMargin MM LeftMargin MM
ParSkip 0.4 ParSkip 0.4
ItemSep 0 ItemSep 0
TopSep 0.7 TopSep 0.7
BottomSep 0.7 BottomSep 0.7
ParSep 0.5 ParSep 0.5
Align Block Align Block
AlignPossible Block, Left AlignPossible Block, Left
LabelType Bibliography LabelType Bibliography
LabelString "References" LabelString "References"
LabelBottomSep 1.2 LabelBottomSep 1.2
LabelFont LabelFont
Series Bold Series Bold
Size Larger Size Larger
EndFont EndFont
End End

View File

@ -1338,6 +1338,32 @@ def convert_AASTeX(document):
return return
def revert_AGUTeX(document):
" Reverts InsetArgument of Author affiliation to TeX-code "
i = 0
while True:
if i != -1:
i = find_token(document.body, "\\begin_layout Author affiliation", i)
if i != -1:
revert_Argument_to_TeX_brace(document, i, 1, 1, False)
i = i + 1
if i == -1:
return
def convert_AGUTeX(document):
" Converts ERT of Author affiliation to InsetArgument "
i = 0
while True:
if i != -1:
i = find_token(document.body, "\\begin_layout Author affiliation", i)
if i != -1:
convert_Argument_to_TeX_brace(document, i, 1, 1, False)
i = i + 1
if i == -1:
return
## ##
# Conversion hub # Conversion hub
# #
@ -1377,11 +1403,11 @@ convert = [
[444, []], [444, []],
[445, []], [445, []],
[446, [convert_latexargs]], [446, [convert_latexargs]],
[447, [convert_IEEEtran, convert_AASTeX]] [447, [convert_IEEEtran, convert_AASTeX, convert_AGUTeX]]
] ]
revert = [ revert = [
[446, [revert_IEEEtran, revert_AASTeX]], [446, [revert_IEEEtran, revert_AASTeX, revert_AGUTeX]],
[445, [revert_latexargs]], [445, [revert_latexargs]],
[444, [revert_uop]], [444, [revert_uop]],
[443, [revert_biolinum]], [443, [revert_biolinum]],

View File

@ -1,5 +1,5 @@
#LyX 2.0 created this file. For more info see http://www.lyx.org/ #LyX 2.1 created this file. For more info see http://www.lyx.org/
\lyxformat 413 \lyxformat 447
\begin_document \begin_document
\begin_header \begin_header
\textclass agutex \textclass agutex
@ -50,13 +50,13 @@ theorems-std
\font_roman default \font_roman default
\font_sans default \font_sans default
\font_typewriter default \font_typewriter default
\font_math auto
\font_default_family default \font_default_family default
\use_non_tex_fonts false \use_non_tex_fonts false
\font_sc false \font_sc false
\font_osf false \font_osf false
\font_sf_scale 100 \font_sf_scale 100
\font_tt_scale 100 \font_tt_scale 100
\graphics default \graphics default
\default_output_format default \default_output_format default
\output_sync 0 \output_sync 0
@ -67,15 +67,21 @@ theorems-std
\use_hyperref false \use_hyperref false
\papersize default \papersize default
\use_geometry false \use_geometry false
\use_amsmath 0 \use_package amsmath 0
\use_esint 1 \use_package amssymb 0
\use_mhchem 1 \use_package esint 1
\use_mathdots 1 \use_package mathdots 1
\cite_engine natbib_authoryear \use_package mathtools 0
\use_package mhchem 1
\use_package undertilde 0
\cite_engine natbib
\cite_engine_type authoryear
\biblio_style plainnat
\use_bibtopic false \use_bibtopic false
\use_indices false \use_indices false
\paperorientation portrait \paperorientation portrait
\suppress_date false \suppress_date false
\justification true
\use_refstyle 0 \use_refstyle 0
\index Index \index Index
\shortcut idx \shortcut idx
@ -261,13 +267,11 @@ status collapsed
\end_layout \end_layout
\begin_layout Author affiliation \begin_layout Author affiliation
1 \begin_inset Argument 1
\begin_inset ERT status open
status collapsed
\begin_layout Plain Layout \begin_layout Plain Layout
1
}{
\end_layout \end_layout
\end_inset \end_inset
@ -277,13 +281,11 @@ Department of Hydrology and Water Resources, University of Arizona, Tucson,
\end_layout \end_layout
\begin_layout Author affiliation \begin_layout Author affiliation
2 \begin_inset Argument 1
\begin_inset ERT status open
status collapsed
\begin_layout Plain Layout \begin_layout Plain Layout
2
}{
\end_layout \end_layout
\end_inset \end_inset
@ -292,13 +294,11 @@ Department of Geography, Ohio State University, Columbus, Ohio, USA.
\end_layout \end_layout
\begin_layout Author affiliation \begin_layout Author affiliation
3 \begin_inset Argument 1
\begin_inset ERT status open
status collapsed
\begin_layout Plain Layout \begin_layout Plain Layout
3
}{
\end_layout \end_layout
\end_inset \end_inset
@ -308,13 +308,11 @@ Department of Space Sciences, University of Michigan, Ann Arbor, Michigan,
\end_layout \end_layout
\begin_layout Author affiliation \begin_layout Author affiliation
4 \begin_inset Argument 1
\begin_inset ERT status open
status collapsed
\begin_layout Plain Layout \begin_layout Plain Layout
4
}{
\end_layout \end_layout
\end_inset \end_inset
@ -695,7 +693,7 @@ above
\align center \align center
\begin_inset Tabular \begin_inset Tabular
<lyxtabular version="3" rows="2" columns="2"> <lyxtabular version="3" rows="2" columns="2">
<features tabularvalignment="middle"> <features rotate="0" tabularvalignment="middle">
<column alignment="center" valignment="top" width="0pt"> <column alignment="center" valignment="top" width="0pt">
<column alignment="center" valignment="top" width="0pt"> <column alignment="center" valignment="top" width="0pt">
<row> <row>