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

@ -118,6 +118,11 @@ Style "Author affiliation"
ParSkip 0.4
BottomSep 0.5
Align Left
Argument 1
Mandatory 1
LabelString "Number"
Tooltip "Consecutive number for the author affiliations"
EndArgument
LabelSep xx
LabelType Static
LabelString "Author affiliation:"

View File

@ -1338,6 +1338,32 @@ def convert_AASTeX(document):
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
#
@ -1377,11 +1403,11 @@ convert = [
[444, []],
[445, []],
[446, [convert_latexargs]],
[447, [convert_IEEEtran, convert_AASTeX]]
[447, [convert_IEEEtran, convert_AASTeX, convert_AGUTeX]]
]
revert = [
[446, [revert_IEEEtran, revert_AASTeX]],
[446, [revert_IEEEtran, revert_AASTeX, revert_AGUTeX]],
[445, [revert_latexargs]],
[444, [revert_uop]],
[443, [revert_biolinum]],

View File

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