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 Requirement "graphics"
30 Product "$$Contents(\"$$Basename.asc\")"
31 UpdateCommand "python $$Sysdir/scripts/pic2ascii.py $$FName $$Parameters"
34 Product "<graphic fileref=\"$$Basename.eps\"></graphic>"
35 UpdateCommand "python $$Sysdir/scripts/pic2png_eps.py $$FName $$Parameters"
38 Product "[Bitmap: $$FName]"
43 GuiName "[XFig: $$Basename]"
46 In the parameters box, you can provide
47 optional parameters for fig2dev in the
49 For Ascii export, you can provide a
50 number that specifies the width of an
51 Ascii approximation of the figure.
52 For DocBook export, you can provide
53 optional parameters for the ImageMagick
55 This template uses XFig for editing, and
56 fig2dev and ImageMagick to do conversions.
57 It requires Python for exporting to Ascii
58 and DocBook, and gifscii for exporting to
62 ViewCommand "xfig $$FName"
63 EditCommand "xfig $$FName"
64 AutomaticProduction true
66 Product "$$Contents(\"$$Basename.tex\")"
67 UpdateCommand "fig2dev $$Parameters -L latex $$FName $$Basename.tex"
70 Product "$$Contents(\"$$Basename.asc\")"
71 UpdateCommand "python $$Sysdir/scripts/pic2ascii.py $$FName $$Parameters"
74 Product "<graphic fileref=\"$$Basename.eps\"></graphic>"
75 UpdateCommand "python $$Sysdir/scripts/pic2png_eps.py $$FName $$Parameters"
78 Product "[XFig: $$FName]"
83 GuiName "[Chess: $$Basename]"
85 A chess position diagram.
86 This template will use XBoard to view
87 and edit the position. Use the
88 'File->Save Position' in XBoard to save
89 the position that you want to display.
90 Make sure to give it a '.fen' extension
91 and remember to type in a relative path
92 to the LyX document location.
93 Within XBoard, use 'Edit->Edit Position'
94 to enable general editing of the board.
95 You might also check out the
96 'Options->Test legality' option, and
97 remember to middle and right click to
98 insert new material in the board.
99 In order for this to work, you have to
100 install the lyxchess.sty which is bundled
101 with LyX, and the chess.sty from CTAN.
104 ViewCommand "xboard -lpf $$FName"
105 EditCommand "xboard -lpf $$FName"
106 AutomaticProduction true
108 Product "$$Contents(\"$$Basename.tex\")"
109 UpdateCommand "python $$Sysdir/scripts/fen2latex.py $$FName $$Basename.tex"
113 Product "$$Contents(\"$$Basename.asc\")"
114 UpdateCommand "python $$Sysdir/scripts/fen2ascii.py $$FName $$Basename.tex"
117 Product "[Chess: $$Basename]"
120 Product "[Chess: $$FName]"
128 In the parameters box, you can provide
129 optional parameters for the date
131 Use empty to get "Mon Jun 12 05:20:41 CEST 2000"
132 Use -u to get "Mon Jun 12 03:20:41 UTC 2000"
133 Use -I to get "2000-06-12".
134 Use -R to get "Mon, 12 Jun 2000 05:20:41 +0200"
135 Use +%d-%m-%Y to get "20-06-2000"
136 Use +%T to get the time as "23:23:00"
137 Read 'info date' for more information.
140 ViewCommand "xterm -e less $$Tempname"
141 AutomaticProduction true
143 Product "$$Contents(\"$$Tempname\")"
144 UpdateCommand "python $$Sysdir/scripts/general_command_wrapper.py - $$Tempname date $$Parameters"
147 Product "$$Contents(\"$$Tempname\")"
148 UpdateCommand "python $$Sysdir/scripts/general_command_wrapper.py - $$Tempname date $$Parameters"
151 Product "$$Contents(\"$$Tempname\")"
152 UpdateCommand "python $$Sysdir/scripts/general_command_wrapper.py - $$Tempname date $$Parameters"
155 Product "$$Contents(\"$$Tempname\")"
156 UpdateCommand "python $$Sysdir/scripts/general_command_wrapper.py - $$Tempname date $$Parameters"