]> git.lyx.org Git - features.git/commitdiff
inkscape.xtemplate: fixes issues 3, 6 and 7 of bug #10679
authorUwe Stöhr <uwestoehr@lyx.org>
Sun, 21 May 2017 21:57:53 +0000 (23:57 +0200)
committerUwe Stöhr <uwestoehr@lyx.org>
Sun, 21 May 2017 21:57:53 +0000 (23:57 +0200)
lib/xtemplates/inkscape.xtemplate

index 840d1268827afb4e7fa0e3c930583c9f26843d52..ba6b5531a5019b9f1f3828c8a6758767bf5ae0f9 100644 (file)
@@ -5,7 +5,6 @@
 # Licence details can be found in the file COPYING.
 #
 # author Asger Alstrup Nielsen
 # Licence details can be found in the file COPYING.
 #
 # author Asger Alstrup Nielsen
-# author Angus Leeming
 # author Johnathan Burchill
 #
 # Full author contact details are available in file CREDITS.
 # author Johnathan Burchill
 #
 # Full author contact details are available in file CREDITS.
@@ -34,15 +33,11 @@ Template Inkscape
        GuiName "Inkscape figure"
        HelpText
                An Inkscape figure.
        GuiName "Inkscape figure"
        HelpText
                An Inkscape figure.
-               This template should work flawlessly with Inkscape 0.48. 
-               For Inkscape 0.91, there is a (reported) bug in the 
-               LaTeX + PDF output which makes a workaround necessary, 
-               see Embedded Objects manual.
                Note that using this template automatically uses the 
                document text in the image (like with the Xfig template).
        HelpTextEnd
        InputFormat svg
                Note that using this template automatically uses the 
                document text in the image (like with the Xfig template).
        HelpTextEnd
        InputFormat svg
-       FileFilter "*.svg"
+       FileFilter "*.{svg}"
        AutomaticProduction true
        Transform Rotate
        Preview InstantPreview
        AutomaticProduction true
        Transform Rotate
        Preview InstantPreview
@@ -52,8 +47,9 @@ Template Inkscape
                Product "$$RotateFront\\input{$$AbsOrRelPathMaster$$Basename.pdf_tex}$$RotateBack"
                UpdateFormat pdftex
                UpdateResult "$$AbsPath$$Basename.pdf_tex"
                Product "$$RotateFront\\input{$$AbsOrRelPathMaster$$Basename.pdf_tex}$$RotateBack"
                UpdateFormat pdftex
                UpdateResult "$$AbsPath$$Basename.pdf_tex"
-               Requirement "color"
+               Requirement "xcolor"
                Requirement "graphicx"
                Requirement "graphicx"
+               Requirement "mathtools"
                # Preamble WarnNotFound
                # Preamble InputOrWarn
                ReferencedFile pdflatex "$$AbsOrRelPathMaster$$Basename.pdf_tex"
                # Preamble WarnNotFound
                # Preamble InputOrWarn
                ReferencedFile pdflatex "$$AbsOrRelPathMaster$$Basename.pdf_tex"
@@ -64,8 +60,9 @@ Template Inkscape
                Product "$$RotateFront\\input{$$AbsOrRelPathMaster$$Basename.eps_tex}$$RotateBack"
                UpdateFormat pstex
                UpdateResult "$$AbsPath$$Basename.eps_tex"
                Product "$$RotateFront\\input{$$AbsOrRelPathMaster$$Basename.eps_tex}$$RotateBack"
                UpdateFormat pstex
                UpdateResult "$$AbsPath$$Basename.eps_tex"
-               Requirement "color"
+               Requirement "xcolor"
                Requirement "graphicx"
                Requirement "graphicx"
+               Requirement "mathtools"
                # Preamble WarnNotFound
                # Preamble InputOrWarn
                ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.eps_tex"
                # Preamble WarnNotFound
                # Preamble InputOrWarn
                ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.eps_tex"