Hi

I really like the new External Material Inset. Here's an external
material inset template that works (for me at least) with the drawing
program: TGif (see http://bourbon.cs.umd.edu:8001/tgif/ ).

It's quite simple and not tested beyond that it actually works for
me.... I guess that the only real requirement is that 'tgif' must be
installed and in the path.

Here are some questions/suggestions:

--- Where should these external material inset templates be submitted?
I've looked at for instance:
http://www.sad.it/~jug/lyx/lyxdoc/ExternalMaterial/   but haven't found
the information, nor in the documentation with my LyX version 1.1.6fix3.

The suggestion is of course to add a suitable address of where to submit
these templates. Maybe this list is the right place?

--- A local 'external_templates'-file hides the system's templates-file,
so at the moment I think I'm forced to first copy the system's
template-file.
Suggestion: Add some 'include'-command to automatically include
/usr/share/lyx/external_templates    (or just let LyX do this
automatically)

--- There might be a subtle difference between 'ViewCommand' and
'EditCommand', below I'm using TGif for both of them, whereas the
'Bitmap'-template views the created '.eps'-file. Is the same behaviour
desireable here as well?


Now to the actual template.  Simply add the text below to your
'external_templates'-file (either in your .lyx-directory, or in the
installation directory). It's also attached as a file for your
convenience.

Template TGif
 GuiName "[TGif: $$Basename]"
 HelpText
  A TGif figure.
  In the parameters box you can supply additional
  parameters to TGif.

  This template uses TGif for editing and viewing.
 HelpTextEnd
 FileFilter "*.tgo"
 ViewCommand "tgif $$FName"
 EditCommand "tgif $$FName"
 AutomaticProduction true
 Format LaTeX
  Product "\\includegraphics{$$Basename.eps}"
  UpdateCommand "tgif -print -color -eps $$Parameters $$FName"
  Requirement "graphics"
 FormatEnd
TemplateEnd



Christian Riddersr�m

Attachment: external_templates
Description: Binary data

Reply via email to