X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Ftufte-book.layout;h=80c01cf3e1fbeacb618e10a0a4f43abf4be8e298;hb=bab184e49e4420ad5277eacd45f2447727f55bbd;hp=7955c7b473466a255f04d3292eaf0b75ae5121c0;hpb=8d8ee12e6481a2d9687228a4a5f9dd44a21a052e;p=lyx.git diff --git a/lib/layouts/tufte-book.layout b/lib/layouts/tufte-book.layout index 7955c7b473..80c01cf3e1 100644 --- a/lib/layouts/tufte-book.layout +++ b/lib/layouts/tufte-book.layout @@ -1,11 +1,11 @@ #% Do not delete the line below; configure depends on this -# \DeclareLaTeXClass[tufte-book,bibentry.sty,changepage.sty,fancyhdr.sty,hardwrap.sty,ifmtarg.sty,ifplatform.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} +# \DeclareLaTeXClass[tufte-book]{Tufte Book} # \DeclareCategory{Books} # tufte-book textclass definition file. # Jason Waskiewicz , 2009/10/18 # Modified by Uwe Stöhr , 2009/11/15 -Format 66 +Format 80 Provides geometry 1 Provides natbib-internal 1 @@ -17,6 +17,20 @@ 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 @@ -74,7 +88,7 @@ Style Chapter NeedProtect 1 NextNoIndent 1 ParSkip 0.4 - TopSep 4 + TopSep 2 BottomSep 0.8 ParSep 0.8 Align Block @@ -267,4 +281,5 @@ Style Bibliography Series Bold Size Huge EndFont + TocLevel 0 End