]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/tufte-book.layout
Move RevTeX section in Additional.lyx into Chapter 3 Document classes
[lyx.git] / lib / layouts / tufte-book.layout
index 0bf5fd896e47cb28dc37bd0c6d04c7a8a0739b75..0d6afd033a2fad0d4e860352fa053707d3f4081f 100644 (file)
@@ -5,18 +5,33 @@
 # Jason Waskiewicz <jason.waskiewicz@sendit.nodak.edu>, 2009/10/18
 # Modified by Uwe Stöhr <uwestoehr@web.de>, 2009/11/15
 
-Format 68
+Format 98
 
 Provides geometry 1
 Provides natbib-internal 1
 
 Sides          2
 PageStyle      Headings
+DocBookRoot    book
 
 ClassOptions
        Other           nohyper
 end
 
+# Tufte uses \cite for margin note citations
+AddToCiteEngine authoryear
+       cite[][]
+End
+
+CiteFormat authoryear
+       _sidenote Sidenote
+       _side sidenote
+       _fullcite bibl. entry
+       _bibentry Full bibliography entry.
+       # "Margin: Full bibliography entry." (dialog) / "Margin: Key (bibliography entry)"
+       cite {%dialog%[[%_sidenote%]][[%_side%]]}: {%dialog%[[%_bibentry%]][[{%label%[[%!fullcite%]][[%key%%!nextkey% (%_fullcite%)]]}]]}
+End
+
 Style Standard
        Margin          Static
        LatexType       Paragraph
@@ -89,6 +104,8 @@ Style Chapter
          Series                Bold
          Size                  Huge
        EndFont
+       DocBookTag            title
+       DocBookSectionTag     chapter
 End
 
 Style Section
@@ -118,6 +135,8 @@ Style Section
          Series                Bold
          Size                  Larger
        EndFont
+       DocBookTag            title
+       DocBookSectionTag     section
 End
 
 Style Subsection
@@ -151,6 +170,10 @@ InsetLayout Flex:Sidenote
          Color                 marginlabel
          Size                  Small
        EndFont
+    DocBookTag      footnote
+    DocBookAttr     role='sidenote'
+       DocBookItemTag  para
+    DocBookTagType  inline
        ResetsFont              true
 End
 
@@ -164,6 +187,7 @@ InsetLayout Flex:Marginnote
          Shape                 Up
          Series                Medium
        EndFont
+    DocBookAttr     role='marginnote'
        MultiPar                true
 End
 
@@ -177,9 +201,12 @@ InsetLayout Flex:NewThought
        EndFont
        LabelFont
          Family                Roman
-         Color                 red
+         Color                 textlabel3
        EndFont
        ResetsFont              true
+       DocBookTag      emphasis
+       DocBookAttr     role='newthought'
+    DocBookTagType  inline
 End
 
 InsetLayout Flex:AllCaps
@@ -191,8 +218,10 @@ InsetLayout Flex:AllCaps
          Misc                  Noun
        EndFont
        LabelFont
-         Color                 blue
+         Color                 textlabel1
        EndFont
+       DocBookTag      emphasis
+       DocBookAttr     role='allcaps'
 End
 
 InsetLayout Flex:SmallCaps
@@ -200,8 +229,10 @@ InsetLayout Flex:SmallCaps
        LatexName               smallcaps
        LabelString             "smallcaps"
        LabelFont
-         Color                 green
+         Color                 textlabel2
        EndFont
+       DocBookTag      emphasis
+       DocBookAttr     role='smallcaps'
 End
 
 Style Full_Width
@@ -218,13 +249,17 @@ Style Full_Width
        Align                   Block
        AlignPossible   Block, Left, Right, Center
        LabelType               No_Label
+       DocBookTag      para
+       DocBookAttr     role='fullwidth'
 End
 
 # this steps the counters
 Counter                marginfigure
+       GuiName "Margin Figure"
 End
 
 Counter                margintable
+       GuiName "Margin Table"
 End
 
 # define the floats