2 # Raster Image 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.
15 # By default, InsetExternal is displayed as a grey button
16 # containing this text.
17 GuiName "Raster image"
18 # This text is used in the External dialog.
19 # Provide enough information to explain to the user just
20 # what the template can provide him with.
23 Use this template to include bitmap images of any kind.
25 # ANY file type can be displayed as a RasterImage.
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 Raster image file.
30 FileFilter "*.{gif,png,jpg,bmp,pbm,ppm,tga,tif,xpm,xbm}"
31 # Set to "true" if the file represented by the template
32 # must be generated by LyX.
33 AutomaticProduction true
34 # LyX has hard-coded support for these transformations
39 # LyX preview options:
40 # Off: LyX will not attempt to show this material on screen.
41 # Graphics: LyX will attempt to show this material as-is or via a
42 # conversion to a showable format.
43 # InstantPreview: LyX will attempt to use the 'instant preview'
44 # mechanism in order to show this material.
47 TransformOption Rotate RotationLatexOption
48 TransformOption Resize ResizeLatexOption
49 TransformOption Clip ClipLatexOption
50 TransformOption Extra ExtraOption
51 Option Arg "[$$Extra,$$Rotate,$$Resize,$$Clip]"
52 # This string is what is output to the LaTeX file.
53 Product "\\includegraphics$$Arg{$$AbsOrRelPathMaster$$Basename}"
55 UpdateResult "$$AbsPath$$Basename.eps"
56 Requirement "graphicx"
57 ReferencedFile latex "$$AbsPath$$Basename.eps"
58 ReferencedFile dvi "$$AbsPath$$Basename.eps"
61 TransformOption Rotate RotationLatexOption
62 TransformOption Resize ResizeLatexOption
63 TransformOption Clip ClipLatexOption
64 TransformOption Extra ExtraOption
65 Option Arg "[$$Extra,$$Rotate,$$Resize,$$Clip]"
66 Product "\\includegraphics$$Arg{$$AbsOrRelPathMaster$$Basename}"
67 UpdateFormat "$$pngOrjpg"
68 UpdateResult "$$AbsPath$$Basename.$$pngOrjpg"
69 Requirement "graphicx"
70 ReferencedFile pdflatex "$$AbsPath$$Basename.$$pngOrjpg"
73 Product "[RasterImage: $$FName]"
76 Product "<graphic fileref=\"$$AbsOrRelPathMaster$$Basename.eps\"></graphic>"
78 UpdateResult "$$AbsPath$$Basename.eps"
79 ReferencedFile docbook "$$AbsPath$$Basename.eps"
80 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
83 Product "<img src=\"$$AbsOrRelPathMaster$$Basename.png\" />"
85 UpdateResult "$$AbsPath$$Basename.png"
86 ReferencedFile xhtml "$$AbsPath$$Basename.png"