]> git.lyx.org Git - lyx.git/blob - lib/examples/example_raw.lyx
Fix pasting insets into math (bug #9302)
[lyx.git] / lib / examples / example_raw.lyx
1 #LyX 2.1 created this file. For more info see http://www.lyx.org/
2 \lyxformat 474
3 \begin_document
4 \begin_header
5 \textclass article
6 \use_default_options false
7 \maintain_unincluded_children false
8 \language english
9 \language_package default
10 \inputencoding auto
11 \fontencoding global
12 \font_roman default
13 \font_sans default
14 \font_typewriter default
15 \font_math auto
16 \font_default_family default
17 \use_non_tex_fonts false
18 \font_sc false
19 \font_osf false
20 \font_sf_scale 100
21 \font_tt_scale 100
22 \graphics default
23 \default_output_format default
24 \output_sync 0
25 \bibtex_command default
26 \index_command default
27 \paperfontsize 12
28 \spacing single
29 \use_hyperref false
30 \papersize default
31 \use_geometry false
32 \use_package amsmath 0
33 \use_package amssymb 0
34 \use_package cancel 0
35 \use_package esint 0
36 \use_package mathdots 1
37 \use_package mathtools 0
38 \use_package mhchem 1
39 \use_package stackrel 0
40 \use_package stmaryrd 0
41 \use_package undertilde 0
42 \cite_engine basic
43 \cite_engine_type default
44 \biblio_style plain
45 \use_bibtopic false
46 \use_indices false
47 \paperorientation portrait
48 \suppress_date false
49 \justification true
50 \use_refstyle 0
51 \index Index
52 \shortcut idx
53 \color #008000
54 \end_index
55 \secnumdepth 3
56 \tocdepth 3
57 \paragraph_separation indent
58 \paragraph_indentation default
59 \quotes_language english
60 \papercolumns 1
61 \papersides 1
62 \paperpagestyle plain
63 \tracking_changes false
64 \output_changes false
65 \html_math_output 0
66 \html_css_as_file 0
67 \html_be_strict false
68 \end_header
69
70 \begin_body
71
72 \begin_layout Standard
73 THIS IS THE TITLE OF THE DOCUMENT 
74 \begin_inset Note Note
75 status collapsed
76
77 \begin_layout Plain Layout
78 Hint: the title should look more like a title
79 \end_layout
80
81 \end_inset
82
83
84 \end_layout
85
86 \begin_layout Standard
87 by Fee LyX
88 \begin_inset Note Note
89 status collapsed
90
91 \begin_layout Plain Layout
92 Hint: Fee is the AUTHOR
93 \end_layout
94
95 \end_inset
96
97
98 \end_layout
99
100 \begin_layout Standard
101 June 12, 1972
102 \begin_inset Note Note
103 status collapsed
104
105 \begin_layout Plain Layout
106 Hint: this is a DATE
107 \end_layout
108
109 \end_inset
110
111
112 \end_layout
113
114 \begin_layout Standard
115 Table of Contents
116 \begin_inset Note Note
117 status collapsed
118
119 \begin_layout Plain Layout
120 Hint: It would be nice if we didn't have to type the Table
121 \end_layout
122
123 \begin_layout Plain Layout
124 of Contents explicitly
125 \end_layout
126
127 \end_inset
128
129
130 \end_layout
131
132 \begin_layout Standard
133 1.
134  Basic Philosophy..................1
135 \end_layout
136
137 \begin_layout Standard
138 1.1 How LyX Does It...............1
139 \end_layout
140
141 \begin_layout Standard
142 1.2 Why LyX is Better...............1
143 \end_layout
144
145 \begin_layout Standard
146 2.
147  Features of LyX
148 \end_layout
149
150 \begin_layout Standard
151 3.
152  Lame Attempts to use more LyX stuff
153 \end_layout
154
155 \begin_layout Standard
156 4.
157  Math Stuff
158 \end_layout
159
160 \begin_layout Standard
161 ---------------------------------------------------
162 \end_layout
163
164 \begin_layout Standard
165 1.
166  Basic Philosophy
167 \begin_inset Note Note
168 status collapsed
169
170 \begin_layout Plain Layout
171 Hint: Section titles should probably stand out more
172 \end_layout
173
174 \end_inset
175
176
177 \end_layout
178
179 \begin_layout Standard
180 The basic philosophy of LyX is that you should worry about the content of
181  what you're writing and not the form.
182 \end_layout
183
184 \begin_layout Standard
185 1.1 How LyX does it
186 \end_layout
187
188 \begin_layout Standard
189 LyX uses LaTeX, a document preparation system designed by Leslie Lamport
190  in 1985.
191  It, in turn, was built up from a typesetting language called TeX, created
192  by Donald Knuth in 1984.
193  LaTeX is designed around a philosophy similar to that of LyX.
194  Leslie Lamport once said (see reference [1])
195 \begin_inset Note Note
196 status collapsed
197
198 \begin_layout Plain Layout
199 Hint: Probably, this CITATION REFERENCE shouldn't be
200 \end_layout
201
202 \begin_layout Plain Layout
203 "hard-coded".
204  What if we make Lamport's book the second
205 \end_layout
206
207 \begin_layout Plain Layout
208 item in the bibliography?
209 \end_layout
210
211 \end_inset
212
213 :
214 \end_layout
215
216 \begin_layout Standard
217 \begin_inset Quotes eld
218 \end_inset
219
220 The function of typographic design is to help the reader understand the
221  author's ideas.
222  For a document to be easy to read, its visual structure must reflect its
223  logical structure.
224  Quotations and computer programs, being logically distinct structural elements,
225  should be distinguished visually from one another....
226  Since LaTeX can't understand your prose, you must explicitly indicate the
227  logical structure by typing special commands....
228  As you are writing your document, you should be concerned with its logical
229  structure, not its visual appearance.
230 \begin_inset Quotes erd
231 \end_inset
232
233
234 \begin_inset Note Note
235 status collapsed
236
237 \begin_layout Plain Layout
238 Hint: This is a QUOTE
239 \end_layout
240
241 \end_inset
242
243
244 \end_layout
245
246 \begin_layout Standard
247 1.2 Why LyX is better
248 \end_layout
249
250 \begin_layout Standard
251 LyX can be useful to more people than LaTeX.
252  It's considerably easier to learn, because you don't need to learn LaTeX
253  (which is practically a programming language).
254  LyX is basically like other 
255 \begin_inset Quotes eld
256 \end_inset
257
258 What you see is what you get
259 \begin_inset Quotes erd
260 \end_inset
261
262  word processors, except that LyX is 
263 \begin_inset Quotes eld
264 \end_inset
265
266 What you see is what you mean
267 \begin_inset Quotes erd
268 \end_inset
269
270 .
271  In this way, it combines the ease of use of word processors with the power
272  of LaTeX.
273  This is a Good Thing.
274  Also, the file format is platform independent.
275  Best of all, it's FREE!
276 \end_layout
277
278 \begin_layout Standard
279 2.
280  Features of LyX
281 \end_layout
282
283 \begin_layout Standard
284 LyX has many features which make writing documents easier.
285  (After all, why else would you want to use it?
286 \begin_inset Note Note
287 status collapsed
288
289 \begin_layout Plain Layout
290 Hint: This parenthetical statement would look better in a footnote
291 \end_layout
292
293 \end_inset
294
295 ) I'm VERY EXCITED
296 \begin_inset Note Note
297 status collapsed
298
299 \begin_layout Plain Layout
300 Hint: Emphasize!
301 \end_layout
302
303 \end_inset
304
305  to talk about them.
306  Here's a list of just a few.
307 \end_layout
308
309 \begin_layout Standard
310 * LyX worries about margins, and footnote numbering for you
311 \end_layout
312
313 \begin_layout Standard
314 * LyX makes it simple to write and edit mathematical formulae
315 \end_layout
316
317 \begin_layout Standard
318 For a more philosophical discussion of why LyX is better than lots of other
319  word processors, see Section 1.2, which can be found on page 1.
320 \begin_inset Note Note
321 status collapsed
322
323 \begin_layout Plain Layout
324 Hint: Probably, these CROSS-REFERENCES shouldn't be
325 \end_layout
326
327 \begin_layout Plain Layout
328 "hard-coded".
329  What if we change the section numbers?
330 \end_layout
331
332 \end_inset
333
334
335 \end_layout
336
337 \begin_layout Standard
338 3.
339  Lame attempts to use other LyX stuff
340 \end_layout
341
342 \begin_layout Standard
343 I wrote a program the other day.
344  It looked like this.
345 \end_layout
346
347 \begin_layout Standard
348 5 REMARK MY AWESOME PROGRAM
349 \end_layout
350
351 \begin_layout Standard
352 10 PRINT 
353 \begin_inset Quotes eld
354 \end_inset
355
356 I'M AWESOME!
357 \begin_inset Quotes erd
358 \end_inset
359
360
361 \end_layout
362
363 \begin_layout Standard
364 20 GOTO 10 
365 \begin_inset Note Note
366 status collapsed
367
368 \begin_layout Plain Layout
369 Hint: This is computer CODE
370 \end_layout
371
372 \end_inset
373
374
375 \end_layout
376
377 \begin_layout Standard
378 After all that scientific thinking, I started feeling more artistic, so
379  I wrote this haiku
380 \end_layout
381
382 \begin_layout Standard
383 LyX is really great
384 \end_layout
385
386 \begin_layout Standard
387 Typesetting word processor
388 \end_layout
389
390 \begin_layout Standard
391 It saves so much time 
392 \begin_inset Note Note
393 status collapsed
394
395 \begin_layout Plain Layout
396 Hint: It's not very good, but it is poetry,
397 \end_layout
398
399 \begin_layout Plain Layout
400 otherwise known as VERSE
401 \end_layout
402
403 \end_inset
404
405
406 \end_layout
407
408 \begin_layout Standard
409 4.
410  Math Stuff
411 \begin_inset Note Note
412 status collapsed
413
414 \begin_layout Plain Layout
415 Hint: these math things should be printed in math mode!
416 \end_layout
417
418 \end_inset
419
420
421 \end_layout
422
423 \begin_layout Standard
424 My favorite equation is the solution to a quadratic equation.
425  If ax^2+bx+c=0 (eq.1), then x= -b + or minus the square root of b^2-4ac
426  all divided by 2a (eq.
427  2).
428 \end_layout
429
430 \begin_layout Standard
431 Another favorite equation is the basis of calculus: f'(x) is defined as
432  the limit as deltax goes to zero of f(x+deltax) - f(x) divided by deltax
433  (eq.
434  3).
435 \end_layout
436
437 \begin_layout Standard
438 ------------------------------------------------
439 \end_layout
440
441 \begin_layout Standard
442 REFERENCES
443 \end_layout
444
445 \begin_layout Standard
446 [1] Lamport, Leslie.
447  LaTeX: A Document Preparation System.
448  Addison-Wesley, Reading, Massachusetts, second edition, 1994.
449 \end_layout
450
451 \end_body
452 \end_document