]> git.lyx.org Git - lyx.git/blob - lib/xtemplates/raster_image.xtemplate
Update translation of Listings by Jari-Matti Mäkelä
[lyx.git] / lib / xtemplates / raster_image.xtemplate
1 #
2 # Raster Image 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 RasterImage
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.
21         HelpText
22                 A bitmap file.
23                 Use this template to include bitmap images of any kind.
24         HelpTextEnd
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.
28         InputFormat "*"
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
35         Transform Rotate
36         Transform Resize
37         Transform Clip
38         Transform Extra
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.
45         Preview Graphics
46         Format LaTeX
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}"
54                 UpdateFormat eps
55                 UpdateResult "$$AbsPath$$Basename.eps"
56                 Requirement "graphicx"
57                 ReferencedFile latex "$$AbsPath$$Basename.eps"
58                 ReferencedFile dvi   "$$AbsPath$$Basename.eps"
59         FormatEnd
60         Format PDFLaTeX
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"
71         FormatEnd
72         Format Ascii
73                 Product "[RasterImage: $$FName]"
74         FormatEnd
75         Format DocBook
76                 Product "<graphic fileref=\"$$AbsOrRelPathMaster$$Basename.eps\"></graphic>"
77                 UpdateFormat eps
78                 UpdateResult "$$AbsPath$$Basename.eps"
79                 ReferencedFile docbook     "$$AbsPath$$Basename.eps"
80                 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
81         FormatEnd
82         Format XHTML
83                 Product "<img src=\"$$AbsOrRelPathMaster$$Basename.png\" />"
84                 UpdateFormat png
85                 UpdateResult "$$AbsPath$$Basename.png"
86                 ReferencedFile xhtml "$$AbsPath$$Basename.png"
87         FormatEnd
88 TemplateEnd
89