]> git.lyx.org Git - features.git/blob - lib/layouts/pdfcomment.module
Add support for the pdfcomment package.
[features.git] / lib / layouts / pdfcomment.module
1 #\DeclareLyXModule{PDF Comments}
2 #DescriptionBegin
3 #Provides various kinds of annotations for the PDF output. The module uses
4 #the pdcomment package. Please consult the package documentation for details.
5 #DescriptionEnd
6 # Author: Juergen Spitzmueller <spitz@lyx.org>
7
8 Format 48
9
10 #
11 # Annotation insets
12 #
13
14 InsetLayout "Flex:PDF-Annotation"
15         LyXType               custom
16         LatexType             command
17         Decoration            classic
18         LabelString           PDF
19         LatexName             pdfcomment
20         LabelFont
21           Color               magenta
22           Size                Small
23         EndFont
24         MultiPar              false
25         Argument 1
26           MenuString          "PDFComment Options"
27           LabelString         "Opts"
28           ToolTip             "Insert PDFComment options here (see pdfcomment manual)"
29         EndArgument
30         Requires              pdfcomment
31 End
32
33 InsetLayout "Flex:PDF-Margin"
34         CopyStyle             "Flex:PDF-Annotation"
35         LabelString           "PDF (Margin)"
36         LatexName             pdfmargincomment
37         LabelFont
38           Color               green
39           Size                Small
40         EndFont
41 End
42
43 InsetLayout "Flex:PDF-Markup"
44         CopyStyle             "Flex:PDF-Margin"
45         LabelString           "PDF (Markup)"
46         LatexName             pdfmarkupcomment
47         Argument post:1
48           LabelString         "Comment"
49           Mandatory           1
50           ToolTip             "Insert the comment to the marked-up text here"
51         EndArgument
52 End
53
54 InsetLayout "Flex:PDF-Freetext"
55         CopyStyle             "Flex:PDF-Margin"
56         LabelString           "PDF (Freetext)"
57         LatexName             pdffreetextcomment
58 End
59
60 InsetLayout "Flex:PDF-Square"
61         CopyStyle             "Flex:PDF-Margin"
62         LabelString           "PDF (Square)"
63         LatexName             pdfsquarecomment
64 End
65
66 InsetLayout "Flex:PDF-Circle"
67         CopyStyle             "Flex:PDF-Margin"
68         LabelString           "PDF (Circle)"
69         LatexName             pdfcirclecomment
70 End
71
72 InsetLayout "Flex:PDF-Line"
73         CopyStyle             "Flex:PDF-Margin"
74         LabelString           "PDF (Line)"
75         LatexName             pdflinecomment
76 End
77
78 InsetLayout "Flex:PDF-Sideline"
79         CopyStyle             "Flex:PDF-Margin"
80         LabelString           "PDF (Sideline)"
81         LatexType             environment
82         LatexName             pdfsidelinecomment
83         MultiPar              true
84         Argument 2
85           LabelString         "Comment"
86           Mandatory           1
87           ToolTip             "Insert the comment here"
88         EndArgument
89 End
90
91 InsetLayout "Flex:PDF-Reply"
92         CopyStyle             "Flex:PDF-Margin"
93         LabelString           "PDF (Reply)"
94         LatexName             pdfreply
95         LabelFont
96           Color               blue
97           Size                Small
98         EndFont
99 End
100
101 InsetLayout "Flex:PDF-Tooltip"
102         CopyStyle             "Flex:PDF-Markup"
103         LabelString           "PDF (Tooltip)"
104         LatexName             pdftooltip
105         LabelFont
106           Color               red
107           Size                Small
108         EndFont
109         Argument post:1
110           MenuString          "Tooltip Text"
111           LabelString         "Tooltip"
112           Mandatory           1
113           ToolTip             "Insert the tooltip text here"
114         EndArgument
115 End
116
117
118 #
119 # List of Annotations
120 #
121
122 Style List_of_PDF_Comments
123         KeepEmpty       1
124         LatexType       Command
125         LatexName       listofpdfcomments
126         Margin          First_Dynamic
127         NextNoIndent    1
128         ParSkip         0
129         TopSep          0
130         BottomSep       0.25
131         ParSep          0
132         Align           Center
133         LabelType       Static
134         LabelBottomSep  0
135         LeftMargin      MMMMM
136         LabelString     "[LIST of PDF Comments]"
137
138         LabelFont 
139             Family      typewriter
140             Series      Medium
141             Size        Small
142             Color       latex
143         EndFont
144
145         Argument 1
146                 LabelString     "Opts"
147                 MenuString      "List Options|s"
148                 Tooltip         "Insert list options here (see pdfcomment manual)"
149         EndArgument
150         Requires              pdfcomment
151 End