]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/foottoend.module
New Theorems Module. Contributed by Udicoudco <udifoglle@gmail.com> on the mailing...
[lyx.git] / lib / layouts / foottoend.module
index 16d7c6152f14480ac66a5ba3ef39c62b8b2efb04..658b677ad52cc67ba0e5cd40c8ff446811dd88c4 100644 (file)
@@ -1,13 +1,35 @@
-#\DeclareLyXModule[endnotes.sty]{Foot to End}
+#\DeclareLyXModule[endnotes.sty]{Footnotes as Endnotes (Basic)}
+#\DeclareCategory{Foot- and Endnotes}
 #DescriptionBegin
-#Sets all footnotes as endnotes. You will need to add \theendnotes 
-#in TeX-code where you want the endnotes to appear.
+#Sets all footnotes as endnotes. This uses the endnotes
+#package, which has some limitations but works with older LaTeX distributions
+#as well. You will need to add an endnotes list
+#(Insert > List/Contents/References > Endnotes) where you
+#want the endnotes to appear.
 #DescriptionEnd
+#Excludes: enotez | foottoenotez
 
-Format 63
+Format 99
 
-Requires       endnotes
 
-AddToPreamble
-  \let\footnote=\endnote
-EndPreamble
+InsetLayout Foot
+   LabelString     Endnote
+   LatexName       endnote
+   Requires        endnotes
+   LangPreamble
+     \providecommand{\notesname}{_(Notes[[Endnotes]])}
+   EndLangPreamble
+   BabelPreamble
+     \addto\captions$$lang{\renewcommand{\notesname}{_(Notes[[Endnotes]])}}
+   EndBabelPreamble
+End
+
+# We are only interested in the list
+Float
+   Type          endnote
+   ListName      "Endnotes"
+   IsPredefined  true
+   UsesFloatPkg  false
+   ListCommand   theendnotes
+   Requires      endnotes
+End