]> git.lyx.org Git - lyx.git/blob - lib/templates/README.new_templates
fix typo that put too many include paths for most people
[lyx.git] / lib / templates / README.new_templates
1 HOW TO CREATE A NEW TEMPLATE
2 ============================
3
4 Templates are almost usual LyX file that are saved by LyX itself.
5 The strength is on "almost".
6
7 LyX stores some properties in a file, for example:
8
9         \textclass dinbrief
10         \language german
11         \inputencoding default
12         \fontscheme default
13         \epsfig dvips
14         \papersize a4paper 
15         \paperfontsize 12 
16         \baselinestretch 1.00 
17         \secnumdepth 3 
18         \tocdepth 3 
19         \paragraph_separation skip 
20         \quotes_language german 
21         \quotes_times 2 
22         \paperorientation portrait 
23         \papercolumns 9 
24         \papersides 1 
25         \paperpagestyle plain 
26
27 Some of these may be very reasonable for a certain template. In the
28 case of a dinbrief-template this might be the papersize, the language
29 and the quotes-settings, since it is a german-only template.  But it
30 wouldn't make much sense to set the fontscheme or the inputencoding,
31 since a user might have customized this already like he/she wanted it
32 to be.
33
34 So please delete all the lines of a new template with your favorite
35 text editor (for example ed, ex or vi) that you don't want to set
36 explicit for this template. LyX will use the user's default-values
37 (defined in lyxrc) if a property isn't defined in the file itself.
38