Jose' Matos wrote:

> On Wednesday 21 June 2006 09:16, Georg Baum wrote:
>> The workaround to get svg->pdf conversion is to create an external
>> template (IIRC more detailed instructions are in the list archive).
> 
>   Georg I think that here you mean an external inset or am I wrong?

Yes and no: First you need yo create a template , then you can use it in an
external inset. I attach a template that I created some time ago. It might
or might not work, I forgot.


Georg
Template VectorGraphics
        # By default, InsetExternal is displayed as a grey button
        # containing this text.
        GuiName "Vector: $$AbsOrRelPathParent$$Basename"
        # This text is used in the External dialog.
        # Provide enough information to explain to the user just
        # what the template can provide him with.
        HelpText
                A vector drawing.
        HelpTextEnd
        # ANY file type can be displayed as a RasterImage.
        # Specifically, LyX will attempt to interrogate the file itself
        # in order to deduce its format.
        InputFormat "*"
        # Globbing pattern used when browsing for a Raster image file.
        FileFilter "*.{pdf,eps,fig,obj,tgo,svg}"
        # Set to "true" if the file represented by the template
        # must be generated by LyX.
        AutomaticProduction true
        # LyX has hard-coded support for these transformations
        Transform Rotate
        Transform Resize
        Transform Clip
        Transform Extra
        Format LaTeX
                TransformOption Rotate RotationLatexOption
                TransformOption Resize ResizeLatexOption
                TransformOption Clip   ClipLatexOption
                TransformOption Extra  ExtraOption
                Option Arg "[$$Extra,$$Rotate,$$Resize,$$Clip]"
                # This string is what is output to the LaTeX file.
                Product "\\includegraphics$$Arg{$$AbsOrRelPathMaster$$Basename}"
                UpdateFormat eps
                UpdateResult "$$AbsPath$$Basename.eps"
                Requirement "graphicx"
                ReferencedFile latex "$$AbsPath$$Basename.eps"
                ReferencedFile dvi   "$$AbsPath$$Basename.eps"
        FormatEnd
        Format PDFLaTeX
                TransformCommand Rotate RotationLatexCommand
                TransformCommand Resize ResizeLatexCommand
                # FIXME: use native pdfximage resizing
                # FIXME: support Clip
                # FIXME: support Extra
                Product 
"$$RotateFront$$ResizeFront\\pdfximage{$$AbsOrRelPathMaster$$Basename.pdf}$$ResizeBack$$RotateBack"
                UpdateFormat pdf
                UpdateResult "$$AbsPath$$Basename.pdf"
                Requirement "graphicx"
                ReferencedFile latex "$$AbsPath$$Basename.pdf"
        FormatEnd
        Format Ascii
                Product "$$Contents(\"$$AbsPath$$Basename.asc\")"
                UpdateFormat asciiimage
                UpdateResult "$$AbsPath$$Basename.asc"
        FormatEnd
        Format DocBook
                Product "<graphic 
fileref=\"$$AbsOrRelPathMaster$$Basename.eps\"></graphic>"
                UpdateFormat eps
                UpdateResult "$$AbsPath$$Basename.eps"
                ReferencedFile docbook     "$$AbsPath$$Basename.eps"
                ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
        FormatEnd
        Format LinuxDoc
                Product "[VectorGraphic: $$FName]"
        FormatEnd
TemplateEnd

Reply via email to