]> git.lyx.org Git - lyx.git/blob - lib/external_templates
fix typo that put too many include paths for most people
[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 "graphics"
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 "\\begin{picture}(0,0)\\includegraphics{$$Basename.eps}\\end{picture}\\input{$$Basename.pstex_t}"
71                 UpdateCommand "python $$Sysdir/scripts/fig2pstex.py $$FName $$Parameters"
72                 UpdateResult "$$Basename.eps"
73                 Requirement "graphics"  
74         FormatEnd
75         Format Ascii
76                 Product "$$Contents(\"$$Basename.asc\")"
77                 UpdateCommand "python $$Sysdir/scripts/pic2ascii.py $$FName $$Parameters"
78                 UpdateResult "$$Basename.asc"
79         FormatEnd
80         Format DocBook
81                 Product "<graphic fileref=\"$$Basename.eps\"></graphic>"
82                 UpdateCommand "python $$Sysdir/scripts/pic2png_eps.py $$FName $$Parameters"
83                 UpdateResult "$$Basename.eps"
84         FormatEnd
85         Format LinuxDoc
86                 Product "[XFig: $$FName]"
87         FormatEnd
88 TemplateEnd
89
90 Template ChessDiagram
91         GuiName "[Chess: $$Basename]"
92         HelpText
93                 A chess position diagram.
94                 This template will use XBoard to view
95                 and edit the position. Use the
96                 'File->Save Position' in XBoard to save 
97                 the position that you want to display.
98                 Make sure to give it a '.fen' extension
99                 and remember to type in a relative path
100                 to the LyX document location.
101                 Within XBoard, use 'Edit->Edit Position'
102                 to enable general editing of the board.
103                 You might also check out the
104                 'Options->Test legality' option, and
105                 remember to middle and right click to 
106                 insert new material in the board.
107                 In order for this to work, you have to
108                 put the bundled lyxskak.sty in a place
109                 that TeX will find it, and you will need
110                 to install the skak package from CTAN.
111         HelpTextEnd
112         FileFilter "*.fen"
113         ViewCommand "xboard -lpf $$FName"
114         EditCommand "xboard -lpf $$FName -mode EditPosition"
115         AutomaticProduction true
116         Format LaTeX
117                 Product "\\loadgame{$$FPath$$Basename}\\showboard"
118                 Requirement "chess"
119         FormatEnd
120         Format Ascii
121                 Product "$$Contents(\"$$Basename.asc\")"
122                 UpdateCommand "python $$Sysdir/scripts/fen2ascii.py $$FName $$Basename.asc"
123                 UpdateResult "$$Basename.asc"
124         FormatEnd
125         Format DocBook
126                 Product "[Chess: $$Basename]"
127         FormatEnd
128         Format LinuxDoc
129                 Product "[Chess: $$FName]"
130         FormatEnd
131 TemplateEnd
132
133 Template Date
134         GuiName "[Date]"
135         HelpText
136                 Todays date.
137                 In the parameters box, you can provide
138                 optional parameters for the date
139                 command.
140                 Use empty to get "Mon Jun 12 05:20:41 CEST 2000"
141                 Use -u to get "Mon Jun 12 03:20:41 UTC 2000"
142                 Use -I to get "2000-06-12".
143                 Use -R to get "Mon, 12 Jun 2000 05:20:41 +0200"
144                 Use +%d-%m-%Y to get "20-06-2000"
145                 Use +%T to get the time as "23:23:00"
146                 Read 'info date' for more information.
147         HelpTextEnd
148         FileFilter "*"
149         ViewCommand "xterm -e less $$Tempname"
150         AutomaticProduction true
151         Format LaTeX
152                 Product "$$Contents(\"$$Tempname\")"
153                 UpdateCommand "python $$Sysdir/scripts/general_command_wrapper.py - $$Tempname date $$Parameters"
154         FormatEnd
155         Format Ascii
156                 Product "$$Contents(\"$$Tempname\")"
157                 UpdateCommand "python $$Sysdir/scripts/general_command_wrapper.py - $$Tempname date $$Parameters"
158         FormatEnd
159         Format DocBook
160                 Product "$$Contents(\"$$Tempname\")"
161                 UpdateCommand "python $$Sysdir/scripts/general_command_wrapper.py - $$Tempname date $$Parameters"
162         FormatEnd
163         Format LinuxDoc
164                 Product "$$Contents(\"$$Tempname\")"
165                 UpdateCommand "python $$Sysdir/scripts/general_command_wrapper.py - $$Tempname date $$Parameters"
166         FormatEnd
167 TemplateEnd
168