Jean-Marc Lasgouttes wrote:
> Something like word macros, right? And with a special "virus"
> template, maybe?
> 
> I do not think this is a good idea.

No? There is no way to do anything unsafe AFAICS. All interaction with
the outside world uses the converters mechanism which is entirely
separate. I am not suggesting that these be stored in the lyx
document.

Below is the RasterImage template (latex output only) which is as
complex as it gets. Show me that this could be unsafe and I'll shelve
the idea.

Ok. 'EditCommand'. I'm happy to kill that...

Template RasterImage
        GuiName "Bitmap: $$Basename"
        HelpText
                A bitmap file.
                This template uses Gimp for editing.
        HelpTextEnd
        InputFormat "*"
        FileFilter "*.{gif,png,jpg,bmp,pbm,ppm,tga,tif,xpm,xbm}"
        EditCommand "gimp $$FName"
        AutomaticProduction true
        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]"
                Product "\\includegraphics$$Arg{$$Basename}"
                UpdateFormat eps
                UpdateResult "$$Basename.eps"
                Requirement "graphicx"
        FormatEnd
TemplateEnd

-- 
Angus

Reply via email to