[prev in list] [next in list] [prev in thread] [next in thread]
List: lyx-devel
Subject: Re: Cannot get Externam Material: Inkscape figure to work
From: Jürgen_Spitzmüller <spitz () lyx ! org>
Date: 2017-11-03 9:38:54
Message-ID: 1509701934.9414.4.camel () lyx ! org
[Download RAW message or body]
[Attachment #2 (multipart/mixed)]
Am Freitag, den 03.11.2017, 08:28 +0100 schrieb racoon:
> The feature works in rc1 now. Great!
Good. Thanks for confirming.
> But there is no UI preference to set the scaling, right?
Right. It seems to have been left out by purpose (there's an according
comment in the xtemplate file), but it would be easy to add it (now;
later, it would be a file format change).
Scott, are you interested in that? See attached patch.
Jürgen
>
> Daniel
>
["iksc.diff" (iksc.diff)]
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"
["signature.asc" (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic