1#
2# Dia External Template
3#
4# This file is part of LyX, the document processor.
5# Licence details can be found in the file COPYING.
6#
7# author Asger Alstrup Nielsen
8# author Angus Leeming
9# author Johnathan Burchill
10#
11# Full author contact details are available in file CREDITS.
12
13
14Template Dia
15	GuiName "Dia diagram"
16	HelpText
17		Dia diagram.
18	HelpTextEnd
19	InputFormat dia
20	FileFilter "*.dia"
21	AutomaticProduction true
22	# LyX has hard-coded support for these transformations
23	Transform Rotate
24	Transform Resize
25	Transform Clip
26	Transform Extra
27	Preview InstantPreview
28	Format LaTeX
29		TransformOption Rotate RotationLatexOption
30		TransformOption Resize ResizeLatexOption
31		TransformOption Clip   ClipLatexOption
32		TransformOption Extra  ExtraOption
33		Option Arg "[$$Extra,$$Rotate,$$Resize,$$Clip]"
34		# This string is what is output to the LaTeX file.
35		Product "\\includegraphics$$Arg{$$AbsOrRelPathMaster$$Basename}"
36		UpdateFormat eps
37		UpdateResult "$$AbsPath$$Basename.eps"
38		Requirement "graphicx"
39		ReferencedFile latex "$$AbsPath$$Basename.eps"
40		ReferencedFile dvi   "$$AbsPath$$Basename.eps"
41	FormatEnd
42	Format PDFLaTeX
43		TransformOption Rotate RotationLatexOption
44		TransformOption Resize ResizeLatexOption
45		TransformOption Clip   ClipLatexOption
46		TransformOption Extra  ExtraOption
47		Option Arg "[$$Extra,$$Rotate,$$Resize,$$Clip]"
48		Product "\\includegraphics$$Arg{$$AbsOrRelPathMaster$$Basename}"
49		UpdateFormat pdf6
50		UpdateResult "$$AbsPath$$Basename.pdf"
51		Requirement "graphicx"
52		ReferencedFile pdflatex "$$AbsPath$$Basename.pdf"
53	FormatEnd
54	Format Ascii
55		Product "[Dia: $$FName]"
56	FormatEnd
57	Format DocBook
58		Product "<graphic fileref=\"$$AbsOrRelPathMaster$$Basename.eps\"></graphic>"
59		UpdateFormat eps
60		UpdateResult "$$AbsPath$$Basename.eps"
61		ReferencedFile docbook     "$$AbsPath$$Basename.eps"
62		ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
63	FormatEnd
64	Format XHTML
65		Product "<img src=\"$$AbsOrRelPathMaster$$Basename.svg\" />"
66		UpdateFormat svg
67		UpdateResult "$$AbsPath$$Basename.svg"
68		ReferencedFile xhtml "$$AbsPath$$Basename.svg"
69	FormatEnd
70TemplateEnd
71
72