From 2e02eb99c2a9984b9ba16624d2161526f632f07d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Wed, 22 Sep 2010 00:54:07 +0000 Subject: [PATCH] ectaart: new layout and template file from Koji git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35476 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/scons/scons_manifest.py | 2 + lib/Makefile.am | 2 + lib/layouts/ectaart.layout | 203 ++++++++++++ lib/templates/ectaart.lyx | 483 ++++++++++++++++++++++++++++ 4 files changed, 690 insertions(+) create mode 100644 lib/layouts/ectaart.layout create mode 100644 lib/templates/ectaart.lyx diff --git a/development/scons/scons_manifest.py b/development/scons/scons_manifest.py index e2b09d5e62..7b98211876 100644 --- a/development/scons/scons_manifest.py +++ b/development/scons/scons_manifest.py @@ -1346,6 +1346,7 @@ lib_templates_files = Split(''' de_beamer-conference-ornate-20min.lyx dinbrief.lyx docbook_article.lyx + ectaart.lyx elsarticle.lyx es_beamer-conference-ornate-20min.lyx fr_beamer-conference-ornate-20min.lyx @@ -2758,6 +2759,7 @@ lib_layouts_files = Split(''' docbook.layout doublecol-new.layout dtk.layout + ectaart.layout egs.layout elsart.layout elsarticle.layout diff --git a/lib/Makefile.am b/lib/Makefile.am index ca2b1c08e9..809350f8df 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -1065,6 +1065,7 @@ dist_layouts_DATA =\ layouts/docbook.layout \ layouts/doublecol-new.layout \ layouts/dtk.layout \ + layouts/ectaart.layout \ layouts/egs.layout \ layouts/elsart.layout \ layouts/elsarticle.layout \ @@ -1230,6 +1231,7 @@ dist_templates_DATA = \ templates/de_beamer-conference-ornate-20min.lyx \ templates/dinbrief.lyx \ templates/docbook_article.lyx \ + templates/ectaart.lyx \ templates/elsarticle.lyx \ templates/es_beamer-conference-ornate-20min.lyx \ templates/fr_beamer-conference-ornate-20min.lyx \ diff --git a/lib/layouts/ectaart.layout b/lib/layouts/ectaart.layout new file mode 100644 index 0000000000..7b80d0ed61 --- /dev/null +++ b/lib/layouts/ectaart.layout @@ -0,0 +1,203 @@ +#% Do not delete the line below; configure depends on this +# \DeclareLaTeXClass[ectaart]{article (Econometrica)} +# Author : Koji Yokota + +Format 11 +Input article.layout + +TitleLatexType Environment +TitleLatexName frontmatter + +ClassOptions + Other draft +End + +Style Title + Margin Manual + LeftMargin -MMMMMMMM + Align Left +End + +Style RunTitle + Category FrontMatter + LatexType Command + LatexName runtitle + InTitle 1 + Margin Dynamic + LabelType Static + LabelString "Running Title:" + LabelSep M + LabelFont + Color Red + EndFont +End + +Style RunAuthor + CopyStyle RunTitle + LatexType Command + LatexName runauthor + LabelString "Running Author:" +End + +Style Abstract + Margin Dynamic + LatexType Environment + LatexName abstract + InTitle 1 + Category FrontMatter + NextNoIndent 1 + LabelSep xxx + ParSkip 0.4 + TopSep 0.7 + BottomSep 0.4 + Align Block + LabelType Static + LabelString "Abstract" + LabelFont + Size Normal + Series Medium + EndFont +End + +Style Address + CopyStyle RunTitle + LatexName address + LabelString "Address:" +End + +Style Email + Category FrontMatter + LatexType Command + LatexName lyxead + OptionalArgs 1 + InTitle 1 + Margin First_Dynamic + LabelType Static + LabelString "E-mail: " + LabelSep M + Font + Family Typewriter + EndFont + LabelFont + Family Roman + Series Medium + Size Normal + Color Blue + EndFont + Preamble + \def\lyxead[#1]#2{\ead[label=#1]{#2}} + EndPreamble +End + +Style Web_Address + CopyStyle Email + LatexName lyxeadurl + LabelString "Web address: " + LabelSep "" + Preamble + \def\lyxeadurl[#1]#2{\ead[label=#1,url]{#2}} + EndPreamble +End + +Style Author + LatexType Command + LatexName author + NewLine 0 + InTitle 1 +End + +Style Authors_Block + CopyStyle RunTitle + LatexType Environment + LatexName aug + LabelString "Authors Block: " +End + +Style Keyword + CopyStyle Abstract + LatexType Environment + LatexName keyword + LabelString "Keywords: " + LabelFont + Shape SmallCaps + EndFont +End + +Style Thanks_Text + CopyStyle Email + LatexType Command + LatexName lyxthankstext + NeedProtect 1 + LabelType Counter + LabelCounter Thanks + LabelString "Thanks \theThanks: " + Preamble + \def\lyxthankstext[#1]#2{\thankstext{#1}{#2}} + EndPreamble +End + +InsetLayout Thanks_Reference + LyxType custom + LatexType Command + LatexName thanksref + CustomPars 0 + Decoration Classic + LabelString "Thanks Ref" + ForcePlain 1 + MultiPar 0 +End + +InsetLayout Internet_Address_Reference + CopyStyle Thanks_Reference + LatexName printead + LabelString "Internet Addess Ref" +End + +InsetLayout Corresponding_Author + CopyStyle Thanks_Reference + LatexName corref + LabelString "Corresponding Author" + BgColor black +End + +InsetLayout Author + CopyStyle Thanks_Reference + LatexName author + LabelString "Author" +End + +InsetLayout Name_(First_Name) + CopyStyle Thanks_Reference + LatexName fnms + LabelString "First Name" + BgColor background +End + +InsetLayout Name_(Surname) + CopyStyle Thanks_Reference + LatexName snm + LabelString "Surname" + BgColor background +End + +InsetLayout Email + CopyStyle Thanks_Reference + LatexName printead + LabelString "Email" +End + +InsetLayout Keyword + CopyStyle Thanks_Reference + LatexName kwd + LabelString "Keyword" +End + +InsetLayout By_Same_Author_(bib) + CopyStyle Thanks_Reference + LatexName bysame + LabelString "bysame" + BgColor black +End + +Counter Thanks +End diff --git a/lib/templates/ectaart.lyx b/lib/templates/ectaart.lyx new file mode 100644 index 0000000000..7a33b0ae48 --- /dev/null +++ b/lib/templates/ectaart.lyx @@ -0,0 +1,483 @@ +#LyX 2.0.0svn created this file. For more info see http://www.lyx.org/ +\lyxformat 401 +\begin_document +\begin_header +\textclass ectaart +\begin_preamble +\startlocaldefs +\endlocaldefs +\end_preamble +\use_default_options true +\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 1 +\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 Title +Title of an article in Econometrica +\begin_inset Note Note +status open + +\begin_layout Plain Layout +This template is prepared for the +\series bold +draft +\series default + mode. + When you finalize the document for actual submission, disable +\family sans +Predefined Class Options +\family default + in menu Document -> Preference -> Document Class. + It implies to use the default +\begin_inset Quotes eld +\end_inset + + +\series bold +final +\series default + +\begin_inset Quotes erd +\end_inset + + option for prepublication. +\end_layout + +\begin_layout Plain Layout +Other available document options are: +\end_layout + +\begin_layout Plain Layout + +\series bold +titlepage +\series default +: print the title page (default in draft mode) +\end_layout + +\begin_layout Plain Layout + +\series bold +notitlepage +\series default +: do not print the title page (default in final mode) +\end_layout + +\begin_layout Plain Layout + +\series bold +doublespacing +\series default +: set the double spacing (default in draft mode) +\end_layout + +\begin_layout Plain Layout + +\series bold +singlespacing +\series default +: set the single spacing (default in final mode) +\end_layout + +\begin_layout Plain Layout + +\series bold +linenumbers +\series default +: print line numbers on margins (default in draft mode) +\end_layout + +\begin_layout Plain Layout + +\series bold +nolinenumbers +\series default +: turn off line numbers (default in final mode) +\end_layout + +\begin_layout Plain Layout + +\series bold +infoline +\series default +: print id line at bottom of the page (default in draft mode) +\end_layout + +\begin_layout Plain Layout + +\series bold +noinfoline +\series default +: turn off id line (default in final mode) +\end_layout + +\end_inset + + +\end_layout + +\begin_layout RunTitle +Title to be shown at the header of even pages +\end_layout + +\begin_layout Authors Block +\begin_inset Note Note +status open + +\begin_layout Plain Layout +You can use Author environment when there is only one author. + However, if you have multiple authors, use Authors Block instead of Author + environment as in this example. + Put the name of each author in the Author inset. + Put all names within one line. + For the corresponding author, put Corresponding Author inset as a tag in + the Author inset (you don't have to fill in anything in Corresponing Author + inset). +\end_layout + +\end_inset + + +\begin_inset Flex Author +status open + +\begin_layout Plain Layout +\begin_inset Flex Name (First Name) +status open + +\begin_layout Plain Layout +First +\end_layout + +\end_inset + + +\begin_inset Flex Name (Surname) +status open + +\begin_layout Plain Layout +Author +\end_layout + +\end_inset + + +\begin_inset Flex Thanks Reference +status open + +\begin_layout Plain Layout +thk1 +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Flex Author +status open + +\begin_layout Plain Layout +\begin_inset Flex Name (First Name) +status open + +\begin_layout Plain Layout +Second +\end_layout + +\end_inset + + +\begin_inset Flex Name (Surname) +status open + +\begin_layout Plain Layout +Author +\end_layout + +\end_inset + + +\begin_inset Flex Thanks Reference +status open + +\begin_layout Plain Layout +thk2 +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\begin_inset Flex Author +status open + +\begin_layout Plain Layout +\begin_inset Flex Name (First Name) +status open + +\begin_layout Plain Layout +Corresponding +\end_layout + +\end_inset + + +\begin_inset Flex Name (Surname) +status open + +\begin_layout Plain Layout +Author +\end_layout + +\end_inset + + +\begin_inset Flex Corresponding Author +status collapsed + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\end_layout + +\end_inset + + +\end_layout + +\begin_layout RunAuthor +Author name to be shown at the header of even pages +\end_layout + +\begin_layout Address +Address. + Email: +\begin_inset Flex Email +status open + +\begin_layout Plain Layout +email +\end_layout + +\end_inset + +, Web: +\begin_inset Flex Internet Address Reference +status open + +\begin_layout Plain Layout +web +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Thanks Text +Short title is used to refer this thanks text. +\begin_inset Argument +status open + +\begin_layout Plain Layout +thk1 +\end_layout + +\end_inset + + +\begin_inset Note Note +status open + +\begin_layout Plain Layout +Add label via Short Title +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Thanks Text +Thanks by the second author. +\begin_inset Argument +status open + +\begin_layout Plain Layout +thk2 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Email +...@email.address +\begin_inset Argument +status open + +\begin_layout Plain Layout +email +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Web Address +www.my.home.page +\begin_inset Argument +status open + +\begin_layout Plain Layout +web +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Abstract +This is the abstract text +\end_layout + +\begin_layout Keyword +\begin_inset Flex Keyword +status open + +\begin_layout Plain Layout +Keyword1 +\end_layout + +\end_inset + + +\begin_inset Flex Keyword +status open + +\begin_layout Plain Layout +Keyword2 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Section +Section +\end_layout + +\begin_layout Standard +\begin_inset CommandInset label +LatexCommand label +name "sec:section" + +\end_inset + +Section label must not be inserted in the section line, but put it in the + text body as this example. +\end_layout + +\begin_layout Bibliography +\labelwidthstring References +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "Smith-1" + +\end_inset + +Smith, Adam (1759) The Theory of Moral Sentiments, A. + Millar, London. +\end_layout + +\begin_layout Bibliography +\labelwidthstring References +\begin_inset CommandInset bibitem +LatexCommand bibitem +key "Smith-2" + +\end_inset + + +\begin_inset Flex By Same Author (bib) +status collapsed + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + (1776) An Inquiry into the Nature and Causes of the Wealth of Nations, + W. + Strahan and T. + Cadell, London. +\end_layout + +\end_body +\end_document -- 2.39.2