From: Juergen Spitzmueller Date: Sat, 4 Nov 2017 09:36:36 +0000 (+0100) Subject: Add resize facility to inkscape template. X-Git-Tag: lyx-2.4.0dev-acb2ca7b~4402 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=55002e0c39bdc0cbd73c1056a7a7f1c5d786950b;p=features.git Add resize facility to inkscape template. (cherry picked from commit 167e96ca68069d986b318d08e8861c282c941d5c) --- diff --git a/lib/xtemplates/inkscape.xtemplate b/lib/xtemplates/inkscape.xtemplate index e4fc14d531..ff0b6b5ae7 100644 --- a/lib/xtemplates/inkscape.xtemplate +++ b/lib/xtemplates/inkscape.xtemplate @@ -46,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" @@ -63,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"