]> git.lyx.org Git - lyx.git/blob - lib/xtemplates/vector_graphics.xtemplate
Customization update for HTMLClass
[lyx.git] / lib / xtemplates / vector_graphics.xtemplate
1 #
2 # Vector Graphics 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
14 Template VectorGraphics
15         GuiName "Vector graphics"
16         HelpText
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
20                 the final output.
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.
24         HelpTextEnd
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.
28         InputFormat "*"
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
34         Transform Rotate
35         Transform Resize
36         Transform Clip
37         Transform Extra
38         Preview Graphics
39         Format LaTeX
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}"
47                 UpdateFormat eps
48                 UpdateResult "$$AbsPath$$Basename.eps"
49                 Requirement "graphicx"
50                 ReferencedFile latex "$$AbsPath$$Basename.eps"
51                 ReferencedFile dvi   "$$AbsPath$$Basename.eps"
52         FormatEnd
53         Format PDFLaTeX
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}"
60                 UpdateFormat pdf6
61                 UpdateResult "$$AbsPath$$Basename.pdf"
62                 Requirement "graphicx"
63                 ReferencedFile pdflatex "$$AbsPath$$Basename.pdf"
64         FormatEnd
65         Format Ascii
66                 Product "[VectorGraphics: $$FName]"
67         FormatEnd
68         Format DocBook
69                 Product "<graphic fileref=\"$$AbsOrRelPathMaster$$Basename.eps\"></graphic>"
70                 UpdateFormat eps
71                 UpdateResult "$$AbsPath$$Basename.eps"
72                 ReferencedFile docbook     "$$AbsPath$$Basename.eps"
73                 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
74         FormatEnd
75         Format XHTML
76                 Product "<img src=\"$$AbsOrRelPathMaster$$Basename.svg\" />"
77                 UpdateFormat svg
78                 UpdateResult "$$AbsPath$$Basename.svg"
79                 ReferencedFile xhtml "$$AbsPath$$Basename.svg"
80         FormatEnd
81 TemplateEnd
82