X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fxtemplates%2Finkscape.xtemplate;h=ff0b6b5ae747adcd47370baaa67a50d68c3481d0;hb=93a08e58673ef624c84be0107961875b1768c85b;hp=e1214704bcb3c1d198e3a72532cba4ece8d9d781;hpb=aaf30259f1f5b07d7cfbd2acf7b2a6233f4ce944;p=lyx.git diff --git a/lib/xtemplates/inkscape.xtemplate b/lib/xtemplates/inkscape.xtemplate index e1214704bc..ff0b6b5ae7 100644 --- a/lib/xtemplates/inkscape.xtemplate +++ b/lib/xtemplates/inkscape.xtemplate @@ -4,6 +4,7 @@ # This file is part of LyX, the document processor. # Licence details can be found in the file COPYING. # +# author Daniel Gloger # author Martin Vermeer # # based on external templates by: @@ -45,11 +46,12 @@ Template Inkscape FileFilter "*.{svg}" AutomaticProduction true Transform Rotate + Transform Resize 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" + TransformCommand Resize ResizeLatexCommand + Product "$$RotateFront$$ResizeFront\\input{$$AbsOrRelPathMaster$$Basename.pdf_tex}$$ResizeBack$$RotateBack" UpdateFormat pdftex UpdateResult "$$AbsPath$$Basename.pdf_tex" Requirement "xcolor" @@ -62,7 +64,8 @@ Template Inkscape FormatEnd Format LaTeX TransformCommand Rotate RotationLatexCommand - Product "$$RotateFront\\input{$$AbsOrRelPathMaster$$Basename.eps_tex}$$RotateBack" + TransformCommand Resize ResizeLatexCommand + Product "$$RotateFront$$ResizeFront\\input{$$AbsOrRelPathMaster$$Basename.eps_tex}$$ResizeBack$$RotateBack" UpdateFormat pstex UpdateResult "$$AbsPath$$Basename.eps_tex" Requirement "xcolor" @@ -74,5 +77,21 @@ Template Inkscape ReferencedFile latex "$$AbsPath$$Basename.eps" ReferencedFile dvi "$$AbsPath$$Basename.eps" FormatEnd + Format Ascii + Product "[InkscapeGraphics: $$FName]" + FormatEnd + Format DocBook + Product "" + UpdateFormat eps + UpdateResult "$$AbsPath$$Basename.eps" + ReferencedFile docbook "$$AbsPath$$Basename.eps" + ReferencedFile docbook-xml "$$AbsPath$$Basename.eps" + FormatEnd + Format XHTML + Product "" + UpdateFormat svg + UpdateResult "$$AbsPath$$Basename.svg" + ReferencedFile xhtml "$$AbsPath$$Basename.svg" + FormatEnd TemplateEnd