File: todonotes.module

package info (click to toggle)
lyx 2.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 138,444 kB
  • sloc: cpp: 244,268; ansic: 106,398; xml: 72,791; python: 39,384; sh: 7,666; makefile: 6,584; pascal: 2,143; perl: 2,101; objc: 1,084; tcl: 163; sed: 16
file content (135 lines) | stat: -rw-r--r-- 2,557 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
#\DeclareLyXModule[todonotes.sty]{TODO Notes}
#\DeclareCategory{Annotation & Revision}
#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. Passing 'final' as document class
#option suppresses the output of TODO notes.
#DescriptionEnd

# Authors: Stephen <stephen4mailinglists@googlemail.com>
#          Jürgen Spitzmüller <spitz@lyx.org>

Format 111

OutlinerName todonotes "TODO"

PackageOptions todonotes obeyFinal

#
# 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	Sans
	    Series	Bold
	    Size	Large
	    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		orange
	Font
	    Color	foreground
	    Family	Typewriter
	EndFont
	LabelFont
	    Color	brown
	    Family	Sans
	    Size	Small
	EndFont
	MultiPar	true
	LatexType	command
	LatexName	todo
	AddToToc      todonotes
	IsTocCaption  1
	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
#

InsetLayout Flex:TODO
	ObsoletedBy           Flex:TODO_Note_(Margin)
End

InsetLayout Flex:Todo[Inline]
	ObsoletedBy           Flex:TODO_Note_(inline)
End

InsetLayout Flex:Todo[margin]
	ObsoletedBy           Flex:TODO_Note_(Margin)
End

InsetLayout Flex:MissingFigure
	ObsoletedBy           Flex:Missing_Figure
End