Abdelrazak Younes wrote:

> TP wrote:
>> 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
> 
> Just to be sure, are you aware that the $$i and $$o syntax is a LyX
> defined one? LyX will automatically replace that with the input and
> output file names

Yes I know it. I have replaced $$i by a svg file (say, toto.svg), and $$o by
a png file (say, toto.png). In the man page of convert, one can read:

"Specify ?file? as ?-? for standard input or output."

But I obtain an error:

$ inkscape toto.svg --export-png=/dev/stdout|convert - toto.png
convert: Improper image header `/tmp/magick-XXgTxmEa'.
convert: missing an image filename `toto.png'.

>>> By the way, what display option did you choose
>>> in the external inset configuration dialog?
>> 
>> What do you mean?
> 
> Sorry, I see now that your are using 1.6svn. The external-template file
> format has changed in 1.6, see the release note and the new file. You
> need to put a new 'Preview' tag. In your case, adding 'Preview Graphics'
> should do.

I have just updated my svn copy.
Actually the REALEASE-NOTES file contains a line about this new tag:

"The external template format recognize now a new tag: 'Preview'. This tag
is
used to define how an external material should be previewed in LyX. For more
detail,
see the 'external_templates' file in the resource directory of LyX."

But no "preview" tag in ./lib/external_templates... What is the matter?
If I manage to use this keyword, will it change the svg preview behaviour?

Thanks

Julien

-- 
TP (Tribulations Parallèles)

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

Reply via email to