]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/tufte-book.layout
DocBook: implement LyX-Code.
[lyx.git] / lib / layouts / tufte-book.layout
index 8e268b3209c56d37c03b6906b6b123247d566ef9..e469996b4262faf0abe9c329fd92a62a187e258a 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 67
+Format 82
 
 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
@@ -180,6 +199,8 @@ InsetLayout Flex:NewThought
          Color                 red
        EndFont
        ResetsFont              true
+       DocBookTag      emphasis
+       DocBookAttr     role='newthought'
 End
 
 InsetLayout Flex:AllCaps
@@ -193,6 +214,8 @@ InsetLayout Flex:AllCaps
        LabelFont
          Color                 blue
        EndFont
+       DocBookTag      emphasis
+       DocBookAttr     role='allcaps'
 End
 
 InsetLayout Flex:SmallCaps
@@ -202,6 +225,8 @@ InsetLayout Flex:SmallCaps
        LabelFont
          Color                 green
        EndFont
+       DocBookTag      emphasis
+       DocBookAttr     role='smallcaps'
 End
 
 Style Full_Width
@@ -218,13 +243,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