]> git.lyx.org Git - lyx.git/commitdiff
Export external vector graphics as svg for XHTML.
authorRichard Heck <rgheck@lyx.org>
Sun, 31 Jul 2016 04:40:16 +0000 (00:40 -0400)
committerRichard Heck <rgheck@lyx.org>
Sun, 31 Jul 2016 05:36:11 +0000 (01:36 -0400)
(cherry picked from commit b9f7bf7d69c8c5e5391c59a9956377c742ca60de)

lib/external_templates

index 0f8fcab05c700ca46aa582347dfe594b65483c6c..460d951346ab1d3c52854b948c14a0f60c80e14c 100644 (file)
@@ -212,6 +212,12 @@ Template VectorGraphics
                ReferencedFile docbook     "$$AbsPath$$Basename.eps"
                ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
        FormatEnd
+       Format XHTML
+               Product "<img src=\"$$AbsOrRelPathMaster$$Basename.svg\" />"
+               UpdateFormat svg
+               UpdateResult "$$AbsPath$$Basename.svg"
+               ReferencedFile xhtml "$$AbsPath$$Basename.svg"
+       FormatEnd
 TemplateEnd
 
 Template XFig