]> git.lyx.org Git - features.git/commitdiff
Some updates for the A&A layout (bug 4928).
authorJürgen Spitzmüller <spitz@lyx.org>
Mon, 9 Jun 2008 14:26:54 +0000 (14:26 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Mon, 9 Jun 2008 14:26:54 +0000 (14:26 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25210 a592a061-630c-0410-9148-cb99ea01b6c8

lib/layouts/aa.layout
lib/templates/aa.lyx

index 28903f44974e0891c55669ec6c3073c21e42571c..9c6dcbbdc4d117a09ca371defa57cdc007fcc5c3 100644 (file)
@@ -2,6 +2,7 @@
 #  \DeclareLaTeXClass[aa]{article (A&A)}
 #
 # Author: Peter Sütterlin <pit@uni-sw.gwdg.de>
+# Author: Jürgen Spitzmüller <spitz@lyx.org>
 #
 # 2001-05-17  take out include of stdlayouts; merge aapaper.inc
 #             remove LaTeX style, rename to aa
@@ -9,6 +10,8 @@
 #             take out thesaurus, email -> mail
 #             change layout of title
 #             abstract is command
+# 2008-06-09  Implement \inst and \email as char styles,
+#             implement paragraph style keywords
 
 
 Format 7
@@ -306,9 +309,59 @@ Style Abstract
 End
 
 
+Style Keywords
+       Margin                First_Dynamic
+       LatexType             Command
+       LatexName             keywords
+       InTitle               1
+       NextNoIndent          1
+       LeftMargin            MMM
+       RightMargin           MMM
+       ParIndent             ""
+       ItemSep               0
+       TopSep                1.2
+       BottomSep             0.7
+       ParSep                0
+       Align                 Block
+       LabelType             static
+       LabelString           "Key words."
+       LabelSep              M
+       LabelBottomSep        0
+       Font
+         Size                Small
+       EndFont
+       LabelFont
+         Family              Sans
+         Series              Bold
+         Size                Small
+       EndFont
+End
+
+
 Style Bibliography
        Align                 Left
        LabelFont
          Series              Bold
        EndFont
 End
+
+
+InsetLayout CharStyle:Institute
+  LyXType          charstyle
+  LatexType        command
+  LatexName        inst
+  Font
+    Color          blue
+  EndFont
+End
+
+
+InsetLayout CharStyle:E-Mail
+  LyXType          charstyle
+  LatexType        command
+  LatexName        email
+  Font
+    Family         Typewriter
+    Color          blue
+  EndFont
+End
index d6abeb6b0ff0cc6ea6ebc7246592901afa572a82..08da1fe8188dd121d206a2b0b6c7af7a31fb8cbe 100644 (file)
@@ -1,5 +1,5 @@
-#LyX 1.5.0svn created this file. For more info see http://www.lyx.org/
-\lyxformat 276
+#LyX 1.6.0svn created this file. For more info see http://www.lyx.org/
+\lyxformat 336
 \begin_document
 \begin_header
 \textclass aa
 \font_osf false
 \font_sf_scale 100
 \font_tt_scale 100
+
 \graphics default
 \paperfontsize default
 \spacing single
+\use_hyperref false
 \papersize default
 \use_geometry false
 \use_amsmath 0
 \paperpagestyle default
 \tracking_changes false
 \output_changes false
+\author "" 
+\author "" 
 \end_header
 
 \begin_body
 
 \begin_layout Title
-
 This is your Title
 \end_layout
 
 \begin_layout Subtitle
-
 your subtitle
 \end_layout
 
 \begin_layout Author
-
 Me
-\begin_inset ERT
+\begin_inset Flex CharStyle:Institute
 status collapsed
 
-\begin_layout Standard
-
-\backslash
-inst{
+\begin_layout Plain Layout
+1
 \end_layout
 
 \end_inset
 
-1
+
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
-}
+\begin_layout Plain Layout
+
+
 \backslash
 and 
 \end_layout
@@ -74,23 +74,11 @@ and
 \end_inset
 
 You
-\begin_inset ERT
+\begin_inset Flex CharStyle:Institute
 status collapsed
 
-\begin_layout Standard
-
-\backslash
-inst{
-\end_layout
-
-\end_inset
-
+\begin_layout Plain Layout
 2
-\begin_inset ERT
-status collapsed
-
-\begin_layout Standard
-}
 \end_layout
 
 \end_inset
@@ -99,30 +87,26 @@ status collapsed
 \end_layout
 
 \begin_layout Address
-
 Here 
-\newline
+\begin_inset Newline newline
+\end_inset
 
-\begin_inset ERT
-status collapsed
 
-\begin_layout Standard
+\begin_inset Flex CharStyle:E-Mail
+status collapsed
 
-\backslash
-email{
+\begin_layout Plain Layout
+myaddress
 \end_layout
 
 \end_inset
 
-myaddress
+
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
-}
-\end_layout
+\begin_layout Plain Layout
 
-\begin_layout Standard
 
 \backslash
 and
@@ -131,75 +115,132 @@ and
 \end_inset
 
  There
-\newline
+\begin_inset Newline newline
+\end_inset
 
-\begin_inset ERT
+
+\begin_inset Flex CharStyle:E-Mail
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
+youraddress
+\end_layout
+
+\end_inset
+
 
-\backslash
-email{
 \end_layout
 
+\begin_layout Offprint
+Me
+\end_layout
+
+\begin_layout Date
+Received ...; Accepted...
+\end_layout
+
+\begin_layout Date
+\begin_inset Note Note
+status open
+
+\begin_layout Plain Layout
+This template uses the new 
+\begin_inset Quotes eld
 \end_inset
 
-youraddress
+Structured Abstract
+\begin_inset Quotes erd
+\end_inset
+
+ approach that is implemented and recommended as of A&A version 6.0.
+ If you want to use the traditional, unstructured abstract, you have to
+ insert the 
+\begin_inset Quotes eld
+\end_inset
+
+traditabstract
+\begin_inset Quotes erd
+\end_inset
+
+ document option into 
+\family sans
+Document\SpecialChar \menuseparator
+Settings\SpecialChar \menuseparator
+Document Class\SpecialChar \menuseparator
+ Options
+\family default
+ and remove the red braces (
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
-}
+\begin_layout Plain Layout
+
+}{
 \end_layout
 
 \end_inset
 
-
+).
 \end_layout
 
-\begin_layout Offprint
+\end_inset
+
 
-Me
 \end_layout
 
-\begin_layout Date
+\begin_layout Abstract
+context (optional: leave void)
+\begin_inset ERT
+status collapsed
+
+\begin_layout Plain Layout
 
-Received ; Accepted
+} {
 \end_layout
 
-\begin_layout Abstract
+\end_inset
 
-Short abstract
+aims
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
+} {
 \end_layout
 
-\begin_layout Standard
+\end_inset
+
+methods
+\begin_inset ERT
+status collapsed
 
-\backslash
-keywords{
+\begin_layout Plain Layout
+
+} {
 \end_layout
 
 \end_inset
 
-keywords
+results
 \begin_inset ERT
 status collapsed
 
-\begin_layout Standard
-}
+\begin_layout Plain Layout
+
+} {
 \end_layout
 
 \end_inset
 
+conclusions (optional: leave void)
+\end_layout
 
+\begin_layout Keywords
+keywords
 \end_layout
 
 \begin_layout Section
-
 Introduction
 \end_layout