mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
pdfcomment.module: total revision
this module was not usable since the preamble stuff was missing and also almost all options. But many PDF-comment types are quite useless without options.
This commit is contained in:
parent
c663a1f50a
commit
f256f8b7b0
@ -1,21 +1,79 @@
|
|||||||
#\DeclareLyXModule{PDF Comments}
|
#\DeclareLyXModule[datetime.sty,fmtcount.sty]{PDF Comments}
|
||||||
#DescriptionBegin
|
#DescriptionBegin
|
||||||
#Provides various kinds of annotations for the PDF output. The module uses
|
#Provides various kinds of annotations for the PDF output. The module uses
|
||||||
#the pdcomment package. Please consult the package documentation for details.
|
#the pdcomment package. Please consult the package documentation for details.
|
||||||
#DescriptionEnd
|
#DescriptionEnd
|
||||||
# Author: Juergen Spitzmueller <spitz@lyx.org>
|
# Author: Juergen Spitzmueller <spitz@lyx.org> and Uwe Stöhr
|
||||||
|
|
||||||
Format 48
|
Format 49
|
||||||
|
|
||||||
|
AddToPreamble
|
||||||
|
\usepackage{pdfcomment} %support for comments in PDF files
|
||||||
|
EndPreamble
|
||||||
|
|
||||||
#
|
#
|
||||||
# Annotation insets
|
# helper commands
|
||||||
|
#
|
||||||
|
|
||||||
|
Style Define_Avatar
|
||||||
|
Category Misc
|
||||||
|
LatexType Command
|
||||||
|
Margin Dynamic
|
||||||
|
LatexName defineavatar
|
||||||
|
ParSkip 0.4
|
||||||
|
LabelType Static
|
||||||
|
LabelSep M
|
||||||
|
LabelString "PDF-comment avatar:"
|
||||||
|
Argument 1
|
||||||
|
LabelString "Name"
|
||||||
|
Tooltip "Name of the Avatar"
|
||||||
|
Mandatory 1
|
||||||
|
EndArgument
|
||||||
|
PassThru 1
|
||||||
|
LabelFont
|
||||||
|
Color green
|
||||||
|
Shape bold
|
||||||
|
EndFont
|
||||||
|
End
|
||||||
|
|
||||||
|
Style Define_PDF-Comment_Style
|
||||||
|
CopyStyle Define_Avatar
|
||||||
|
LatexName definestyle
|
||||||
|
LabelString "PDF-comment style:"
|
||||||
|
Argument 1
|
||||||
|
LabelString "Name"
|
||||||
|
Tooltip "Name of the style"
|
||||||
|
Mandatory 1
|
||||||
|
EndArgument
|
||||||
|
End
|
||||||
|
|
||||||
|
Style Define_PDF-Comment_List_Style
|
||||||
|
CopyStyle Define_Avatar
|
||||||
|
LatexName defineliststyle
|
||||||
|
LabelString "Definition of PDF-comment list style:"
|
||||||
|
Argument 1
|
||||||
|
LabelString "Name"
|
||||||
|
Tooltip "Name of the list style"
|
||||||
|
Mandatory 1
|
||||||
|
EndArgument
|
||||||
|
End
|
||||||
|
|
||||||
|
Style Set_PDF-Comment_List_Style
|
||||||
|
CopyStyle Define_Avatar
|
||||||
|
LatexName setliststyle
|
||||||
|
LabelString "PDF-comment list style:"
|
||||||
|
ResetArgs 1
|
||||||
|
End
|
||||||
|
|
||||||
|
#
|
||||||
|
# Comment insets
|
||||||
#
|
#
|
||||||
|
|
||||||
InsetLayout "Flex:PDF-Annotation"
|
InsetLayout "Flex:PDF-Annotation"
|
||||||
LyXType custom
|
LyXType custom
|
||||||
LatexType command
|
LatexType command
|
||||||
Decoration classic
|
Decoration classic
|
||||||
LabelString PDF
|
LabelString "PDF (Annotation)"
|
||||||
LatexName pdfcomment
|
LatexName pdfcomment
|
||||||
LabelFont
|
LabelFont
|
||||||
Color magenta
|
Color magenta
|
||||||
@ -23,17 +81,33 @@ InsetLayout "Flex:PDF-Annotation"
|
|||||||
EndFont
|
EndFont
|
||||||
MultiPar false
|
MultiPar false
|
||||||
Argument 1
|
Argument 1
|
||||||
MenuString "PDFComment Options"
|
MenuString "PDF-Annotation options"
|
||||||
LabelString "Opts"
|
LabelString "Opts"
|
||||||
ToolTip "Insert PDFComment options here (see pdfcomment manual)"
|
ToolTip "Insert PDF-Annotation options here (see the pdfcomment manual)"
|
||||||
EndArgument
|
EndArgument
|
||||||
Requires pdfcomment
|
Requires pdfcomment
|
||||||
End
|
End
|
||||||
|
|
||||||
|
InsetLayout "Flex:PDF-Comment-Setup"
|
||||||
|
CopyStyle "Flex:PDF-Annotation"
|
||||||
|
LabelString "PDF (Setup)"
|
||||||
|
LatexName pdfcommentsetup
|
||||||
|
Argument 1
|
||||||
|
MenuString "PDF-Comment setup options"
|
||||||
|
LabelString "Opts"
|
||||||
|
ToolTip "Insert PDF-Comment setup options here (see the pdfcomment manual)"
|
||||||
|
EndArgument
|
||||||
|
End
|
||||||
|
|
||||||
InsetLayout "Flex:PDF-Margin"
|
InsetLayout "Flex:PDF-Margin"
|
||||||
CopyStyle "Flex:PDF-Annotation"
|
CopyStyle "Flex:PDF-Annotation"
|
||||||
LabelString "PDF (Margin)"
|
LabelString "PDF (Margin)"
|
||||||
LatexName pdfmargincomment
|
LatexName pdfmargincomment
|
||||||
|
Argument 1
|
||||||
|
MenuString "PDF-Margin options"
|
||||||
|
LabelString "Opts"
|
||||||
|
ToolTip "Insert PDF-Margin options here (see the pdfcomment manual)"
|
||||||
|
EndArgument
|
||||||
LabelFont
|
LabelFont
|
||||||
Color green
|
Color green
|
||||||
Size Small
|
Size Small
|
||||||
@ -55,24 +129,44 @@ InsetLayout "Flex:PDF-Freetext"
|
|||||||
CopyStyle "Flex:PDF-Margin"
|
CopyStyle "Flex:PDF-Margin"
|
||||||
LabelString "PDF (Freetext)"
|
LabelString "PDF (Freetext)"
|
||||||
LatexName pdffreetextcomment
|
LatexName pdffreetextcomment
|
||||||
|
Argument 1
|
||||||
|
MenuString "PDF-Freetext options"
|
||||||
|
LabelString "Opts"
|
||||||
|
ToolTip "Insert PDF-Freetext options here (see the pdfcomment manual)"
|
||||||
|
EndArgument
|
||||||
End
|
End
|
||||||
|
|
||||||
InsetLayout "Flex:PDF-Square"
|
InsetLayout "Flex:PDF-Square"
|
||||||
CopyStyle "Flex:PDF-Margin"
|
CopyStyle "Flex:PDF-Margin"
|
||||||
LabelString "PDF (Square)"
|
LabelString "PDF (Square)"
|
||||||
LatexName pdfsquarecomment
|
LatexName pdfsquarecomment
|
||||||
|
Argument 1
|
||||||
|
MenuString "PDF-Square options"
|
||||||
|
LabelString "Opts"
|
||||||
|
ToolTip "Insert PDF-Square options here (see the pdfcomment manual)"
|
||||||
|
EndArgument
|
||||||
End
|
End
|
||||||
|
|
||||||
InsetLayout "Flex:PDF-Circle"
|
InsetLayout "Flex:PDF-Circle"
|
||||||
CopyStyle "Flex:PDF-Margin"
|
CopyStyle "Flex:PDF-Margin"
|
||||||
LabelString "PDF (Circle)"
|
LabelString "PDF (Circle)"
|
||||||
LatexName pdfcirclecomment
|
LatexName pdfcirclecomment
|
||||||
|
Argument 1
|
||||||
|
MenuString "PDF-Circle options"
|
||||||
|
LabelString "Opts"
|
||||||
|
ToolTip "Insert PDF-Circle options here (see the pdfcomment manual)"
|
||||||
|
EndArgument
|
||||||
End
|
End
|
||||||
|
|
||||||
InsetLayout "Flex:PDF-Line"
|
InsetLayout "Flex:PDF-Line"
|
||||||
CopyStyle "Flex:PDF-Margin"
|
CopyStyle "Flex:PDF-Margin"
|
||||||
LabelString "PDF (Line)"
|
LabelString "PDF (Line)"
|
||||||
LatexName pdflinecomment
|
LatexName pdflinecomment
|
||||||
|
Argument 1
|
||||||
|
MenuString "PDF-Line options"
|
||||||
|
LabelString "Opts"
|
||||||
|
ToolTip "Insert PDF-Line options here (see the pdfcomment manual)"
|
||||||
|
EndArgument
|
||||||
End
|
End
|
||||||
|
|
||||||
InsetLayout "Flex:PDF-Sideline"
|
InsetLayout "Flex:PDF-Sideline"
|
||||||
@ -81,6 +175,11 @@ InsetLayout "Flex:PDF-Sideline"
|
|||||||
LatexType environment
|
LatexType environment
|
||||||
LatexName pdfsidelinecomment
|
LatexName pdfsidelinecomment
|
||||||
MultiPar true
|
MultiPar true
|
||||||
|
Argument 1
|
||||||
|
MenuString "PDF-Sideline options"
|
||||||
|
LabelString "Opts"
|
||||||
|
ToolTip "Insert PDF-Sideline options here (see the pdfcomment manual)"
|
||||||
|
EndArgument
|
||||||
Argument 2
|
Argument 2
|
||||||
LabelString "Comment"
|
LabelString "Comment"
|
||||||
Mandatory 1
|
Mandatory 1
|
||||||
@ -92,6 +191,11 @@ InsetLayout "Flex:PDF-Reply"
|
|||||||
CopyStyle "Flex:PDF-Margin"
|
CopyStyle "Flex:PDF-Margin"
|
||||||
LabelString "PDF (Reply)"
|
LabelString "PDF (Reply)"
|
||||||
LatexName pdfreply
|
LatexName pdfreply
|
||||||
|
Argument 1
|
||||||
|
MenuString "PDF-Reply options"
|
||||||
|
LabelString "Opts"
|
||||||
|
ToolTip "Insert PDF-Reply options here (see the pdfcomment manual)"
|
||||||
|
EndArgument
|
||||||
LabelFont
|
LabelFont
|
||||||
Color blue
|
Color blue
|
||||||
Size Small
|
Size Small
|
||||||
@ -106,6 +210,11 @@ InsetLayout "Flex:PDF-Tooltip"
|
|||||||
Color red
|
Color red
|
||||||
Size Small
|
Size Small
|
||||||
EndFont
|
EndFont
|
||||||
|
Argument 1
|
||||||
|
MenuString "PDF-Tooltip options"
|
||||||
|
LabelString "Opts"
|
||||||
|
ToolTip "Insert PDF-Tooltip options here (see the pdfcomment manual)"
|
||||||
|
EndArgument
|
||||||
Argument post:1
|
Argument post:1
|
||||||
MenuString "Tooltip Text"
|
MenuString "Tooltip Text"
|
||||||
LabelString "Tooltip"
|
LabelString "Tooltip"
|
||||||
@ -119,7 +228,7 @@ End
|
|||||||
# List of Annotations
|
# List of Annotations
|
||||||
#
|
#
|
||||||
|
|
||||||
Style List_of_PDF_Comments
|
Style List_of_PDF-Comments
|
||||||
KeepEmpty 1
|
KeepEmpty 1
|
||||||
LatexType Command
|
LatexType Command
|
||||||
LatexName listofpdfcomments
|
LatexName listofpdfcomments
|
||||||
@ -133,19 +242,19 @@ Style List_of_PDF_Comments
|
|||||||
LabelType Static
|
LabelType Static
|
||||||
LabelBottomSep 0
|
LabelBottomSep 0
|
||||||
LeftMargin MMMMM
|
LeftMargin MMMMM
|
||||||
LabelString "[LIST of PDF Comments]"
|
LabelString "List of PDF-comments"
|
||||||
|
|
||||||
LabelFont
|
LabelFont
|
||||||
Family typewriter
|
Family sansserif
|
||||||
Series Medium
|
Series Medium
|
||||||
Size Small
|
Size large
|
||||||
Color latex
|
Color latex
|
||||||
|
Shape bold
|
||||||
EndFont
|
EndFont
|
||||||
|
|
||||||
Argument 1
|
Argument 1
|
||||||
LabelString "Opts"
|
LabelString "Opts"
|
||||||
MenuString "List Options|s"
|
MenuString "List Options|s"
|
||||||
Tooltip "Insert list options here (see pdfcomment manual)"
|
Tooltip "Insert list options here (see pdfcomment manual)"
|
||||||
EndArgument
|
EndArgument
|
||||||
|
PassThru 1
|
||||||
Requires pdfcomment
|
Requires pdfcomment
|
||||||
End
|
End
|
||||||
|
Loading…
Reference in New Issue
Block a user