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 "graphicx"
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 "\\input{$$Basename.pstex_t}"
71 UpdateCommand "python $$Sysdir/scripts/fig2pstex.py $$FName $$Parameters"
72 UpdateResult "$$Basename.pstex_t"
73 Requirement "graphicx"
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"
82 Product "$$Contents(\"$$Basename.asc\")"
83 UpdateCommand "python $$Sysdir/scripts/pic2ascii.py $$FName $$Parameters"
84 UpdateResult "$$Basename.asc"
87 Product "<graphic fileref=\"$$Basename.eps\"></graphic>"
88 UpdateCommand "python $$Sysdir/scripts/pic2png_eps.py $$FName $$Parameters"
89 UpdateResult "$$Basename.eps"
92 Product "[XFig: $$FName]"
97 GuiName "[Chess: $$Basename]"
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.
119 ViewCommand "xboard -lpf $$FName"
120 EditCommand "xboard -lpf $$FName -mode EditPosition"
121 AutomaticProduction true
123 Product "\\loadgame{$$FPath$$Basename}\\showboard"
127 Product "$$Contents(\"$$Basename.asc\")"
128 UpdateCommand "python $$Sysdir/scripts/fen2ascii.py $$FName $$Basename.asc"
129 UpdateResult "$$Basename.asc"
132 Product "[Chess: $$Basename]"
135 Product "[Chess: $$FName]"
143 In the parameters box, you can provide
144 optional parameters for the date
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.
155 ViewCommand "xterm -e less $$Tempname"
156 AutomaticProduction true
158 Product "$$Contents(\"$$Tempname\")"
159 UpdateCommand "python $$Sysdir/scripts/general_command_wrapper.py - $$Tempname date $$Parameters"
162 Product "$$Contents(\"$$Tempname\")"
163 UpdateCommand "python $$Sysdir/scripts/general_command_wrapper.py - $$Tempname date $$Parameters"
166 Product "$$Contents(\"$$Tempname\")"
167 UpdateCommand "python $$Sysdir/scripts/general_command_wrapper.py - $$Tempname date $$Parameters"
170 Product "$$Contents(\"$$Tempname\")"
171 UpdateCommand "python $$Sysdir/scripts/general_command_wrapper.py - $$Tempname date $$Parameters"