]> git.lyx.org Git - features.git/commitdiff
iucr.layout: use Item_Environment for a style as proposed by Jürgen
authorUwe Stöhr <uwestoehr@lyx.org>
Fri, 29 May 2015 22:53:43 +0000 (00:53 +0200)
committerUwe Stöhr <uwestoehr@lyx.org>
Fri, 29 May 2015 22:53:43 +0000 (00:53 +0200)
- IUCr-article.lyx: update template accordingly

lib/layouts/iucr.layout
lib/templates/IUCr-article.lyx

index b501b0225a8a5ead3383a9dadeb0cabe442662fb..1344d9223ad9b7578c1d8b34bcdc6c863ff2d57f 100644 (file)
@@ -230,31 +230,23 @@ End
 Style Acknowledgements
   CopyStyle                    "Short Author"
   LatexName                    ack
+  InTitle                      0
   LabelString          "Acknowledgements:"
   Category                     BackMatter
   TopSep                       0.7
 End
 
-InsetLayout "Flex:References"
-  CopyStyle                    "Flex:City"
-  LatexType                    Environment
-  LatexName                    references
-  Decoration           Classic
-  ForcePlain           0
-  Spellcheck           0
-  ParbreakIsNewline    1
-  FreeSpacing          1
-  KeepEmpty                    1
-  LabelString          "References"
-  LabelFont
-    Color                      Green
-  EndFont
-End
-
-Style Reference
-  CopyStyle                    "Short Author"
-  LatexName                    reference
+Style References
+  Margin                       Manual
   Category                     BackMatter
-  LabelString          "Reference:"
+  LatexType                    List_Environment
+  LatexName                    references
+  ItemCommand          reference
+  NextNoIndent         1
+  Argument item:1
+    LabelString                "Reference"
+    Mandatory          1
+    AutoInsert         1
+  EndArgument
   Align                                Left
 End
index 35a9dcb468102f492404a05a02125a22d46fc2ec..e137bf413fc53f25fe7785c6c4b3238ad9a1cb38 100644 (file)
@@ -554,6 +554,13 @@ A citation:
 LatexCommand cite
 key "lamport86"
 
+\end_inset
+
+ and another one: 
+\begin_inset CommandInset citation
+LatexCommand cite
+key "pauling89"
+
 \end_inset
 
 
@@ -782,14 +789,40 @@ Acknowledgment text
 \end_layout
 
 \begin_layout Standard
+\begin_inset VSpace bigskip
+\end_inset
+
 You can either use plain references:
+\begin_inset Note Note
+status open
+
+\begin_layout Plain Layout
+Pressing 
+\family sans
+Return
+\family default
+ in a 
+\family sans
+References
+\family default
+ environment adds a new 
+\family sans
+Reference
+\family default
+ inset.
+ Insert one reference in each inset.
 \end_layout
 
-\begin_layout Standard
-\begin_inset Flex References
+\end_inset
+
+
+\end_layout
+
+\begin_layout References
+\begin_inset Argument item:1
 status open
 
-\begin_layout Reference
+\begin_layout Plain Layout
 Parthé, E.
  & Gelato, L.
  (1984).
@@ -804,7 +837,16 @@ Acta Cryst.
 , 169–183.
 \end_layout
 
-\begin_layout Reference
+\end_inset
+
+
+\end_layout
+
+\begin_layout References
+\begin_inset Argument item:1
+status open
+
+\begin_layout Plain Layout
 Rauch, H.
  & Petrascheck, D.
  (1976).