]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/tufte-book.layout
Add Stéphane Mourey as contributor
[lyx.git] / lib / layouts / tufte-book.layout
index 6947bde9d83da820282ea491b529ac54489629c4..c48ce0ada30ff12eac53df78e645f9dc0563d7d5 100644 (file)
@@ -1,15 +1,22 @@
 #% Do not delete the line below; configure depends on this
-#  \DeclareLaTeXClass[tufte-book]{book (Tufte)}
+#  \DeclareLaTeXClass[tufte-book,bibentry.sty,changepage.sty,fancyhdr.sty,ifmtarg.sty,letterspace.sty,multicol.sty,natbib.sty,optparams.sty,paralist.sty,placeins.sty,ragged2e.sty,setspace.sty,textcase.sty,titlesec.sty,titletoc.sty,xcolor.sty,xifthen.sty,xkeyval.sty]{Tufte Book}
+#  \DeclareCategory{Books}
 # tufte-book textclass definition file.
 # Jason Waskiewicz <jason.waskiewicz@sendit.nodak.edu>, 2009/10/18
-# Modified by Uwe Stöhr <uwestoehr@web.de>, 2009/10/27
+# Modified by Uwe Stöhr <uwestoehr@web.de>, 2009/11/15
 
-Format 11
+Format 49
 
 Provides geometry 1
-Provides hyperref 1
 Provides natbib-internal 1
 
+Sides          2
+PageStyle      Headings
+
+ClassOptions
+       Other           nohyper
+end
+
 Style Standard
        Margin          Static
        LatexType       Paragraph
@@ -23,16 +30,104 @@ End
 
 # import other layouts
 Input stdlayouts.inc
-Input book.layout
+Input stdclass.inc
+
+Style Title
+       InPreamble      1
+End
+
+Style Author
+       InPreamble      1
+End
+
+Style Date
+       InPreamble      1
+End
 
+NoStyle Abstract
+NoStyle Chapter
+NoCounter chapter
+NoStyle Section
+NoStyle Subsection
+NoCounter subsection
 NoStyle Subsubsection
+NoCounter subsubsection
 NoStyle Subsubsection*
 NoStyle Paragraph
+NoCounter paragraph
 NoStyle Paragraph*
 NoStyle Subparagraph
+NoCounter subparagraph
 NoStyle Subparagraph*
 
-InsetLayout Sidenote
+Style Chapter
+       Margin          Static
+       Category        Sectioning
+       LabelType       No_Label
+       LabelCounter    chapter
+       TocLevel        0
+       LatexType       Command
+       LatexName       chapter
+       NeedProtect     1
+       NextNoIndent    1
+       ParSkip         0.4
+       TopSep          4
+       BottomSep       0.8
+       ParSep          0.8
+       Align           Block
+       RefPrefix chap
+       Argument 1
+         LabelString   "Short Title|S"
+         Tooltip       "The chapter as it appears in the table of contents/running headers"
+       EndArgument
+       Font
+         Series        Bold
+         Size          Huge
+       EndFont
+End
+
+Style Section
+       Category        Sectioning
+       Margin          Dynamic
+       LabelType       No_Label
+       LabelCounter    section
+       TocLevel        1
+       LatexType       Command
+       LatexName       section
+       NeedProtect     1
+       NextNoIndent    1
+       LabelSep        xxx
+       ParSkip         0.4
+       TopSep          1.3
+       BottomSep       0.7
+       ParSep          0.7
+       Align           Block
+       RefPrefix sec
+       Argument 1
+         LabelString   "Short Title|S"
+         Tooltip       "The section as it appears in the table of contents/running headers"
+       EndArgument
+       Font
+         Series        Bold
+         Size          Larger
+       EndFont
+End
+
+Style Subsection
+       CopyStyle       Section
+       TocLevel        2
+       LatexName       subsection
+       TopSep          0.9
+       BottomSep       0.5
+       ParSep          0.5
+       RefPrefix sub
+       Font
+         Series        Bold
+         Size          Large
+       EndFont
+End
+
+InsetLayout Flex:Sidenote
        LyxType         custom
        LatexType       command
        LatexName       sidenote
@@ -49,10 +144,11 @@ InsetLayout Sidenote
          Color         marginlabel
          Size          Small
        EndFont
+       ResetsFont true
 End
 
-InsetLayout Marginnote
-       CopyStyle       Sidenote
+InsetLayout Flex:Marginnote
+       CopyStyle       Flex:Sidenote
        LatexName       marginnote
        Decoration      classic
        LabelString     "marginnote"
@@ -64,7 +160,7 @@ InsetLayout Marginnote
        MultiPar        true
 End
 
-InsetLayout NewThought
+InsetLayout Flex:NewThought
        LyXType         charstyle
        LatexType       Command
        LatexName       newthought
@@ -76,10 +172,11 @@ InsetLayout NewThought
          Family        Roman
          Color         red
        EndFont
+       ResetsFont true
 End
 
-InsetLayout AllCaps
-       CopyStyle       NewThought
+InsetLayout Flex:AllCaps
+       CopyStyle       Flex:NewThought
        LatexName       allcaps
        LabelString     "allcaps"
        Font
@@ -91,8 +188,8 @@ InsetLayout AllCaps
        EndFont
 End
 
-InsetLayout SmallCaps
-       CopyStyle       NewThought
+InsetLayout Flex:SmallCaps
+       CopyStyle       Flex:NewThought
        LatexName       smallcaps
        LabelString     "smallcaps"
        LabelFont
@@ -117,11 +214,10 @@ Style Full_Width
 End
 
 # this steps the counters
-Counter
-  Name         marginfigure
+Counter                marginfigure
 End
-Counter
-  Name         margintable
+
+Counter                margintable
 End
 
 # define the floats
@@ -133,7 +229,9 @@ Float
        NumberWithin    none
        Style           plain
        ListName        "List of Tables"
-       LaTeXBuiltin    true
+       ListCommand     listoftables
+       IsPredefined true
+       UsesFloatPkg false
 End
 
 Float
@@ -144,5 +242,16 @@ Float
        NumberWithin    none
        Style           plain
        ListName        "List of Figures"
-       LaTeXBuiltin    true
-End
\ No newline at end of file
+       ListCommand     listoffigures
+       IsPredefined true
+       UsesFloatPkg false
+End
+
+Style Bibliography
+       TopSep          4
+       LabelString     "Bibliography"
+       LabelFont
+         Series        Bold
+         Size          Huge
+       EndFont
+End