]> git.lyx.org Git - lyx.git/blobdiff - lib/external_templates
Fix usage of multiple varieties of the same polyglossia language.
[lyx.git] / lib / external_templates
index bacaf3e969e0b7e2bec192a000aa14c1f7da4939..84d41faa976f377d630431b181cb3115081f98fd 100644 (file)
@@ -290,6 +290,51 @@ Template XFig
 TemplateEnd
 
 
+Template Inkscape
+       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
+       FileFilter "*.svg"
+       AutomaticProduction true
+       Transform Rotate
+       Preview InstantPreview
+       Format PDFLaTeX
+               TransformCommand Rotate RotationLatexCommand
+               # Resize is not desirable here, as fonts are sized to surrounding LaTeX font
+               Product "$$RotateFront\\input{$$AbsOrRelPathMaster$$Basename.pdf_tex}$$RotateBack"
+               UpdateFormat pdftex
+               UpdateResult "$$AbsPath$$Basename.pdf_tex"
+               Requirement "color"
+               Requirement "graphicx"
+               # Preamble WarnNotFound
+               # Preamble InputOrWarn
+               ReferencedFile pdflatex "$$AbsOrRelPathMaster$$Basename.pdf_tex"
+               ReferencedFile pdflatex "$$AbsPath$$Basename.pdf"
+       FormatEnd
+       Format LaTeX
+               TransformCommand Rotate RotationLatexCommand
+               Product "$$RotateFront\\input{$$AbsOrRelPathMaster$$Basename.eps_tex}$$RotateBack"
+               UpdateFormat pstex
+               UpdateResult "$$AbsPath$$Basename.eps_tex"
+               Requirement "color"
+               Requirement "graphicx"
+               # Preamble WarnNotFound
+               # Preamble InputOrWarn
+               ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.eps_tex"
+               ReferencedFile latex "$$AbsPath$$Basename.eps"
+               ReferencedFile dvi   "$$AbsPath$$Basename.eps"
+       FormatEnd
+TemplateEnd
+
+
 Template ChessDiagram
        GuiName "Chess diagram"
        HelpText