]> git.lyx.org Git - features.git/commitdiff
Add support for the fixme package.
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 31 Aug 2014 12:38:28 +0000 (14:38 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 31 Aug 2014 12:38:28 +0000 (14:38 +0200)
Fixes: #8868
lib/Makefile.am
lib/doc/LaTeXConfig.lyx
lib/layouts/fixme.module [new file with mode: 0644]
src/LaTeXFeatures.cpp

index fa78915e9629e68fbf5e09ab9ccfd60e79b8b104..5ecb1afb70e7823cb3017b22c0568f61b265ea8b 100644 (file)
@@ -1959,6 +1959,7 @@ dist_layouts_DATA =\
        layouts/extreport.layout \
        layouts/figs-within-sections.module \
        layouts/fixltx2e.module \
+       layouts/fixme.module \
        layouts/fix-cm.module \
        layouts/foils.layout \
        layouts/foottoend.module \
index 2b203847391a7fb6e0efd0d1459e9b3352d2bc08..dfc42a3be2f61054e23a374946ed5c359885da2e 100644 (file)
@@ -5830,6 +5830,61 @@ Notes: The package
 braille 
 \family default
 makes it possible to typeset Braille, a character system for blind people.
+\change_inserted -712698321 1409487964
+
+\end_layout
+
+\begin_layout Subsection
+
+\change_inserted -712698321 1409487969
+FIXME module
+\end_layout
+
+\begin_layout Subsubsection
+
+\change_inserted -712698321 1409487975
+fixme
+\end_layout
+
+\begin_layout Description
+
+\change_inserted -712698321 1409487965
+Found: 
+\begin_inset Info
+type  "package"
+arg   "fixme"
+\end_inset
+
+
+\end_layout
+
+\begin_layout Description
+
+\change_inserted -712698321 1409487990
+CTAN: 
+\family typewriter
+macros/latex/contrib/fixme/
+\end_layout
+
+\begin_layout Description
+
+\change_inserted -712698321 1409488012
+Notes: The package 
+\family sans
+fixme
+\family default
+\color none
+ is used to insert 
+\begin_inset Quotes eld
+\end_inset
+
+FIXME
+\begin_inset Quotes erd
+\end_inset
+
+ notes into documents.
+\change_unchanged
+
 \end_layout
 
 \begin_layout Subsection
diff --git a/lib/layouts/fixme.module b/lib/layouts/fixme.module
new file mode 100644 (file)
index 0000000..331f13e
--- /dev/null
@@ -0,0 +1,256 @@
+#\DeclareLyXModule[fixme.sty]{FiXme}
+#DescriptionBegin
+#Provides 'FiXme' (marginal) annotations for document revision purposes.
+#A list of annotations can be produced by usinging the 'List of FIXMEs' paragraph style.
+#The annotations are customizable via the LaTeX preamble. See the FiXme documentation for details.
+#NOTE: By default, the notes are only displayed in 'draft' mode (if the option 'draft' 
+#has been inserted to Document > Settings > Document Class > Class Options > Custom).
+#To display them always, insert \\fxsetup{draft} to Document > Settings > Preamble.
+#NOTE also that you need version 4 or later of the FiXme package for some features.
+#DescriptionEnd
+#
+# Authors: Mark Edgington <edgimar@gmail.com>
+#          Jürgen Spitzmüller <spitz@lyx.org>
+
+Format 48
+
+#
+# List of FIXMEs
+#
+
+Style List_of_FIXMEs
+       KeepEmpty       1
+       LatexType       Command
+       LatexName       listoffixmes
+       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 FIXMEs]"
+
+       LabelFont 
+           Family      typewriter
+           Series      Medium
+           Size        Small
+           Color       latex
+       EndFont
+       Requires        fixme
+End
+
+#
+# FIXME Notes (simple)
+#
+
+InsetLayout Flex:Fixme_Note
+        LyXType               custom
+        LabelString           Fixme
+        LatexType             command
+        LatexName             fxnote
+        Decoration            classic
+        LabelFont
+          Color               magenta
+          Size                Small
+        EndFont
+        MultiPar              false
+        Argument 1
+          LabelString         "Options"
+          MenuString          "Fixme Note Options|s"
+          Tooltip             "Consult the fixme package documentation for options"
+        EndArgument
+       Requires              fixme
+End
+
+InsetLayout Flex:Fixme_Warning
+        CopyStyle             Flex:Fixme_Note
+        LabelString           Warning
+        LatexName             fxwarning
+End
+
+InsetLayout Flex:Fixme_Error
+        CopyStyle             Flex:Fixme_Note
+        LabelString           Error
+        LatexName             fxerror
+End
+
+InsetLayout Flex:Fixme_Fatal
+        CopyStyle             Flex:Fixme_Note
+        LabelString           Fatal
+        LatexName             fxfatal
+End
+
+
+#
+# FIXME Notes (targeted)
+#
+
+InsetLayout Flex:Fixme_Note_(Targeted)
+        CopyStyle             Flex:Fixme_Note
+        LabelString           "Fixme (Targeted)"
+        LatexName             fxnote*
+        Argument 1
+          LabelString         "Options"
+          MenuString          "Fixme Note Options|s"
+          Tooltip             "Consult the fixme package documentation for options"
+        EndArgument
+        Argument 2
+          LabelString         "Note"
+          Mandatory            1
+          MenuString          "Fixme Note|x"
+          Tooltip             "Insert the FIXME note here"
+          AutoInsert          1
+        EndArgument
+End
+
+InsetLayout Flex:Fixme_Warning_(Targeted)
+        CopyStyle             Flex:Fixme_Note_(Targeted)
+        LabelString           "Warning (Targeted)"
+        LatexName             fxwarning*
+End
+
+InsetLayout Flex:Fixme_Error_(Targeted)
+        CopyStyle             Flex:Fixme_Note_(Targeted)
+        LabelString           "Error (Targeted)"
+        LatexName             fxerror*
+End
+
+InsetLayout Flex:Fixme_Fatal_(Targeted)
+        CopyStyle             Flex:Fixme_Note_(Targeted)
+        LabelString           "Fatal (Targeted)"
+        LatexName             fxfatal*
+End
+
+
+#
+# FIXME Notes (multipar)
+#
+
+InsetLayout Flex:Fixme_Note_(Multipar)
+        CopyStyle             Flex:Fixme_Note
+        LabelString           "Fixme (Multipar)"
+        LatexName             anfxnote
+        LatexType             environment
+        Argument 1
+          LabelString         "Options"
+          MenuString          "Fixme Note Options|s"
+          Tooltip             "Consult the fixme package documentation for options"
+        EndArgument
+        Argument 2
+          LabelString         "Summary"
+          Mandatory            1
+          MenuString          "Fixme Summary"
+          Tooltip             "Insert a summary of the FIXME note here"
+          AutoInsert          1
+        EndArgument
+End
+
+InsetLayout Flex:Fixme_Warning_(Multipar)
+        CopyStyle             Flex:Fixme_Note_(Multipar)
+        LabelString           "Warning (Multipar)"
+        LatexName             anfxwarning
+End
+
+InsetLayout Flex:Fixme_Error_(Multipar)
+        CopyStyle             Flex:Fixme_Note_(Multipar)
+        LabelString           "Error (Multipar)"
+        LatexName             anfxerror
+End
+
+InsetLayout Flex:Fixme_Fatal_(Multipar)
+        CopyStyle             Flex:Fixme_Note_(Multipar)
+        LabelString           "Fatal (Multipar)"
+        LatexName             anfxfatal
+End
+
+
+#
+# FIXME Notes (multipar targeted)
+#
+
+InsetLayout Flex:Fixme_Note_(Multipar_Targeted)
+        CopyStyle             Flex:Fixme_Note_(Multipar)
+        LabelString           "Fixme (MP Targ.)"
+        LatexName             anfxnote*
+        Argument 1
+          LabelString         "Options"
+          MenuString          "Fixme Note Options|s"
+          Tooltip             "Consult the fixme package documentation for options"
+        EndArgument
+        Argument 2
+          LabelString         "Summary"
+          Mandatory            1
+          MenuString          "Fixme Summary"
+          Tooltip             "Insert a summary of the FIXME note here"
+          AutoInsert          1
+        EndArgument
+        Argument 3
+          LabelString         "Annotated Text"
+          Mandatory            1
+          MenuString          "Annotated Text|x"
+          Tooltip             "Insert the text to annotate here"
+          AutoInsert          1
+        EndArgument
+End
+
+InsetLayout Flex:Fixme_Warning_(Multipar_Targeted)
+        CopyStyle             Flex:Fixme_Note_(Multipar_Targeted)
+        LabelString           "Warning (MP Targ.)"
+        LatexName             anfxwarning*
+End
+
+InsetLayout Flex:Fixme_Error_(Multipar_Targeted)
+        CopyStyle             Flex:Fixme_Note_(Multipar_Targeted)
+        LabelString           "Error (MP Targ.)"
+        LatexName             anfxerror*
+End
+
+InsetLayout Flex:Fixme_Fatal_(Multipar_Targeted)
+        CopyStyle             Flex:Fixme_Note_(Multipar_Targeted)
+        LabelString           "Fatal (MP Targ.)"
+        LatexName             anfxfatal*
+End
+
+
+#
+# Backwards compatibility to user-provided
+# modules on the LyX wiki
+#
+# FIXME: uncomment these when #9000 is fixed.
+
+#InsetLayout FxNote
+#      ObsoletedBy           Flex:Fixme_Note
+#End
+#
+#InsetLayout FxNote*
+#      ObsoletedBy           Flex:Fixme_Note_(Targeted)
+#End
+#
+#InsetLayout FxWarning
+#      ObsoletedBy           Flex:Fixme_Warning
+#End
+#
+#InsetLayout FxWarning*
+#      ObsoletedBy           Flex:Fixme_Warning_(Targeted)
+#End
+#
+#InsetLayout FxError
+#      ObsoletedBy           Flex:Fixme_Error
+#End
+#
+#InsetLayout FxError*
+#      ObsoletedBy           Flex:Fixme_Error_(Targeted)
+#End
+#
+#InsetLayout FxFatal
+#      ObsoletedBy           Flex:Fixme_Fatal
+#End
+#
+#InsetLayout FxFatal*
+#      ObsoletedBy           Flex:Fixme_Fatal_(Targeted)
+#End
+
index 506af187c911d71d574e6d45f6f3f39f142040e2..d70dcd7081ae49c856f54b1d1827b256d8a36d0e 100644 (file)
@@ -745,7 +745,8 @@ char const * simplefeatures[] = {
        "algorithm2e",
        "sectionbox",
        "tcolorbox",
-       "pdfcomment"
+       "pdfcomment",
+       "fixme"
 };
 
 char const * bibliofeatures[] = {