X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fexternal_templates;h=84d41faa976f377d630431b181cb3115081f98fd;hb=5b713494506d4212709d4c88c94be1a0b1e4f794;hp=ee153985cd2a00ae2c865143a55857a53689e1d7;hpb=94dd876699691037e1d30442c4541006347be9fe;p=lyx.git diff --git a/lib/external_templates b/lib/external_templates index ee153985cd..84d41faa97 100644 --- a/lib/external_templates +++ b/lib/external_templates @@ -47,7 +47,7 @@ Template GnumericSpreadsheet both for gnumeric and excel files. HelpTextEnd InputFormat "gnumeric" - FileFilter "*.{gnumeric,ods,xls}" + FileFilter "*.{gnumeric,ods,xls,xlsx}" AutomaticProduction true Format LaTeX Product "\\def\\inputGnumericTable{}\\input{$$AbsOrRelPathMaster$$Basename.tex}" @@ -81,6 +81,11 @@ Template GnumericSpreadsheet Format DocBook Product "[Spreadsheet: $$FName]" FormatEnd + Format XHTML + Product "$$Contents(\"$$AbsPath$$Basename.html\")

" + UpdateFormat html_table + UpdateResult "$$AbsPath$$Basename.html" + FormatEnd TemplateEnd Template RasterImage @@ -285,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