]> git.lyx.org Git - features.git/commitdiff
Add support for todonotes package
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 31 Aug 2014 12:49:30 +0000 (14:49 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 31 Aug 2014 12:49:30 +0000 (14:49 +0200)
Fixes: #7546
lib/Makefile.am
lib/doc/LaTeXConfig.lyx
lib/layouts/todonotes.module [new file with mode: 0644]
src/LaTeXFeatures.cpp

index 5ecb1afb70e7823cb3017b22c0568f61b265ea8b..60a0327ff74981b2ee3201dc891e269f1cbe00fb 100644 (file)
@@ -2092,6 +2092,7 @@ dist_layouts_DATA =\
        layouts/theorems-starred.module \
        layouts/theorems-std.module \
        layouts/theorems-without-preamble.inc \
+       layouts/todonotes.module \
        layouts/treport.layout \
        layouts/tufte-book.layout \
        layouts/tufte-handout.layout
index dfc42a3be2f61054e23a374946ed5c359885da2e..da4c2e4fa137687a7159adf23e749046ba6de139 100644 (file)
@@ -6193,13 +6193,64 @@ macros/latex/contrib/tcolorbox/
 
 \begin_layout Description
 
-\change_inserted -712698321 1404300960
+\change_inserted -712698321 1409489193
 Notes: The package 
 \family sans
 tcolorbox
 \family default
 \color none
  is used to produce fancy boxes.
+\end_layout
+
+\begin_layout Subsection
+
+\change_inserted -712698321 1409489213
+TODO Notes module
+\end_layout
+
+\begin_layout Subsubsection
+
+\change_inserted -712698321 1409489210
+todonotes
+\end_layout
+
+\begin_layout Description
+
+\change_inserted -712698321 1409489194
+Found: 
+\begin_inset Info
+type  "package"
+arg   "todonotes"
+\end_inset
+
+
+\end_layout
+
+\begin_layout Description
+
+\change_inserted -712698321 1409489226
+CTAN: 
+\family typewriter
+macros/latex/contrib/todonotes/
+\end_layout
+
+\begin_layout Description
+
+\change_inserted -712698321 1409489236
+Notes: The package 
+\family sans
+todonotes
+\family default
+\color none
+ is used to insert 
+\begin_inset Quotes eld
+\end_inset
+
+TODO
+\begin_inset Quotes erd
+\end_inset
+
+ notes into documents.
 \change_unchanged
 
 \end_layout
diff --git a/lib/layouts/todonotes.module b/lib/layouts/todonotes.module
new file mode 100644 (file)
index 0000000..d18ef3b
--- /dev/null
@@ -0,0 +1,132 @@
+#\DeclareLyXModule[todonotes.sty]{TODO Notes}
+#DescriptionBegin
+#Provides custom insets to insert TODO items in your document
+#(using the todonotes package). In order to generate a 'List of TODOs',
+#the module provides a paragraph style.
+#DescriptionEnd
+
+# Authors: Stephen <stephen4mailinglists@googlemail.com>
+#          Jürgen Spitzmüller <spitz@lyx.org>
+
+Format 48
+
+#
+# List of TODOs
+#
+
+Style List_of_TODOs
+       KeepEmpty       1
+       LatexType       Command
+       LatexName       listoftodos
+       Margin          First_Dynamic
+       NextNoIndent    1
+       ParSkip         0
+       TopSep          0
+       BottomSep       0.25
+       ParSep          0
+       Align           Center
+       LabelType       Static
+       LabelBottomSep  0
+       LeftMargin      MMMMM
+       LabelString     "[LIST of TODOs]"
+
+       LabelFont 
+           Family      typewriter
+           Series      Medium
+           Size        Small
+           Color       latex
+       EndFont
+
+       Argument 1
+               LabelString     "Heading"
+               MenuString      "List of TODOs Heading|s"
+               Tooltip         "Enter a custom header for the List of TODOs here"
+       EndArgument
+       Requires        todonotes
+End
+
+
+#
+# TODO Notes
+#
+
+InsetLayout Flex:TODO_Note_(Margin)
+       LyxType         custom
+       LabelString     "TODO (Margin)"
+       Decoration      classic
+       BgColor         blue
+       Font
+           Color       yellow
+           Family      Typewriter
+       EndFont
+       LabelFont
+           Color       blue
+           Family      Sans
+           Size        Small
+       EndFont
+       MultiPar        true
+       LatexType       command
+       LatexName       todo
+       Argument 1
+               LabelString     "Options"
+               MenuString      "TODO Note Options|s"
+               Tooltip         "See the todonotes manual for possible options"
+       EndArgument
+       Requires        todonotes
+End
+
+
+InsetLayout Flex:TODO_Note_(inline)
+       CopyStyle       Flex:TODO_Note_(Margin)
+       LabelString     "TODO (Inline)"
+       Argument 1
+               LabelString     "Options"
+               MenuString      "TODO Note Options|s"
+               PresetArg       inline
+       EndArgument
+End
+
+
+#
+# Specific Notes
+#
+
+InsetLayout Flex:Missing_Figure
+       CopyStyle       Flex:TODO_Note_(Margin)
+       LabelString     "Missing Figure"
+       MultiPar        false
+       LatexName       missingfigure
+       Argument 1
+               LabelString     "Options"
+               MenuString      "Missing Figure Note Options|s"
+               Tooltip         "See the todonotes manual for possible options"
+       EndArgument
+End
+
+
+#
+# Backwards compatibility to user-provided
+# modules on the LyX wiki
+#
+# FIXME: uncomment these when #9000 is fixed.
+
+#InsetLayout TODO
+#      ObsoletedBy           Flex:TODO_Note_(Margin)
+#End
+#
+#InsetLayout MakeTableOfToDos
+#      ObsoletedBy           List_of_TODOs
+#End
+#
+#InsetLayout Todo[Inline]
+#      ObsoletedBy           Flex:TODO_Note_(inline)
+#End
+#
+#InsetLayout Todo[margin]
+#      ObsoletedBy           Flex:TODO_Note_(Margin)
+#End
+#
+#InsetLayout MissingFigure
+#      ObsoletedBy           Flex:Missing_Figure
+#End
+
index d70dcd7081ae49c856f54b1d1827b256d8a36d0e..a7974b62c5ac062ef2bb95ee0599e71de04710bc 100644 (file)
@@ -746,7 +746,8 @@ char const * simplefeatures[] = {
        "sectionbox",
        "tcolorbox",
        "pdfcomment",
-       "fixme"
+       "fixme",
+       "todonotes"
 };
 
 char const * bibliofeatures[] = {