]> git.lyx.org Git - features.git/commitdiff
Add support for the pdfcomment package.
authorJuergen Spitzmueller <spitz@lyx.org>
Thu, 3 Jul 2014 09:30:56 +0000 (11:30 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 27 Sep 2014 07:55:25 +0000 (09:55 +0200)
Fixes: #6975.
lib/Makefile.am
lib/chkconfig.ltx
lib/layouts/pdfcomment.module [new file with mode: 0644]
src/LaTeXFeatures.cpp
status.21x

index 4150a138656dcf443680f620eb8e8b7188d1d31d..384308bee5f3fcfde330e7ac082affff12aa7550 100644 (file)
@@ -2010,6 +2010,7 @@ dist_layouts_DATA =\
        layouts/numreport.inc \
        layouts/numrevtex.inc \
        layouts/paper.layout \
+       layouts/pdfcomment.module \
        layouts/powerdot.layout \
        layouts/RJournal.layout \
        layouts/recipebook.layout \
index 25478bef346a31115fd1b3a6b827745928fe35d5..1501da6470f14c5f120bcbab1ae2d3197f05d26d 100644 (file)
 \TestPackage{nomencl}
 \TestPackage{pdfcolmk}
 \TestPackage{polyglossia}
+\TestPackage{pdfcomment}
 \TestPackage{pdfpages}
 \TestPackage{prettyref}
 \TestPackage{preview}
diff --git a/lib/layouts/pdfcomment.module b/lib/layouts/pdfcomment.module
new file mode 100644 (file)
index 0000000..c50af26
--- /dev/null
@@ -0,0 +1,151 @@
+#\DeclareLyXModule{PDF Comments}
+#DescriptionBegin
+#Provides various kinds of annotations for the PDF output. The module uses
+#the pdcomment package. Please consult the package documentation for details.
+#DescriptionEnd
+# Author: Juergen Spitzmueller <spitz@lyx.org>
+
+Format 48
+
+#
+# Annotation insets
+#
+
+InsetLayout "Flex:PDF-Annotation"
+       LyXType               custom
+       LatexType             command
+       Decoration            classic
+       LabelString           PDF
+       LatexName             pdfcomment
+       LabelFont
+         Color               magenta
+         Size                Small
+       EndFont
+       MultiPar              false
+       Argument 1
+         MenuString          "PDFComment Options"
+         LabelString         "Opts"
+         ToolTip             "Insert PDFComment options here (see pdfcomment manual)"
+       EndArgument
+       Requires              pdfcomment
+End
+
+InsetLayout "Flex:PDF-Margin"
+       CopyStyle             "Flex:PDF-Annotation"
+       LabelString           "PDF (Margin)"
+       LatexName             pdfmargincomment
+       LabelFont
+         Color               green
+         Size                Small
+       EndFont
+End
+
+InsetLayout "Flex:PDF-Markup"
+       CopyStyle             "Flex:PDF-Margin"
+       LabelString           "PDF (Markup)"
+       LatexName             pdfmarkupcomment
+       Argument post:1
+         LabelString         "Comment"
+         Mandatory           1
+         ToolTip             "Insert the comment to the marked-up text here"
+       EndArgument
+End
+
+InsetLayout "Flex:PDF-Freetext"
+       CopyStyle             "Flex:PDF-Margin"
+       LabelString           "PDF (Freetext)"
+       LatexName             pdffreetextcomment
+End
+
+InsetLayout "Flex:PDF-Square"
+       CopyStyle             "Flex:PDF-Margin"
+       LabelString           "PDF (Square)"
+       LatexName             pdfsquarecomment
+End
+
+InsetLayout "Flex:PDF-Circle"
+       CopyStyle             "Flex:PDF-Margin"
+       LabelString           "PDF (Circle)"
+       LatexName             pdfcirclecomment
+End
+
+InsetLayout "Flex:PDF-Line"
+       CopyStyle             "Flex:PDF-Margin"
+       LabelString           "PDF (Line)"
+       LatexName             pdflinecomment
+End
+
+InsetLayout "Flex:PDF-Sideline"
+       CopyStyle             "Flex:PDF-Margin"
+       LabelString           "PDF (Sideline)"
+       LatexType             environment
+       LatexName             pdfsidelinecomment
+       MultiPar              true
+       Argument 2
+         LabelString         "Comment"
+         Mandatory           1
+         ToolTip             "Insert the comment here"
+       EndArgument
+End
+
+InsetLayout "Flex:PDF-Reply"
+       CopyStyle             "Flex:PDF-Margin"
+       LabelString           "PDF (Reply)"
+       LatexName             pdfreply
+       LabelFont
+         Color               blue
+         Size                Small
+       EndFont
+End
+
+InsetLayout "Flex:PDF-Tooltip"
+       CopyStyle             "Flex:PDF-Markup"
+       LabelString           "PDF (Tooltip)"
+       LatexName             pdftooltip
+       LabelFont
+         Color               red
+         Size                Small
+       EndFont
+       Argument post:1
+         MenuString          "Tooltip Text"
+         LabelString         "Tooltip"
+         Mandatory           1
+         ToolTip             "Insert the tooltip text here"
+       EndArgument
+End
+
+
+#
+# List of Annotations
+#
+
+Style List_of_PDF_Comments
+       KeepEmpty       1
+       LatexType       Command
+       LatexName       listofpdfcomments
+       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 PDF Comments]"
+
+       LabelFont 
+           Family      typewriter
+           Series      Medium
+           Size        Small
+           Color       latex
+       EndFont
+
+       Argument 1
+               LabelString     "Opts"
+               MenuString      "List Options|s"
+               Tooltip         "Insert list options here (see pdfcomment manual)"
+       EndArgument
+       Requires              pdfcomment
+End
index 65f342cdef16d5dcedd4d28ca799d0ed28c62cbf..506af187c911d71d574e6d45f6f3f39f142040e2 100644 (file)
@@ -742,7 +742,10 @@ char const * simplefeatures[] = {
        "tfrupee",
        "shapepar",
        "rsphrase",
-       "algorithm2e"
+       "algorithm2e",
+       "sectionbox",
+       "tcolorbox",
+       "pdfcomment"
 };
 
 char const * bibliofeatures[] = {
index 453187746559981b04efa3b5f0cec2316f65b25e..74e1bb9d5c0c531777c7b181a5b4a040980a4623 100644 (file)
@@ -28,6 +28,7 @@ What's new
 
 * DOCUMENT INPUT/OUTPUT
 
+- Add support for PDF Annotations (via pdfcomment package) (bug 6975).
 
 
 * TEX2LYX IMPROVEMENTS