]> git.lyx.org Git - lyx.git/blob - lib/external_templates
fix capitalisation bug
[lyx.git] / lib / external_templates
1 # Basic External Templates for LyX
2
3 Template RasterImage
4         GuiName "[Bitmap: $$FName]"
5         HelpText
6                 A bitmap file.
7                 In the parameters box, you can provide optional
8                 parameters for the ImageMagick convert program.
9                 E.g., use `-border 10x10 -bordercolor black'
10                 to surround the picture with a black border 
11                 when you export to LaTeX.
12                 When you export to Ascii, you can provide a
13                 number describing how many columns the picture
14                 should expand to.
15                 This template uses Gimp for editing, and 
16                 ImageMagick to do conversions. It requires 
17                 Python for exporting to Ascii and DocBook, 
18                 and gifscii for exporting to Ascii.
19         HelpTextEnd
20         FileFilter "*.(gif|png|jpg|bmp|pbm|ppm|tga|tif|xpm|xbm)"
21         ViewCommand "display $$Basename.eps"
22         EditCommand "gimp $$FName"
23         AutomaticProduction true
24         Format LaTeX
25                 Product "\\includegraphics{$$Basename.eps}"
26                 UpdateCommand "convert $$Parameters $$FName $$Basename.eps"
27                 UpdateResult "$$Basename.eps"
28                 Requirement "graphicx"
29         FormatEnd
30         Format Ascii
31                 Product "$$Contents(\"$$Basename.asc\")"
32                 UpdateCommand "python $$Sysdir/scripts/pic2ascii.py $$FName $$Parameters"
33                 UpdateResult "$$Basename.asc"
34         FormatEnd
35         Format DocBook
36                 Product "<graphic fileref=\"$$Basename.eps\"></graphic>"
37                 UpdateCommand "python $$Sysdir/scripts/pic2png_eps.py $$FName $$Parameters"
38                 UpdateResult "$$Basename.eps"
39         FormatEnd
40         Format LinuxDoc
41                 Product "[Bitmap: $$FName]"
42         FormatEnd
43 TemplateEnd
44
45 Template XFig
46         GuiName "[XFig: $$Basename]"
47         HelpText
48                 An XFig figure.
49                 In the parameters box, you can provide
50                 optional parameters for fig2dev in the
51                 case of LaTeX export. E.g., -m .69 to
52                 reduce the size.
53                 For Ascii export, you can provide a
54                 number that specifies the width of an
55                 Ascii approximation of the figure.
56                 For DocBook export, you can provide
57                 optional parameters for the ImageMagick
58                 convert script.
59                 This template uses XFig for editing, and 
60                 fig2dev and ImageMagick to do conversions. 
61                 It requires Python for exporting to Ascii
62                 and DocBook, and gifscii for exporting to 
63                 Ascii.
64         HelpTextEnd
65         FileFilter "*.fig"
66         ViewCommand "xfig $$FName"
67         EditCommand "xfig $$FName"
68         AutomaticProduction true
69         Format LaTeX
70                 Product "\\input{$$Basename.pstex_t}"
71                 UpdateCommand "python $$Sysdir/scripts/fig2pstex.py $$FName $$Parameters"
72                 UpdateResult "$$Basename.pstex_t"
73                 Requirement "graphicx"
74         FormatEnd
75         Format PDFLaTeX
76                 Product "\\begin{picture}(0,0)\\includegraphics{$$Basename}\\end{picture}"
77                 UpdateCommand "python $$Sysdir/scripts/fig2png.py $$FName $$Parameters"
78                 UpdateResult "$$Basename.png"
79                 Requirement "graphicx"  
80         FormatEnd
81         Format Ascii
82                 Product "$$Contents(\"$$Basename.asc\")"
83                 UpdateCommand "python $$Sysdir/scripts/pic2ascii.py $$FName $$Parameters"
84                 UpdateResult "$$Basename.asc"
85         FormatEnd
86         Format DocBook
87                 Product "<graphic fileref=\"$$Basename.eps\"></graphic>"
88                 UpdateCommand "python $$Sysdir/scripts/pic2png_eps.py $$FName $$Parameters"
89                 UpdateResult "$$Basename.eps"
90         FormatEnd
91         Format LinuxDoc
92                 Product "[XFig: $$FName]"
93         FormatEnd
94 TemplateEnd
95
96 Template ChessDiagram
97         GuiName "[Chess: $$Basename]"
98         HelpText
99                 A chess position diagram.
100                 This template will use XBoard to view
101                 and edit the position. Use the
102                 'File->Save Position' in XBoard to save 
103                 the position that you want to display.
104                 Make sure to give it a '.fen' extension
105                 and remember to type in a relative path
106                 to the LyX document location.
107                 Within XBoard, use 'Edit->Edit Position'
108                 to enable general editing of the board.
109                 You might also check out the
110                 'Options->Test legality' option, and
111                 remember to middle and right click to 
112                 insert new material in the board.
113                 In order for this to work, you have to
114                 put the bundled lyxskak.sty in a place
115                 that TeX will find it, and you will need
116                 to install the skak package from CTAN.
117         HelpTextEnd
118         FileFilter "*.fen"
119         ViewCommand "xboard -lpf $$FName"
120         EditCommand "xboard -lpf $$FName -mode EditPosition"
121         AutomaticProduction true
122         Format LaTeX
123                 Product "\\loadgame{$$FPath$$Basename}\\showboard"
124                 Requirement "chess"
125         FormatEnd
126         Format Ascii
127                 Product "$$Contents(\"$$Basename.asc\")"
128                 UpdateCommand "python $$Sysdir/scripts/fen2ascii.py $$FName $$Basename.asc"
129                 UpdateResult "$$Basename.asc"
130         FormatEnd
131         Format DocBook
132                 Product "[Chess: $$Basename]"
133         FormatEnd
134         Format LinuxDoc
135                 Product "[Chess: $$FName]"
136         FormatEnd
137 TemplateEnd
138
139 Template Date
140         GuiName "[Date]"
141         HelpText
142                 Todays date.
143                 In the parameters box, you can provide
144                 optional parameters for the date
145                 command.
146                 No parameters gives "Mon Jun 12 05:20:41 CEST 2000"
147                 Use -u to get "Mon Jun 12 03:20:41 UTC 2000"
148                 Use -I to get "2000-06-12".
149                 Use -R to get "Mon, 12 Jun 2000 05:20:41 +0200"
150                 Use +%d-%m-%Y to get "20-06-2000"
151                 Use +%T to get the time as "23:23:00"
152                 Read 'info date' for more information.
153         HelpTextEnd
154         FileFilter "*"
155         ViewCommand "xterm -e less $$Tempname"
156         AutomaticProduction true
157         Format LaTeX
158                 Product "$$Contents(\"$$Tempname\")"
159                 UpdateCommand "python $$Sysdir/scripts/general_command_wrapper.py - $$Tempname date $$Parameters"
160         FormatEnd
161         Format Ascii
162                 Product "$$Contents(\"$$Tempname\")"
163                 UpdateCommand "python $$Sysdir/scripts/general_command_wrapper.py - $$Tempname date $$Parameters"
164         FormatEnd
165         Format DocBook
166                 Product "$$Contents(\"$$Tempname\")"
167                 UpdateCommand "python $$Sysdir/scripts/general_command_wrapper.py - $$Tempname date $$Parameters"
168         FormatEnd
169         Format LinuxDoc
170                 Product "$$Contents(\"$$Tempname\")"
171                 UpdateCommand "python $$Sysdir/scripts/general_command_wrapper.py - $$Tempname date $$Parameters"
172         FormatEnd
173 TemplateEnd
174