Richard Heck wrote:
> Pavel Sanda wrote:
>> i see. as there was no feedback i suppose this module will stay locally on
>> my box, so no additional tweaks needed...
>>
>>   
> Actually, I meant to be endorsing it.

is this correct?
pavel
commit c5d65f6eb648e7c109530a18128ddc718503facf
Author: Pavel Sanda <p...@twin.jikos.cz>
Date:   Fri Jul 10 21:45:21 2009 +0200

    Add printcomments.module.

diff --git a/lib/Makefile.am b/lib/Makefile.am
index 2b6523f..fd55de0 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -1011,6 +1011,7 @@ dist_layouts_DATA =\
        layouts/broadway.layout \
        layouts/chess.layout \
        layouts/cl2emult.layout \
+       layouts/printcomments.module \
        layouts/db_lyxmacros.inc \
        layouts/db_stdclass.inc \
        layouts/db_stdcharstyles.inc \
diff --git a/lib/chkconfig.ltx b/lib/chkconfig.ltx
index 002b0cc..b25939b 100644
--- a/lib/chkconfig.ltx
+++ b/lib/chkconfig.ltx
@@ -308,6 +308,7 @@
 \TestPackage{lmodern}
 \TestPackage{luximono}
 \TestPackage{tipa}
+\TestPackage{comment}
 
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/lib/layouts/printcomments.module b/lib/layouts/printcomments.module
new file mode 100644
index 0000000..d04d7c1
--- /dev/null
+++ b/lib/layouts/printcomments.module
@@ -0,0 +1,13 @@
+#\DeclareLyXModule[comment.sty]{Print Comments}
+#DescriptionBegin
+#Typeset comment notes in LyX. When used with notes-mutate lfun,
+#it can be used even for normal LyX notes.
+#DescriptionEnd
+
+Format 11
+
+AddToPreamble
+       \usepackage{comment}
+       \includecomment{comment}
+       \...@savsf=1
+EndPreamble
diff --git a/src/LaTeXFeatures.cpp b/src/LaTeXFeatures.cpp
index e39dc92..46ae275 100644
--- a/src/LaTeXFeatures.cpp
+++ b/src/LaTeXFeatures.cpp
@@ -545,7 +545,8 @@ char const * simplefeatures[] = {
        "bm",
        "pdfpages",
        "amscd",
-       "slashed"
+       "slashed",
+       "comment"
 };
 
 int const nb_simplefeatures = sizeof(simplefeatures) / sizeof(char const *);

Reply via email to