From 5140a1d0de0f57f28f86c53dba5f8f79bf5256bc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Sat, 4 Sep 2010 13:59:03 +0000 Subject: [PATCH] agutex: new layout and template file template git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35280 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/scons/scons_manifest.py | 2 + lib/Makefile.am | 2 + lib/layouts/agutex.layout | 220 +++++++++ lib/templates/agutex.lyx | 728 ++++++++++++++++++++++++++++ 4 files changed, 952 insertions(+) create mode 100644 lib/layouts/agutex.layout create mode 100644 lib/templates/agutex.lyx diff --git a/development/scons/scons_manifest.py b/development/scons/scons_manifest.py index dc2a93f7a5..21492007e1 100644 --- a/development/scons/scons_manifest.py +++ b/development/scons/scons_manifest.py @@ -1331,6 +1331,7 @@ lib_templates_files = Split(''' ACM-siggraph.lyx ACM-sigplan.lyx AEA.lyx + agutex.lyx agu_article.lyx apa.lyx beamer-conference-ornate-20min.lyx @@ -2725,6 +2726,7 @@ lib_layouts_files = Split(''' achemso.layout acmsiggraph.layout AEA.layout + agutex.layout agu-dtd.layout agums.layout amsart.layout diff --git a/lib/Makefile.am b/lib/Makefile.am index 3e225eea86..cece6b4324 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -1023,6 +1023,7 @@ dist_layouts_DATA =\ layouts/achemso.layout \ layouts/acmsiggraph.layout \ layouts/AEA.layout \ + layouts/agutex.layout \ layouts/agu-dtd.layout \ layouts/agu_stdclass.inc \ layouts/agu_stdcounters.inc \ @@ -1218,6 +1219,7 @@ dist_templates_DATA = \ templates/ACM-siggraph.lyx \ templates/ACM-sigplan.lyx \ templates/AEA.lyx \ + templates/agutex.lyx \ templates/agu_article.lyx \ templates/apa.lyx \ templates/beamer-conference-ornate-20min.lyx \ diff --git a/lib/layouts/agutex.layout b/lib/layouts/agutex.layout new file mode 100644 index 0000000000..bd72fb102c --- /dev/null +++ b/lib/layouts/agutex.layout @@ -0,0 +1,220 @@ +#% Do not delete the line below; configure depends on this +# \DeclareLaTeXClass[agutex]{article (AGU)} +# elsarticle textclass definition file. +# Author: Uwe Stöhr (uwestoehr@web.de) + +Format 11 + +Columns 1 +Sides 1 +SecNumDepth 3 +TocDepth 3 +DefaultStyle Standard +Provides natbib 1 + +ClassOptions + FontSize 10|11|12 +end + + +# This is just to show how to declare the default font. +# The defaults are exactly those shown here. +DefaultFont + Family Roman + Series Medium + Shape Up + Size Normal + Color None +EndFont + + +Style Standard + Margin Static + LatexType Paragraph + LatexName dummy + ParIndent MM + ParSkip 0.4 + Align Block + AlignPossible Block, Left, Right, Center + LabelType No_Label +End + +Input stdcounters.inc +Input stdfloats.inc +Input stdlists.inc +Input stdsections.inc +Input stdstarsections.inc +Input stdlayouts.inc + +NoStyle Chapter +NoStyle Chapter* + + +Style Title + Margin Static + LatexType Command + LatexName title + Category FrontMatter + ParSkip 0.4 + ItemSep 0 + TopSep 0 + BottomSep 1 + ParSep 1 + Align Center + LabelType No_Label + Font + Size Largest + EndFont +End + + +Style Authors + Margin Static + LatexType Command + Category FrontMatter + LatexName authors + LabelSep xxx + ParSkip 0.4 + TopSep 1.3 + BottomSep 0.7 + ParSep 0.7 + Align Center + LabelType No_Label + Font + Size Large + EndFont +End + + +InsetLayout "Affiliation Mark" + LyxType custom + LatexType command + LatexName altaffilmark + LabelString "Affiliation Mark" + Font + Color foreground + Size Small + Family Roman + Shape Up + Series Medium + Misc No_Emph + Misc No_Noun + Misc No_Bar + EndFont + LabelFont + Color latex + Size Small + EndFont +End + + +Style "Author affiliation" + Margin Dynamic + LatexType Command + LatexName altaffiltext + Category FrontMatter + ParSkip 0.4 + BottomSep 0.5 + Align Left + LabelSep xx + LabelType Static + LabelString "Author affiliation:" + LabelFont + Color Green + Series Bold + EndFont +End + + +Style Abstract + Margin Dynamic + LatexType Environment + LatexName abstract + Category FrontMatter + NextNoIndent 1 + LabelSep xxx + ParSkip 0.4 + TopSep 0.7 + BottomSep 0.4 + Align Block + LabelType Static + LabelString "Abstract." + LabelFont + Series Bold + EndFont +End + + +Style "Glossary term" + CopyStyle Subsection* + Category BackMatter + LatexName paragraph +End + + +Style Notation + Margin Static + LatexType Environment + LatexName notation + Category BackMatter + NextNoIndent 1 + LabelSep xxx + ParSkip 0.4 + TopSep 0.7 + BottomSep 0.4 + Align Block + LabelType Top_Environment + LabelString "Notation" + LabelFont + Series Bold + Size Larger + EndFont +End + + +Style Acknowledgments + Margin Dynamic + LatexType Environment + LatexName acknowledgments + Category BackMatter + NextNoIndent 1 + LabelSep xxx + ParSkip 0.4 + TopSep 0.7 + BottomSep 0.4 + Align Block + LabelType Static + LabelString "Acknowledgments." + Font + Size Small + EndFont + LabelFont + Series Bold + Size Small + EndFont +End + + +Style Bibliography + Margin First_Dynamic + LatexType Bib_Environment + LatexName thebibliography + Category BackMatter + NextNoIndent 1 + LeftMargin MM + ParSkip 0.4 + ItemSep 0 + TopSep 0.7 + BottomSep 0.7 + ParSep 0.5 + Align Block + AlignPossible Block, Left + LabelType Bibliography + LabelString "References" + LabelBottomSep 1.2 + LabelFont + Series Bold + Size Larger + EndFont +End + diff --git a/lib/templates/agutex.lyx b/lib/templates/agutex.lyx new file mode 100644 index 0000000000..4dd2b7f168 --- /dev/null +++ b/lib/templates/agutex.lyx @@ -0,0 +1,728 @@ +#LyX 2.0.0svn created this file. For more info see http://www.lyx.org/ +\lyxformat 399 +\begin_document +\begin_header +\textclass agutex +\begin_preamble +% OPTIONAL: To Create numbered lines uncomment these 2 lines: +% \usepackage{lineno} +% \linenumbers*[1] + +% Author names in capital letters: +\authorrunninghead{BALES ET AL.} + +% Shorter version of title entered in capital letters: +\titlerunninghead{SHORT TITLE} + +% Author mailing address: please repeat this command for +% each author and alphabetize authors. Here are examples: + +\authoraddr{R. C. Bales, +Department of Hydrology and Water Resources, University of +Arizona, Harshbarger Building 11, Tucson, AZ 85721, USA. +(roger@hwr.arizona.edu)} + +\authoraddr{J. R. McConnell, Division of Hydrologic +Sciences, 123 Main Street, Desert Research Institute, Reno, NV +89512, USA.} + +\authoraddr{E. Mosley-Thompson, Department of Geography, +Ohio State University, 123 Orange Boulevard, Columbus, OH 43210, +USA.} + +\authoraddr{R. Williams, Department of Space Sciences, University of +Michigan, 123 Brown Avenue, Ann Arbor, MI 48109, USA.} +\end_preamble +\options jgrga +\use_default_options false +\begin_modules +theorems-std +\end_modules +\maintain_unincluded_children false +\language english +\inputencoding auto +\fontencoding global +\font_roman default +\font_sans default +\font_typewriter default +\font_default_family default +\use_xetex false +\font_sc false +\font_osf false +\font_sf_scale 100 +\font_tt_scale 100 + +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize default +\spacing single +\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_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\index Index +\shortcut idx +\color #008000 +\end_index +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation indent +\paragraph_indentation default +\quotes_language english +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout + +\series bold +IMPORTANT Note +\series default +: To be able to compile AguTeX articles you have to turn off LyX's support + for the LaTeX-package +\emph on +babel +\emph default +: Go to the menu +\family sans +Tools\SpecialChar \menuseparator +Preferences\SpecialChar \menuseparator +Language +\begin_inset space ~ +\end_inset + +Settings +\family default + and turn off the option +\begin_inset Quotes eld +\end_inset + + +\emph on +Use babel +\emph default + +\begin_inset Quotes erd +\end_inset + +. +\end_layout + +\begin_layout Plain Layout +For all other document classes it is highly recommended to use babel! +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +The Journal is specified as document class option in the document settings! + For the available document class options have a look at the elsarticle + documentation: +\begin_inset Flex URL +status collapsed + +\begin_layout Plain Layout + +http://texnology.com/agudocs.pdf +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +The addresses of the authors are given in the document preamble. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Title +Title of article +\end_layout + +\begin_layout Authors +R. + C. + Bales, +\begin_inset Flex Affiliation Mark +status collapsed + +\begin_layout Plain Layout +1 +\end_layout + +\end_inset + + +\begin_inset Newline newline +\end_inset + +E. + Mosley-Thompson, +\begin_inset Flex Affiliation Mark +status collapsed + +\begin_layout Plain Layout +2 +\end_layout + +\end_inset + + +\begin_inset Newline newline +\end_inset + +R. + Williams, +\begin_inset Flex Affiliation Mark +status collapsed + +\begin_layout Plain Layout +3 +\end_layout + +\end_inset + + +\begin_inset Newline newline +\end_inset + +and J. + R. + McConnell +\begin_inset Flex Affiliation Mark +status collapsed + +\begin_layout Plain Layout +4 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Author affiliation +1 +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + +\end_inset + +Department of Hydrology and Water Resources, University of Arizona, Tucson, + Arizona, USA. +\end_layout + +\begin_layout Author affiliation +2 +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + +\end_inset + +Department of Geography, Ohio State University, Columbus, Ohio, USA. +\end_layout + +\begin_layout Author affiliation +3 +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + +\end_inset + +Department of Space Sciences, University of Michigan, Ann Arbor, Michigan, + USA. +\end_layout + +\begin_layout Author affiliation +4 +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +}{ +\end_layout + +\end_inset + +Division of Hydrologic Sciences, Desert Research Institute, Reno, Nevada, + USA. +\end_layout + +\begin_layout Abstract +(Type abstract here) +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +begin{article} +\end_layout + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +starts the article +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Introduction +\end_layout + +\begin_layout Standard +(Article text here) +\end_layout + +\begin_layout Standard +\begin_inset Formula \begin{eqnarray} +A & = & \prod_{i=1}^{\infty}B\nonumber \\ + & = & C +\end{eqnarray} + +\end_inset + + +\end_layout + +\begin_layout Standard +...as shown by +\begin_inset CommandInset citation +LatexCommand citet +key "jskilby,Arduengo1992" + +\end_inset + +. + ....has been shown +\begin_inset CommandInset citation +LatexCommand citep +key "jskilbye" + +\end_inset + +. +\end_layout + +\begin_layout Subsection +Subsection +\end_layout + +\begin_layout Enumerate +test +\end_layout + +\begin_layout Enumerate +test +\end_layout + +\begin_layout Subsubsection +Subsubsection +\end_layout + +\begin_layout Standard +Bla, bla +\end_layout + +\begin_layout Section* +Appendix: Title +\end_layout + +\begin_layout Standard +Appendix, only when needed. +\end_layout + +\begin_layout Section* +Glossary +\end_layout + +\begin_layout Standard +Glossary is only allowed in Reviews of Geophysics! +\end_layout + +\begin_layout Glossary term +term +\end_layout + +\begin_layout Standard +Term Definition here +\end_layout + +\begin_layout Notation +Term +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +& +\end_layout + +\end_inset + + definition. +\begin_inset Note Note +status open + +\begin_layout Plain Layout +A notation is of course optional +\end_layout + +\end_inset + + +\begin_inset Newline newline +\end_inset + +Second Term +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + +& +\end_layout + +\end_inset + + second definition. +\end_layout + +\begin_layout Acknowledgments +(Text here) +\end_layout + +\begin_layout Section* +----------------- +\end_layout + +\begin_layout Standard +You can use either BibTeX. +\begin_inset Note Note +status open + +\begin_layout Plain Layout +Remember though that your final submission is supposed to have all the bibliogra +phy entries embedded in the LaTeX-file. + This means you eventually have to copy the .bbl file into the latex file + at this position. + Follow these steps: +\end_layout + +\begin_layout Enumerate +Run LaTeX on your LaTeX file. +\end_layout + +\begin_layout Enumerate +Run BiBTeX on your LaTeX file. +\end_layout + +\begin_layout Enumerate +Open the new .bbl file containing the reference list and copy all the contents + into your LaTeX file here. +\end_layout + +\begin_layout Enumerate +Comment out the old +\backslash +bibliographystyle and +\backslash +bibliography commands. +\end_layout + +\begin_layout Enumerate +Run LaTeX on your new file before submitting. + AGU does not want a .bib or a .bbl file, but asks that you copy in the contents + of your .bbl file here. +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset CommandInset bibtex +LatexCommand bibtex +bibfiles "../examples/biblioExample" +options "agu" + +\end_inset + + +\end_layout + +\begin_layout Section* +--------------------- +\end_layout + +\begin_layout Standard +\noindent +Or plain bibliography: +\end_layout + +\begin_layout Bibliography +\labelwidthstring References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "\\textit{Kilby}(2008)" +key "jskilby" + +\end_inset + +Kilby, J. + S. + (2008), Invention of the integrated circuit, +\emph on +IEEE Trans. + Electron Devices, +\emph default + +\shape italic +23 +\shape default +, 648--650. +\end_layout + +\begin_layout Bibliography +\labelwidthstring References +\begin_inset CommandInset bibitem +LatexCommand bibitem +label "\\textit{Kilby et al.}(2008)" +key "jskilbye" + +\end_inset + +Kilby, J. + S., S. + Smith, and R. + Jones (2008), Invention of the integrated circuit, +\emph on +IEEE Trans. + Electron Devices, +\emph default + +\shape italic +23 +\shape default +, 648--650. +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +end{article} +\end_layout + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +ends the article +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Note Note +status open + +\begin_layout Plain Layout +Enter Figures and Tables here: +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Float figure +wide false +sideways false +status open + +\begin_layout Plain Layout +\align center + +\family sans +A single column figure goes here +\end_layout + +\begin_layout Plain Layout +\begin_inset Caption + +\begin_layout Plain Layout +Captions go +\emph on +under +\emph default + the figure +\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 +Table captions go +\emph on +above +\emph default + the table +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Plain Layout +\align center +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +delete +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +this +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +example +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +table +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\end_body +\end_document -- 2.39.5