]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/tufte-book.layout
tex2lyx: check for \maketitle also if other titlename is specified
[lyx.git] / lib / layouts / tufte-book.layout
index 0bf5fd896e47cb28dc37bd0c6d04c7a8a0739b75..1d41ffde929fd874a0ace54dcffcc8f0e572b5fc 100644 (file)
@@ -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