]> git.lyx.org Git - lyx.git/blob - lib/layouts/todonotes.module
05bfb1b7d7f28ba44afc64ffbabe704442cf335d
[lyx.git] / lib / layouts / todonotes.module
1 #\DeclareLyXModule[todonotes.sty]{TODO Notes}
2 #DescriptionBegin
3 #Provides custom insets to insert TODO items in your document
4 #(using the todonotes package). In order to generate a 'List of TODOs',
5 #the module provides a paragraph style.
6 #DescriptionEnd
7
8 # Authors: Stephen <stephen4mailinglists@googlemail.com>
9 #          Jürgen Spitzmüller <spitz@lyx.org>
10
11 Format 48
12
13 #
14 # List of TODOs
15 #
16
17 Style List_of_TODOs
18         KeepEmpty       1
19         LatexType       Command
20         LatexName       listoftodos
21         Margin          First_Dynamic
22         NextNoIndent    1
23         ParSkip         0
24         TopSep          0
25         BottomSep       0.25
26         ParSep          0
27         Align           Center
28         LabelType       Static
29         LabelBottomSep  0
30         LeftMargin      MMMMM
31         LabelString     "[List of TODOs]"
32
33         LabelFont 
34             Family      sansserif
35             Series      Medium
36             Size        large
37             Color       latex
38             Shape       bold
39         EndFont
40
41         Argument 1
42                 LabelString     "Heading"
43                 MenuString      "List of TODOs Heading|s"
44                 Tooltip         "Enter a custom header for the List of TODOs here"
45         EndArgument
46         Requires        todonotes
47 End
48
49
50 #
51 # TODO Notes
52 #
53
54 InsetLayout Flex:TODO_Note_(Margin)
55         LyxType         custom
56         LabelString     "TODO (Margin)"
57         Decoration      classic
58         BgColor         blue
59         Font
60             Color       yellow
61             Family      Typewriter
62         EndFont
63         LabelFont
64             Color       blue
65             Family      Sans
66             Size        Small
67         EndFont
68         MultiPar        true
69         LatexType       command
70         LatexName       todo
71         Argument 1
72                 LabelString     "Options"
73                 MenuString      "TODO Note Options|s"
74                 Tooltip         "See the todonotes manual for possible options"
75         EndArgument
76         Requires        todonotes
77 End
78
79
80 InsetLayout Flex:TODO_Note_(inline)
81         CopyStyle       Flex:TODO_Note_(Margin)
82         LabelString     "TODO (Inline)"
83         Argument 1
84                 LabelString     "Options"
85                 MenuString      "TODO Note Options|s"
86                 PresetArg       inline
87         EndArgument
88 End
89
90
91 #
92 # Specific Notes
93 #
94
95 InsetLayout Flex:Missing_Figure
96         CopyStyle       Flex:TODO_Note_(Margin)
97         LabelString     "Missing Figure"
98         MultiPar        false
99         LatexName       missingfigure
100         Argument 1
101                 LabelString     "Options"
102                 MenuString      "Missing Figure Note Options|s"
103                 Tooltip         "See the todonotes manual for possible options"
104         EndArgument
105 End
106
107
108 #
109 # Backwards compatibility to user-provided
110 # modules on the LyX wiki
111 #
112 # FIXME: uncomment these when #9000 is fixed.
113
114 #InsetLayout TODO
115 #       ObsoletedBy           Flex:TODO_Note_(Margin)
116 #End
117 #
118 #InsetLayout MakeTableOfToDos
119 #       ObsoletedBy           List_of_TODOs
120 #End
121 #
122 #InsetLayout Todo[Inline]
123 #       ObsoletedBy           Flex:TODO_Note_(inline)
124 #End
125 #
126 #InsetLayout Todo[margin]
127 #       ObsoletedBy           Flex:TODO_Note_(Margin)
128 #End
129 #
130 #InsetLayout MissingFigure
131 #       ObsoletedBy           Flex:Missing_Figure
132 #End
133