[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lyx-cvs
Subject:    [LyX/master] pdfcomment.module: some fine-tuning
From:       Uwe Stöhr <uwestoehr () lyx ! org>
Date:       2014-10-30 1:16:29
Message-ID: 20141030011629.66B3C280637 () lyx ! lyx ! org
[Download RAW message or body]

commit 81390dcac90f64c67d12ab1cf2e443463fc0ae9c
Author: Uwe Stöhr <uwestoehr@lyx.org>
Date:   Thu Oct 30 02:16:23 2014 +0100

    pdfcomment.module: some fine-tuning
    
    - use \requirePackage instead of \Usepackage
    - name category properly
    - reorder definitions

diff --git a/lib/layouts/pdfcomment.module b/lib/layouts/pdfcomment.module
index 1724c99..d982517 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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic