Abdelrazak Younes wrote:

> ppm or png can be equally shown within LyX.

Ok.

> AFAIK, the semicolon is not for redirection but for command separation,
> you might want to use '>' instead.

Yes, I mean that I used the semicolon, because the following does not work
in command line:

$ inkscape $$i --export-png=/dev/stdout|convert - $$o

> But I am not sure that this syntax is 
> understood by LyX built-in command interpreter. You should probably
> create a helper script with python (say svg2ppm.py) where you call the
> two command above. But I am not sure this is the problem as, as I said,
> png is understood by LyX.

Today I have made tgif=>png and fig=>png filters in the LyX configuration,
it works perfectly (I use shell scripts).
But it seems there is a problem with svg. Perhaps an error in my
external-template file? (see below)

> By the way, what display option did you choose 
> in the external inset configuration dialog?

What do you mean?

> Maybe you could send your addition to external-template to the list.

This is the svg/inkscape section of my external-template file:

=====
Template Inkscape
        # By default, InsetExternal is displayed as a grey button
        # containing this text.
        GuiName "Inkscape: $$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 Inkscape svg drawing (possibly with equations).
        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 svg
        # Globbing pattern used when browsing for a Raster image file.
        FileFilter "*.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{$$AbsPath$$Basename}"
                UpdateFormat eps
                UpdateResult "$$AbsPath$$Basename.eps"
                Requirement "graphicx"
                ReferencedFile latex "$$AbsPath$$Basename.eps"
                ReferencedFile dvi   "$$AbsPath$$Basename.eps"
        FormatEnd
TemplateEnd
=====

Thanks

Julien

TP (Tribulations Parallèles)

"Allez, Monsieur, allez, et la foi vous viendra." (D'Alembert).

Reply via email to