2 # Vector Graphics External Template
4 # This file is part of LyX, the document processor.
5 # Licence details can be found in the file COPYING.
7 # author Asger Alstrup Nielsen
9 # author Johnathan Burchill
11 # Full author contact details are available in file CREDITS.
14 Template VectorGraphics
15 GuiName "Vector graphics"
17 A vector graphics file.
18 Use this template to include vector graphics of any kind.
19 LyX will try to retain the vector properties of the image for
21 Note that specialized templates exist for Xfig figures and Dia diagrams.
22 The specialized templates allow to automatically use the document font in
23 the figures, which is not possible with this general template.
25 # ANY file type can be displayed as a VectorGraphics.
26 # Specifically, LyX will attempt to interrogate the file itself
27 # in order to deduce its format.
29 # Globbing pattern used when browsing for a vector graphics file.
30 # xfig, dia, fen and ly are exlcuded, since we have specialized templates
31 FileFilter "*.{agr,dot,emf,eps,odg,obj,sxd,svg,svgz,tgo,pdf,wmf}"
32 AutomaticProduction true
33 # LyX has hard-coded support for these transformations
40 TransformOption Rotate RotationLatexOption
41 TransformOption Resize ResizeLatexOption
42 TransformOption Clip ClipLatexOption
43 TransformOption Extra ExtraOption
44 Option Arg "[$$Extra,$$Rotate,$$Resize,$$Clip]"
45 # This string is what is output to the LaTeX file.
46 Product "\\includegraphics$$Arg{$$AbsOrRelPathMaster$$Basename}"
48 UpdateResult "$$AbsPath$$Basename.eps"
49 Requirement "graphicx"
50 ReferencedFile latex "$$AbsPath$$Basename.eps"
51 ReferencedFile dvi "$$AbsPath$$Basename.eps"
54 TransformOption Rotate RotationLatexOption
55 TransformOption Resize ResizeLatexOption
56 TransformOption Clip ClipLatexOption
57 TransformOption Extra ExtraOption
58 Option Arg "[$$Extra,$$Rotate,$$Resize,$$Clip]"
59 Product "\\includegraphics$$Arg{$$AbsOrRelPathMaster$$Basename}"
61 UpdateResult "$$AbsPath$$Basename.pdf"
62 Requirement "graphicx"
63 ReferencedFile pdflatex "$$AbsPath$$Basename.pdf"
66 Product "[VectorGraphics: $$FName]"
69 Product "<graphic fileref=\"$$AbsOrRelPathMaster$$Basename.eps\"></graphic>"
71 UpdateResult "$$AbsPath$$Basename.eps"
72 ReferencedFile docbook "$$AbsPath$$Basename.eps"
73 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
76 Product "<img src=\"$$AbsOrRelPathMaster$$Basename.svg\" />"
78 UpdateResult "$$AbsPath$$Basename.svg"
79 ReferencedFile xhtml "$$AbsPath$$Basename.svg"