From 81390dcac90f64c67d12ab1cf2e443463fc0ae9c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Thu, 30 Oct 2014 02:16:23 +0100 Subject: [PATCH] pdfcomment.module: some fine-tuning - use \requirePackage instead of \Usepackage - name category properly - reorder definitions --- lib/layouts/pdfcomment.module | 45 +++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/lib/layouts/pdfcomment.module b/lib/layouts/pdfcomment.module index 1724c9955a..d982517c5e 100644 --- a/lib/layouts/pdfcomment.module +++ b/lib/layouts/pdfcomment.module @@ -8,7 +8,7 @@ Format 49 AddToPreamble - \usepackage{pdfcomment} %support for comments in PDF files + \RequirePackage{pdfcomment} %support for comments in PDF files EndPreamble # @@ -16,7 +16,7 @@ EndPreamble # Style Define_Avatar - Category Misc + Category PDF-comment LatexType Command Margin Dynamic LatexName defineavatar @@ -34,6 +34,7 @@ Style Define_Avatar Color green Shape bold EndFont + Requires pdfcomment End Style Define_PDF-Comment_Style @@ -169,24 +170,6 @@ InsetLayout "Flex:PDF-Line" EndArgument End -InsetLayout "Flex:PDF-Sideline" - CopyStyle "Flex:PDF-Margin" - LabelString "PDF (Sideline)" - LatexType environment - LatexName pdfsidelinecomment - MultiPar true - Argument 1 - MenuString "PDF-Sideline options" - LabelString "Opts" - ToolTip "Insert PDF-Sideline options here (see the pdfcomment manual)" - EndArgument - Argument 2 - LabelString "Comment" - Mandatory 1 - ToolTip "Insert the comment here" - EndArgument -End - InsetLayout "Flex:PDF-Reply" CopyStyle "Flex:PDF-Margin" LabelString "PDF (Reply)" @@ -223,6 +206,27 @@ InsetLayout "Flex:PDF-Tooltip" EndArgument End +# +# Environment inset +# + +InsetLayout "Flex:PDF-Sideline" + CopyStyle "Flex:PDF-Margin" + LabelString "PDF (Sideline)" + LatexType environment + LatexName pdfsidelinecomment + MultiPar true + Argument 1 + MenuString "PDF-Sideline options" + LabelString "Opts" + ToolTip "Insert PDF-Sideline options here (see the pdfcomment manual)" + EndArgument + Argument 2 + LabelString "Comment" + Mandatory 1 + ToolTip "Insert the comment here" + EndArgument +End # # List of Annotations @@ -230,6 +234,7 @@ End Style List_of_PDF-Comments KeepEmpty 1 + Category PDF-comment LatexType Command LatexName listofpdfcomments Margin First_Dynamic -- 2.39.5