]> git.lyx.org Git - lyx.git/blob - lib/external_templates
Dekel's lyxrc.example; Angus's FormDocument; John's build-listerrors; POTFILES.in...
[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                 Requirement "graphics"
28         FormatEnd
29         Format Ascii
30                 Product "$$Contents(\"$$Basename.asc\")"
31                 UpdateCommand "python $$Sysdir/scripts/pic2ascii.py $$FName $$Parameters"
32         FormatEnd
33         Format DocBook
34                 Product "<graphic fileref=\"$$Basename.eps\"></graphic>"
35                 UpdateCommand "python $$Sysdir/scripts/pic2png_eps.py $$FName $$Parameters"
36         FormatEnd
37         Format LinuxDoc
38                 Product "[Bitmap: $$FName]"
39         FormatEnd
40 TemplateEnd
41
42 Template XFig
43         GuiName "[XFig: $$Basename]"
44         HelpText
45                 An XFig figure.
46                 In the parameters box, you can provide
47                 optional parameters for fig2dev in the
48                 case of LaTeX export. E.g., -m .69 to
49                 reduce the size.
50                 For Ascii export, you can provide a
51                 number that specifies the width of an
52                 Ascii approximation of the figure.
53                 For DocBook export, you can provide
54                 optional parameters for the ImageMagick
55                 convert script.
56                 This template uses XFig for editing, and 
57                 fig2dev and ImageMagick to do conversions. 
58                 It requires Python for exporting to Ascii
59                 and DocBook, and gifscii for exporting to 
60                 Ascii.
61         HelpTextEnd
62         FileFilter "*.fig"
63         ViewCommand "xfig $$FName"
64         EditCommand "xfig $$FName"
65         AutomaticProduction true
66         Format LaTeX
67                 Product "\\begin{picture}(0,0)\\includegraphics{$$Basename.eps}\\end{picture}\\input{$$Basename.pstex_t}"
68                 UpdateCommand "python $$Sysdir/scripts/fig2pstex.py $$FName $$Parameters"
69                 Requirement "graphics"  
70         FormatEnd
71         Format Ascii
72                 Product "$$Contents(\"$$Basename.asc\")"
73                 UpdateCommand "python $$Sysdir/scripts/pic2ascii.py $$FName $$Parameters"
74         FormatEnd
75         Format DocBook
76                 Product "<graphic fileref=\"$$Basename.eps\"></graphic>"
77                 UpdateCommand "python $$Sysdir/scripts/pic2png_eps.py $$FName $$Parameters"
78         FormatEnd
79         Format LinuxDoc
80                 Product "[XFig: $$FName]"
81         FormatEnd
82 TemplateEnd
83
84 Template ChessDiagram
85         GuiName "[Chess: $$Basename]"
86         HelpText
87                 A chess position diagram.
88                 This template will use XBoard to view
89                 and edit the position. Use the
90                 'File->Save Position' in XBoard to save 
91                 the position that you want to display.
92                 Make sure to give it a '.fen' extension
93                 and remember to type in a relative path
94                 to the LyX document location.
95                 Within XBoard, use 'Edit->Edit Position'
96                 to enable general editing of the board.
97                 You might also check out the
98                 'Options->Test legality' option, and
99                 remember to middle and right click to 
100                 insert new material in the board.
101                 In order for this to work, you have to
102                 install the lyxchess.sty which is bundled
103                 with LyX, and the chess.sty from CTAN.
104         HelpTextEnd
105         FileFilter "*.fen"
106         ViewCommand "xboard -lpf $$FName"
107         EditCommand "xboard -lpf $$FName"
108         AutomaticProduction true
109         Format LaTeX
110                 Product "$$Contents(\"$$Basename.tex\")"
111                 UpdateCommand "python $$Sysdir/scripts/fen2latex.py $$FName $$Basename.tex"
112                 Requirement "chess"
113         FormatEnd
114         Format Ascii
115                 Product "$$Contents(\"$$Basename.asc\")"
116                 UpdateCommand "python $$Sysdir/scripts/fen2ascii.py $$FName $$Basename.tex"
117         FormatEnd
118         Format DocBook
119                 Product "[Chess: $$Basename]"
120         FormatEnd
121         Format LinuxDoc
122                 Product "[Chess: $$FName]"
123         FormatEnd
124 TemplateEnd
125
126 Template Date
127         GuiName "[Date]"
128         HelpText
129                 Todays date.
130                 In the parameters box, you can provide
131                 optional parameters for the date
132                 command.
133                 Use empty to get "Mon Jun 12 05:20:41 CEST 2000"
134                 Use -u to get "Mon Jun 12 03:20:41 UTC 2000"
135                 Use -I to get "2000-06-12".
136                 Use -R to get "Mon, 12 Jun 2000 05:20:41 +0200"
137                 Use +%d-%m-%Y to get "20-06-2000"
138                 Use +%T to get the time as "23:23:00"
139                 Read 'info date' for more information.
140         HelpTextEnd
141         FileFilter "*"
142         ViewCommand "xterm -e less $$Tempname"
143         AutomaticProduction true
144         Format LaTeX
145                 Product "$$Contents(\"$$Tempname\")"
146                 UpdateCommand "python $$Sysdir/scripts/general_command_wrapper.py - $$Tempname date $$Parameters"
147         FormatEnd
148         Format Ascii
149                 Product "$$Contents(\"$$Tempname\")"
150                 UpdateCommand "python $$Sysdir/scripts/general_command_wrapper.py - $$Tempname date $$Parameters"
151         FormatEnd
152         Format DocBook
153                 Product "$$Contents(\"$$Tempname\")"
154                 UpdateCommand "python $$Sysdir/scripts/general_command_wrapper.py - $$Tempname date $$Parameters"
155         FormatEnd
156         Format LinuxDoc
157                 Product "$$Contents(\"$$Tempname\")"
158                 UpdateCommand "python $$Sysdir/scripts/general_command_wrapper.py - $$Tempname date $$Parameters"
159         FormatEnd
160 TemplateEnd
161