1 # Basic External Templates for LyX
4 GuiName "[Bitmap: $$FName]"
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
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.
20 FileFilter "*.(gif|png|jpg|bmp|pbm|ppm|tga|tif|xpm|xbm)"
21 ViewCommand "display $$Basename.eps"
22 EditCommand "gimp $$FName"
23 AutomaticProduction true
25 Product "\\includegraphics{$$Basename.eps}"
26 UpdateCommand "convert $$Parameters $$FName $$Basename.eps"
27 UpdateResult "$$Basename.eps"
28 Requirement "graphics"
31 Product "$$Contents(\"$$Basename.asc\")"
32 UpdateCommand "python $$Sysdir/scripts/pic2ascii.py $$FName $$Parameters"
33 UpdateResult "$$Basename.asc"
36 Product "<graphic fileref=\"$$Basename.eps\"></graphic>"
37 UpdateCommand "python $$Sysdir/scripts/pic2png_eps.py $$FName $$Parameters"
38 UpdateResult "$$Basename.eps"
41 Product "[Bitmap: $$FName]"
46 GuiName "[XFig: $$Basename]"
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
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
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
66 ViewCommand "xfig $$FName"
67 EditCommand "xfig $$FName"
68 AutomaticProduction true
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"
76 Product "$$Contents(\"$$Basename.asc\")"
77 UpdateCommand "python $$Sysdir/scripts/pic2ascii.py $$FName $$Parameters"
78 UpdateResult "$$Basename.asc"
81 Product "<graphic fileref=\"$$Basename.eps\"></graphic>"
82 UpdateCommand "python $$Sysdir/scripts/pic2png_eps.py $$FName $$Parameters"
83 UpdateResult "$$Basename.eps"
86 Product "[XFig: $$FName]"
91 GuiName "[Chess: $$Basename]"
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.
113 ViewCommand "xboard -lpf $$FName"
114 EditCommand "xboard -lpf $$FName -mode EditPosition"
115 AutomaticProduction true
117 Product "\\loadgame{$$FPath$$Basename}\\showboard"
121 Product "$$Contents(\"$$Basename.asc\")"
122 UpdateCommand "python $$Sysdir/scripts/fen2ascii.py $$FName $$Basename.asc"
123 UpdateResult "$$Basename.asc"
126 Product "[Chess: $$Basename]"
129 Product "[Chess: $$FName]"
137 In the parameters box, you can provide
138 optional parameters for the date
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.
149 ViewCommand "xterm -e less $$Tempname"
150 AutomaticProduction true
152 Product "$$Contents(\"$$Tempname\")"
153 UpdateCommand "python $$Sysdir/scripts/general_command_wrapper.py - $$Tempname date $$Parameters"
156 Product "$$Contents(\"$$Tempname\")"
157 UpdateCommand "python $$Sysdir/scripts/general_command_wrapper.py - $$Tempname date $$Parameters"
160 Product "$$Contents(\"$$Tempname\")"
161 UpdateCommand "python $$Sysdir/scripts/general_command_wrapper.py - $$Tempname date $$Parameters"
164 Product "$$Contents(\"$$Tempname\")"
165 UpdateCommand "python $$Sysdir/scripts/general_command_wrapper.py - $$Tempname date $$Parameters"