2015-03-07 23:41:08 +00:00
|
|
|
#\DeclareLyXModule[datetime.sty,fmtcount.sty]{PDF Comments}
|
2019-04-07 09:21:21 +00:00
|
|
|
#\DeclareCategory{Annotation & Revision}
|
2014-07-03 09:30:56 +00:00
|
|
|
#DescriptionBegin
|
|
|
|
#Provides various kinds of annotations for the PDF output. The module uses
|
2023-01-16 16:02:17 +00:00
|
|
|
#the pdfcomment package. Please consult Help > Specific Manuals > PDF comments
|
2015-04-26 11:41:44 +00:00
|
|
|
#and the package documentation for details.
|
2014-07-03 09:30:56 +00:00
|
|
|
#DescriptionEnd
|
2014-10-30 09:22:09 +00:00
|
|
|
# Author: Juergen Spitzmueller <spitz@lyx.org>
|
|
|
|
# Uwe Stöhr <uwestoehr@lyx.org>
|
2014-07-03 09:30:56 +00:00
|
|
|
|
2024-08-12 10:29:14 +00:00
|
|
|
Format 107
|
2014-10-29 00:02:13 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# helper commands
|
|
|
|
#
|
|
|
|
|
2014-10-30 09:22:09 +00:00
|
|
|
# pdfcomment loads hyperref
|
|
|
|
Provides hyperref 1
|
|
|
|
|
2014-10-29 00:02:13 +00:00
|
|
|
Style Define_Avatar
|
2015-04-27 08:04:15 +00:00
|
|
|
Category PDF-comment
|
|
|
|
LatexType Command
|
|
|
|
Margin Dynamic
|
|
|
|
LatexName defineavatar
|
|
|
|
ParSkip 0.4
|
|
|
|
LabelType Static
|
|
|
|
LabelSep M
|
|
|
|
LabelString "PDF-comment avatar:"
|
2014-10-29 00:02:13 +00:00
|
|
|
Argument 1
|
2015-04-27 08:04:15 +00:00
|
|
|
LabelString "Name"
|
|
|
|
Tooltip "Name of the Avatar"
|
|
|
|
Mandatory 1
|
2014-10-29 00:02:13 +00:00
|
|
|
EndArgument
|
2015-04-27 08:04:15 +00:00
|
|
|
PassThru 1
|
2014-10-29 00:02:13 +00:00
|
|
|
LabelFont
|
2020-12-11 10:46:31 +00:00
|
|
|
Color textlabel2
|
2015-04-27 08:04:15 +00:00
|
|
|
Series Bold
|
2014-10-29 00:02:13 +00:00
|
|
|
EndFont
|
2015-05-19 08:18:17 +00:00
|
|
|
Requires pdfcomment
|
2014-10-29 00:02:13 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
Style Define_PDF-Comment_Style
|
2015-04-27 08:04:15 +00:00
|
|
|
CopyStyle Define_Avatar
|
|
|
|
LatexName definestyle
|
|
|
|
LabelString "PDF-comment style:"
|
2014-10-29 00:02:13 +00:00
|
|
|
Argument 1
|
2015-04-27 08:04:15 +00:00
|
|
|
LabelString "Name"
|
|
|
|
Tooltip "Name of the style"
|
|
|
|
Mandatory 1
|
2014-10-29 00:02:13 +00:00
|
|
|
EndArgument
|
|
|
|
End
|
|
|
|
|
|
|
|
Style Define_PDF-Comment_List_Style
|
2015-04-27 08:04:15 +00:00
|
|
|
CopyStyle Define_Avatar
|
|
|
|
LatexName defineliststyle
|
|
|
|
LabelString "Definition of PDF-comment list style:"
|
2014-10-29 00:02:13 +00:00
|
|
|
Argument 1
|
2015-04-27 08:04:15 +00:00
|
|
|
LabelString "Name"
|
|
|
|
Tooltip "Name of the list style"
|
|
|
|
Mandatory 1
|
2014-10-29 00:02:13 +00:00
|
|
|
EndArgument
|
|
|
|
End
|
|
|
|
|
|
|
|
Style Set_PDF-Comment_List_Style
|
2015-04-27 08:04:15 +00:00
|
|
|
CopyStyle Define_Avatar
|
|
|
|
LatexName setliststyle
|
|
|
|
LabelString "PDF-comment list style:"
|
|
|
|
ResetArgs 1
|
2014-10-29 00:02:13 +00:00
|
|
|
End
|
2014-07-03 09:30:56 +00:00
|
|
|
|
2014-10-30 09:22:09 +00:00
|
|
|
InsetLayout "Flex:PDF-Comment-Setup"
|
2015-04-27 08:04:15 +00:00
|
|
|
LyXType custom
|
|
|
|
LatexType command
|
|
|
|
Decoration classic
|
|
|
|
LabelString "PDF (Setup)"
|
|
|
|
LatexName pdfcommentsetup
|
2014-07-03 09:30:56 +00:00
|
|
|
LabelFont
|
2020-12-11 10:46:31 +00:00
|
|
|
Color textlabel3
|
2015-04-27 08:04:15 +00:00
|
|
|
Size Small
|
2014-07-03 09:30:56 +00:00
|
|
|
EndFont
|
2015-04-27 08:04:15 +00:00
|
|
|
MultiPar false
|
2014-07-03 09:30:56 +00:00
|
|
|
Argument 1
|
2015-04-26 02:23:10 +00:00
|
|
|
MenuString "PDF-Comment setup options"
|
|
|
|
LabelString "Opts"
|
2015-04-27 08:04:15 +00:00
|
|
|
ToolTip "Insert PDF-Comment setup options here (see the pdfcomment manual)"
|
2014-07-03 09:30:56 +00:00
|
|
|
EndArgument
|
2015-05-19 08:18:17 +00:00
|
|
|
Requires pdfcomment
|
2014-07-03 09:30:56 +00:00
|
|
|
End
|
|
|
|
|
2014-10-30 09:22:09 +00:00
|
|
|
#
|
|
|
|
# Annotation insets
|
|
|
|
#
|
|
|
|
|
|
|
|
InsetLayout "Flex:PDF-Annotation"
|
2015-04-27 08:04:15 +00:00
|
|
|
LyXType custom
|
|
|
|
LatexType command
|
|
|
|
Decoration classic
|
|
|
|
LabelString PDF
|
|
|
|
LatexName pdfcomment
|
2014-10-30 09:22:09 +00:00
|
|
|
LabelFont
|
2020-12-11 10:46:31 +00:00
|
|
|
Color textlabel3
|
2015-04-27 08:04:15 +00:00
|
|
|
Size Small
|
2014-10-30 09:22:09 +00:00
|
|
|
EndFont
|
2015-04-27 08:04:15 +00:00
|
|
|
MultiPar false
|
2019-04-18 09:35:03 +00:00
|
|
|
NewlineCmd textCR
|
2014-10-29 00:02:13 +00:00
|
|
|
Argument 1
|
2015-04-26 02:23:10 +00:00
|
|
|
MenuString "PDFComment Options"
|
|
|
|
LabelString "Opts"
|
2015-04-27 08:04:15 +00:00
|
|
|
ToolTip "Insert PDFComment options here (see pdfcomment manual)"
|
2014-10-29 00:02:13 +00:00
|
|
|
EndArgument
|
2015-05-19 08:18:17 +00:00
|
|
|
Requires pdfcomment
|
2014-10-29 00:02:13 +00:00
|
|
|
End
|
|
|
|
|
2014-07-03 09:30:56 +00:00
|
|
|
InsetLayout "Flex:PDF-Margin"
|
2015-04-27 08:04:15 +00:00
|
|
|
CopyStyle "Flex:PDF-Annotation"
|
|
|
|
LabelString "PDF (Margin)"
|
|
|
|
LatexName pdfmargincomment
|
2014-07-03 09:30:56 +00:00
|
|
|
LabelFont
|
2020-12-11 10:46:31 +00:00
|
|
|
Color textlabel2
|
2015-04-27 08:04:15 +00:00
|
|
|
Size Small
|
2014-07-03 09:30:56 +00:00
|
|
|
EndFont
|
|
|
|
End
|
|
|
|
|
|
|
|
InsetLayout "Flex:PDF-Markup"
|
2015-04-27 08:04:15 +00:00
|
|
|
CopyStyle "Flex:PDF-Margin"
|
|
|
|
LabelString "PDF (Markup)"
|
|
|
|
LatexName pdfmarkupcomment
|
2019-03-12 13:08:05 +00:00
|
|
|
NeedMBoxProtect 1
|
2019-04-18 09:35:03 +00:00
|
|
|
NewlineCmd ""
|
2014-07-03 09:30:56 +00:00
|
|
|
Argument post:1
|
2015-04-26 02:23:10 +00:00
|
|
|
LabelString "Comment"
|
2015-04-27 08:04:15 +00:00
|
|
|
Mandatory 1
|
|
|
|
ToolTip "Insert the comment to the marked-up text here"
|
2019-04-18 09:35:03 +00:00
|
|
|
NewlineCmd textCR
|
2014-07-03 09:30:56 +00:00
|
|
|
EndArgument
|
|
|
|
End
|
|
|
|
|
|
|
|
InsetLayout "Flex:PDF-Freetext"
|
2015-04-27 08:04:15 +00:00
|
|
|
CopyStyle "Flex:PDF-Margin"
|
|
|
|
LabelString "PDF (Freetext)"
|
|
|
|
LatexName pdffreetextcomment
|
2019-04-18 09:35:03 +00:00
|
|
|
NewlineCmd ""
|
2014-07-03 09:30:56 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
InsetLayout "Flex:PDF-Square"
|
2015-04-27 08:04:15 +00:00
|
|
|
CopyStyle "Flex:PDF-Margin"
|
|
|
|
LabelString "PDF (Square)"
|
|
|
|
LatexName pdfsquarecomment
|
2019-04-18 09:35:03 +00:00
|
|
|
NewlineCmd ""
|
2014-07-03 09:30:56 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
InsetLayout "Flex:PDF-Circle"
|
2015-04-27 08:04:15 +00:00
|
|
|
CopyStyle "Flex:PDF-Margin"
|
|
|
|
LabelString "PDF (Circle)"
|
|
|
|
LatexName pdfcirclecomment
|
2019-04-18 09:35:03 +00:00
|
|
|
NewlineCmd ""
|
2014-07-03 09:30:56 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
InsetLayout "Flex:PDF-Line"
|
2015-04-27 08:04:15 +00:00
|
|
|
CopyStyle "Flex:PDF-Margin"
|
|
|
|
LabelString "PDF (Line)"
|
|
|
|
LatexName pdflinecomment
|
2019-04-18 09:35:03 +00:00
|
|
|
NewlineCmd ""
|
2014-10-30 09:22:09 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
InsetLayout "Flex:PDF-Sideline"
|
2015-04-27 08:04:15 +00:00
|
|
|
CopyStyle "Flex:PDF-Margin"
|
|
|
|
LabelString "PDF (Sideline)"
|
|
|
|
LatexType environment
|
|
|
|
LatexName pdfsidelinecomment
|
|
|
|
MultiPar true
|
2019-04-18 09:35:03 +00:00
|
|
|
NewlineCmd ""
|
2014-10-30 09:22:09 +00:00
|
|
|
Argument 2
|
2015-04-26 02:23:10 +00:00
|
|
|
LabelString "Comment"
|
2015-04-27 08:04:15 +00:00
|
|
|
Mandatory 1
|
|
|
|
ToolTip "Insert the comment here"
|
2019-04-18 09:35:03 +00:00
|
|
|
NewlineCmd textCR
|
2014-10-29 00:02:13 +00:00
|
|
|
EndArgument
|
2014-07-03 09:30:56 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
InsetLayout "Flex:PDF-Reply"
|
2015-04-27 08:04:15 +00:00
|
|
|
CopyStyle "Flex:PDF-Margin"
|
|
|
|
LabelString "PDF (Reply)"
|
|
|
|
LatexName pdfreply
|
2014-07-03 09:30:56 +00:00
|
|
|
LabelFont
|
2020-12-11 10:46:31 +00:00
|
|
|
Color textlabel1
|
2015-04-27 08:04:15 +00:00
|
|
|
Size Small
|
2014-07-03 09:30:56 +00:00
|
|
|
EndFont
|
|
|
|
End
|
|
|
|
|
|
|
|
InsetLayout "Flex:PDF-Tooltip"
|
2015-04-27 08:04:15 +00:00
|
|
|
CopyStyle "Flex:PDF-Markup"
|
|
|
|
LabelString "PDF (Tooltip)"
|
|
|
|
LatexName pdftooltip
|
2019-03-12 13:08:05 +00:00
|
|
|
NeedMBoxProtect 0
|
2019-04-18 09:35:03 +00:00
|
|
|
NewlineCmd ""
|
2014-07-03 09:30:56 +00:00
|
|
|
LabelFont
|
2020-12-11 10:46:31 +00:00
|
|
|
Color textlabel3
|
2015-04-27 08:04:15 +00:00
|
|
|
Size Small
|
2014-07-03 09:30:56 +00:00
|
|
|
EndFont
|
|
|
|
Argument post:1
|
2015-04-26 02:23:10 +00:00
|
|
|
MenuString "Tooltip Text"
|
|
|
|
LabelString "Tooltip"
|
2015-04-27 08:04:15 +00:00
|
|
|
Mandatory 1
|
|
|
|
ToolTip "Insert the tooltip text here"
|
2014-07-03 09:30:56 +00:00
|
|
|
EndArgument
|
|
|
|
End
|
|
|
|
|
|
|
|
#
|
|
|
|
# List of Annotations
|
|
|
|
#
|
|
|
|
|
2014-10-30 09:22:09 +00:00
|
|
|
Style List_of_PDF_Comments
|
2015-04-27 08:04:15 +00:00
|
|
|
KeepEmpty 1
|
|
|
|
LatexType Command
|
|
|
|
LatexName listofpdfcomments
|
|
|
|
Margin First_Dynamic
|
2015-04-26 02:23:10 +00:00
|
|
|
NextNoIndent 1
|
2015-04-27 08:04:15 +00:00
|
|
|
ParSkip 0
|
|
|
|
TopSep 0
|
|
|
|
BottomSep 0.25
|
|
|
|
ParSep 0
|
|
|
|
Align Center
|
|
|
|
LabelType Static
|
2015-04-26 02:23:10 +00:00
|
|
|
LabelBottomSep 0
|
2015-04-27 08:04:15 +00:00
|
|
|
LeftMargin MMMMM
|
|
|
|
LabelString "[List of PDF Comments]"
|
2014-11-09 08:54:22 +00:00
|
|
|
LabelFont
|
2015-04-27 08:04:15 +00:00
|
|
|
Family Sans
|
|
|
|
Series Bold
|
|
|
|
Size Large
|
|
|
|
Color latex
|
2014-07-03 09:30:56 +00:00
|
|
|
EndFont
|
|
|
|
Argument 1
|
2015-04-26 02:23:10 +00:00
|
|
|
LabelString "Opts"
|
|
|
|
MenuString "List Options|s"
|
2015-04-27 08:04:15 +00:00
|
|
|
Tooltip "Insert list options here (see pdfcomment manual)"
|
2014-07-03 09:30:56 +00:00
|
|
|
EndArgument
|
2015-05-19 08:18:17 +00:00
|
|
|
Requires pdfcomment
|
2014-07-03 09:30:56 +00:00
|
|
|
End
|