]> git.lyx.org Git - lyx.git/blob - lib/examples/example_raw.lyx
Implement return codes consistently.
[lyx.git] / lib / examples / example_raw.lyx
1 #LyX 1.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 221
3 \textclass article
4 \language english
5 \inputencoding default
6 \fontscheme default
7 \graphics dvips
8 \paperfontsize 12
9 \spacing single
10 \papersize letterpaper
11 \paperpackage a4
12 \use_geometry 0
13 \use_amsmath 0
14 \use_natbib 0
15 \use_numerical_citations 0
16 \paperorientation portrait
17 \secnumdepth 3
18 \tocdepth 3
19 \paragraph_separation indent
20 \defskip medskip
21 \quotes_language english
22 \quotes_times 2
23 \papercolumns 1
24 \papersides 1
25 \paperpagestyle plain
26
27 \layout Standard
28
29 THIS IS THE TITLE OF THE DOCUMENT 
30 \begin_inset Note
31 collapsed true
32
33 \layout Standard
34
35 Hint: the title should look more like a title
36 \end_inset 
37
38
39 \layout Standard
40
41 by Fee LyX
42 \begin_inset Note
43 collapsed true
44
45 \layout Standard
46
47 Hint: Fee is the AUTHOR
48 \end_inset 
49
50
51 \layout Standard
52
53 June 12, 1972
54 \begin_inset Note
55 collapsed true
56
57 \layout Standard
58
59 Hint: this is a DATE
60 \end_inset 
61
62
63 \layout Standard
64
65 Table of Contents
66 \begin_inset Note
67 collapsed true
68
69 \layout Standard
70
71 Hint: It would be nice if we didn't have to type the Table
72 \layout Standard
73
74 of Contents explicitly
75 \end_inset 
76
77
78 \layout Standard
79
80 1.
81  Basic Philosophy..................1
82 \layout Standard
83
84 1.1 How LyX Does It...............1
85 \layout Standard
86
87 1.2 Why LyX is Better...............1
88 \layout Standard
89
90 2.
91  Features of LyX
92 \layout Standard
93
94 3.
95  Lame Attempts to use more LyX stuff
96 \layout Standard
97
98 4.
99  Math Stuff
100 \layout Standard
101
102 ---------------------------------------------------
103 \layout Standard
104
105 1.
106  Basic Philosophy
107 \begin_inset Note
108 collapsed true
109
110 \layout Standard
111
112 Hint: Section titles should probably stand out more
113 \end_inset 
114
115
116 \layout Standard
117
118 The basic philosophy of LyX is that you should worry about the content of
119  what you're writing and not the form.
120 \layout Standard
121
122 1.1 How LyX does it
123 \layout Standard
124
125 LyX uses LaTeX, a document preparation system designed by Leslie Lamport
126  in 1985.
127  It, in turn, was built up from a typesetting language called TeX, created
128  by Donald Knuth in 1984.
129  LaTeX is designed around a philosophy similar to that of LyX.
130  Leslie Lamport once said (see reference [1])
131 \begin_inset Note
132 collapsed true
133
134 \layout Standard
135
136 Hint: Probably, this CITATION REFERENCE shouldn't be
137 \layout Standard
138
139 "hard-coded".
140  What if we make Lamport's book the second
141 \layout Standard
142
143 item in the bibliography?
144 \end_inset 
145
146 :
147 \layout Standard
148
149
150 \begin_inset Quotes eld
151 \end_inset 
152
153 The function of typographic design is to help the reader understand the
154  author's ideas.
155  For a document to be easy to read, its visual structure must reflect its
156  logical structure.
157  Quotations and computer programs, being logically distinct structural elements,
158  should be distinguished visually from one another....
159  Since LaTeX can't understand your prose, you must explicitly indicate the
160  logical structure by typing special commands....
161  As you are writing your document, you should be concerned with its logical
162  structure, not its visual appearance.
163 \begin_inset Quotes erd
164 \end_inset 
165
166
167 \begin_inset Note
168 collapsed true
169
170 \layout Standard
171
172 Hint: This is a QUOTE
173 \end_inset 
174
175
176 \layout Standard
177
178 1.2 Why LyX is better
179 \layout Standard
180
181 LyX can be useful to more people than LaTeX.
182  It's considerably easier to learn, because you don't need to learn LaTeX
183  (which is practically a programming language).
184  LyX is basically like other 
185 \begin_inset Quotes eld
186 \end_inset 
187
188 What you see is what you get
189 \begin_inset Quotes erd
190 \end_inset 
191
192  word processors, except that LyX is 
193 \begin_inset Quotes eld
194 \end_inset 
195
196 What you see is what you mean
197 \begin_inset Quotes erd
198 \end_inset 
199
200 .
201  In this way, it combines the ease of use of word processors with the power
202  of LaTeX.
203  This is a Good Thing.
204  Also, the file format is platform independent.
205  Best of all, it's FREE!
206 \layout Standard
207
208 2.
209  Features of LyX
210 \layout Standard
211
212 LyX has many features which make writing documents easier.
213  (After all, why else would you want to use it?
214 \begin_inset Note
215 collapsed true
216
217 \layout Standard
218
219 Hint: This parenthetical statement would look better in a footnote
220 \end_inset 
221
222 ) I'm VERY EXCITED
223 \begin_inset Note
224 collapsed true
225
226 \layout Standard
227
228 Hint: Emphasize!
229 \end_inset 
230
231  to talk about them.
232  Here's a list of just a few.
233 \layout Standard
234
235 * LyX worries about margins, and footnote numbering for you
236 \layout Standard
237
238 * LyX makes it simple to write and edit mathematical formulae
239 \layout Standard
240
241 For a more philosophical discussion of why LyX is better than lots of other
242  word processors, see Section 1.2, which can be found on page 1.
243 \begin_inset Note
244 collapsed true
245
246 \layout Standard
247
248 Hint: Probably, these CROSS-REFERENCES shouldn't be
249 \layout Standard
250
251 "hard-coded".
252  What if we change the section numbers?
253 \end_inset 
254
255
256 \layout Standard
257
258 3.
259  Lame attempts to use other LyX stuff
260 \layout Standard
261
262 I wrote a program the other day.
263  It looked like this.
264 \layout Standard
265
266 5 REMARK MY AWESOME PROGRAM
267 \layout Standard
268
269 10 PRINT 
270 \begin_inset Quotes eld
271 \end_inset 
272
273 I'M AWESOME!
274 \begin_inset Quotes erd
275 \end_inset 
276
277
278 \layout Standard
279
280 20 GOTO 10 
281 \begin_inset Note
282 collapsed true
283
284 \layout Standard
285
286 Hint: This is computer CODE
287 \end_inset 
288
289
290 \layout Standard
291
292 After all that scientific thinking, I started feeling more artistic, so
293  I wrote this haiku
294 \layout Standard
295
296 LyX is really great
297 \layout Standard
298
299 Typesetting word processor
300 \layout Standard
301
302 It saves so much time 
303 \begin_inset Note
304 collapsed true
305
306 \layout Standard
307
308 Hint: It's not very good, but it is poetry,
309 \layout Standard
310
311 otherwise known as VERSE
312 \end_inset 
313
314
315 \layout Standard
316
317 4.
318  Math Stuff
319 \begin_inset Note
320 collapsed true
321
322 \layout Standard
323
324 Hint: these math things should be printed in math mode!
325 \end_inset 
326
327
328 \layout Standard
329
330 My favorite equation is the solution to a quadratic equation.
331  If ax^2+bx+c=0 (eq.1), then x= -b + or minus the square root of b^2-4ac
332  all divided by 2a (eq.
333  2).
334 \layout Standard
335
336 Another favorite equation is the basis of calculus: f'(x) is defined as
337  the limit as deltax goes to zero of f(x+deltax) - f(x) divided by deltax
338  (eq.
339  3).
340 \layout Standard
341
342 ------------------------------------------------
343 \layout Standard
344
345 REFERENCES
346 \layout Standard
347
348 [1] Lamport, Leslie.
349  LaTeX: A Document Preparation System.
350  Addison-Wesley, Reading, Massachusetts, second edition, 1994.
351 \the_end