checkViewer('a FIG viewer and editor', ['xfig', 'jfig3-itext.jar', 'jfig3.jar'],
rc_entry = [r'\Format fig fig FIG "" "%%" "%%" "vector"'])
#
+ checkViewer('a Dia viewer and editor', ['dia'],
+ rc_entry = [r'\Format dia dia DIA "" "%%" "%%" "vector"'])
+ #
checkViewer('a Grace viewer and editor', ['xmgrace'],
rc_entry = [r'\Format agr agr Grace "" "%%" "%%" "vector"'])
#
\Format docbook sgml DocBook B "" "%%" "document"
\Format docbook-xml xml "Docbook (XML)" "" "" "%%" "document"
\Format dot dot "Graphviz Dot" "" "" "%%" "vector"
+\Format dia dia "Dia" "" "" "%%" "vector"
\Format platex tex "LaTeX (pLaTeX)" "" "" "%%" "document"
\Format literate nw NoWeb N "" "%%" "document"
\Format lilypond ly "LilyPond music" "" "" "%%" "vector"
checkProg('a Dot -> PDF converter', ['dot -Tpdf $$i -o $$o'],
rc_entry = [ r'\converter dot pdf "%%" ""'])
#
+ checkProg('a Dia -> PNG converter', ['dia -e $$o -t png $$i'],
+ rc_entry = [ r'\converter dia png "%%" ""'])
+ #
+ checkProg('a Dia -> EPS converter', ['dia -e $$o -t eps $$i'],
+ rc_entry = [ r'\converter dia eps "%%" ""'])
+ #
#
path, lilypond = checkProg('a LilyPond -> EPS/PDF/PNG converter', ['lilypond'])
if (lilypond != ''):
UpdateResult "$$Tempname"
FormatEnd
TemplateEnd
+
+Template Dia
+ GuiName "Dia: $$AbsOrRelPathParent$$Basename"
+ HelpText
+ Dia diagram.
+ HelpTextEnd
+ InputFormat dia
+ FileFilter "*.dia"
+ AutomaticProduction true
+ # LyX has hard-coded support for these transformations
+ Transform Rotate
+ Transform Resize
+ Transform Clip
+ Transform Extra
+ Preview InstantPreview
+ 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{$$AbsOrRelPathMaster$$Basename}"
+ UpdateFormat eps
+ UpdateResult "$$AbsPath$$Basename.eps"
+ Requirement "graphicx"
+ ReferencedFile latex "$$AbsPath$$Basename.eps"
+ ReferencedFile dvi "$$AbsPath$$Basename.eps"
+ FormatEnd
+ Format PDFLaTeX
+ TransformOption Rotate RotationLatexOption
+ TransformOption Resize ResizeLatexOption
+ TransformOption Clip ClipLatexOption
+ TransformOption Extra ExtraOption
+ Option Arg "[$$Extra,$$Rotate,$$Resize,$$Clip]"
+ Product "\\includegraphics$$Arg{$$AbsOrRelPathMaster$$Basename}"
+ UpdateFormat pdf
+ UpdateResult "$$AbsPath$$Basename.pdf"
+ Requirement "graphicx"
+ ReferencedFile pdflatex "$$AbsPath$$Basename.pdf"
+ FormatEnd
+ Format Ascii
+ Product "$$Contents(\"$$AbsPath$$Basename.asc\")"
+ UpdateFormat asciiimage
+ UpdateResult "$$AbsPath$$Basename.asc"
+ FormatEnd
+ Format DocBook
+ Product "<graphic fileref=\"$$AbsOrRelPathMaster$$Basename.eps\"></graphic>"
+ UpdateFormat eps
+ UpdateResult "$$AbsPath$$Basename.eps"
+ ReferencedFile docbook "$$AbsPath$$Basename.eps"
+ ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
+ FormatEnd
+TemplateEnd
+