This patch allows me to see external tgif insets on screen and as dvi.

An annoying problem was that you are not allowed to have comments inside 
items... i.e. it breaks if you have something like:

Template Tgif
# a comment
        GuiName "Tgif: $$Basename"
...



/Christian

-- 
Christian Ridderström                           http://www.md.kth.se/~chr
Index: external_templates
===================================================================
RCS file: /cvs/lyx/lyx-devel/lib/external_templates,v
retrieving revision 1.21
diff -u -r1.21 external_templates
--- external_templates  2003/10/07 22:59:56     1.21
+++ external_templates  2003/10/29 20:42:35
@@ -142,6 +142,31 @@
 TemplateEnd
 
 
+Template Tgif
+       GuiName "Tgif: $$Basename"
+       HelpText
+               A Tgif figure.
+               This template uses Tgif for editing.
+       HelpTextEnd
+       InputFormat tgif
+       FileFilter "*.(obj|gif)"
+       EditCommand "tgif $$FName"
+       AutomaticProduction true
+       Transform Rotate
+       Transform Resize
+       Format LaTeX
+               TransformCommand Rotate RotationLatexCommand
+               TransformCommand Resize ResizeLatexCommand
+               Product 
"$$RotateFront$$ResizeFront\\input{$$Basename.pstex_t}$$ResizeBack$$RotateBack"
+               UpdateFormat pstex
+               UpdateResult "$$Basename.pstex_t"
+               Requirement "graphicx"
+               Preamble WarnNotFound
+               Preamble InputOrWarn
+       FormatEnd
+TemplateEnd
+
+
 Template ChessDiagram
        GuiName "Chess: $$Basename"
        HelpText

Reply via email to