]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/tufte-book.layout
Merge branch 'master' of git.lyx.org:lyx
[lyx.git] / lib / layouts / tufte-book.layout
index 8e268b3209c56d37c03b6906b6b123247d566ef9..80c01cf3e1fbeacb618e10a0a4f43abf4be8e298 100644 (file)
@@ -5,7 +5,7 @@
 # Jason Waskiewicz <jason.waskiewicz@sendit.nodak.edu>, 2009/10/18
 # Modified by Uwe Stöhr <uwestoehr@web.de>, 2009/11/15
 
-Format 67
+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