]> git.lyx.org Git - lyx.git/blob - lib/examples/example_lyxified.lyx
Whitespace cosmetics
[lyx.git] / lib / examples / example_lyxified.lyx
1 #LyX 2.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 544
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/examples/
7 \textclass article
8 \use_default_options false
9 \maintain_unincluded_children false
10 \language english
11 \language_package default
12 \inputencoding auto
13 \fontencoding global
14 \font_roman "default" "default"
15 \font_sans "default" "default"
16 \font_typewriter "default" "default"
17 \font_math "auto" "auto"
18 \font_default_family default
19 \use_non_tex_fonts false
20 \font_sc false
21 \font_osf false
22 \font_sf_scale 100 100
23 \font_tt_scale 100 100
24 \use_microtype false
25 \use_dash_ligatures false
26 \graphics default
27 \default_output_format default
28 \output_sync 0
29 \bibtex_command default
30 \index_command default
31 \paperfontsize 12
32 \spacing single
33 \use_hyperref false
34 \papersize default
35 \use_geometry false
36 \use_package amsmath 0
37 \use_package amssymb 0
38 \use_package cancel 0
39 \use_package esint 0
40 \use_package mathdots 1
41 \use_package mathtools 0
42 \use_package mhchem 1
43 \use_package stackrel 0
44 \use_package stmaryrd 0
45 \use_package undertilde 0
46 \cite_engine basic
47 \cite_engine_type default
48 \biblio_style plain
49 \use_bibtopic false
50 \use_indices false
51 \paperorientation portrait
52 \suppress_date false
53 \justification true
54 \use_refstyle 0
55 \index Index
56 \shortcut idx
57 \color #008000
58 \end_index
59 \secnumdepth 3
60 \tocdepth 3
61 \paragraph_separation indent
62 \paragraph_indentation default
63 \is_math_indent 0
64 \math_numbering_side default
65 \quotes_style english
66 \papercolumns 1
67 \papersides 1
68 \paperpagestyle plain
69 \tracking_changes false
70 \output_changes false
71 \html_math_output 0
72 \html_css_as_file 0
73 \html_be_strict false
74 \use_minted 0
75 \end_header
76
77 \begin_body
78
79 \begin_layout Title
80 THIS IS THE TITLE OF THE DOCUMENT
81 \end_layout
82
83 \begin_layout Author
84 by Fee \SpecialChar LyX
85
86 \end_layout
87
88 \begin_layout Date
89 June 12, 1972
90 \end_layout
91
92 \begin_layout Standard
93 \begin_inset CommandInset toc
94 LatexCommand tableofcontents
95
96 \end_inset
97
98
99 \end_layout
100
101 \begin_layout Section
102 Basic Philosophy
103 \end_layout
104
105 \begin_layout Standard
106 The basic philosophy of \SpecialChar LyX
107  is that you should worry about the content of what
108  you're writing and not the form.
109 \end_layout
110
111 \begin_layout Subsection
112 How \SpecialChar LyX
113  does it
114 \end_layout
115
116 \begin_layout Standard
117 \SpecialChar LyX
118  uses \SpecialChar LaTeX
119 , a document preparation system designed by Leslie Lamport in 1985.
120  It, in turn, was built up from a typesetting language called \SpecialChar TeX
121 , created
122  by Donald Knuth in 1984.
123  \SpecialChar LaTeX
124  is designed around a philosophy similar to that of \SpecialChar LyX
125 .
126  Leslie Lamport once said (see reference 
127 \begin_inset CommandInset citation
128 LatexCommand cite
129 key "lamport"
130 literal "true"
131
132 \end_inset
133
134 ):
135 \end_layout
136
137 \begin_layout Quote
138 The function of typographic design is to help the reader understand the
139  author's ideas.
140  For a document to be easy to read, its visual structure must reflect its
141  logical structure.
142  Quotations and computer programs, being logically distinct structural elements,
143  should be distinguished visually from one another....
144  Since \SpecialChar LaTeX
145  can't understand your prose, you must explicitly indicate the logical
146  structure by typing special commands....
147  As you are writing your document, you should be concerned with its logical
148  structure, not its visual appearance.
149 \end_layout
150
151 \begin_layout Subsection
152 Why \SpecialChar LyX
153  is better
154 \begin_inset CommandInset label
155 LatexCommand label
156 name "subsec:Why-LyX-is"
157
158 \end_inset
159
160
161 \end_layout
162
163 \begin_layout Standard
164 \SpecialChar LyX
165  can be useful to more people than \SpecialChar LaTeX
166 .
167  It's considerably easier to learn, because you don't need to learn \SpecialChar LaTeX
168  (which
169  is practically a programming language).
170  \SpecialChar LyX
171  is basically like other 
172 \begin_inset Quotes eld
173 \end_inset
174
175 What you see is what you get
176 \begin_inset Quotes erd
177 \end_inset
178
179  word processors, except that \SpecialChar LyX
180  is 
181 \begin_inset Quotes eld
182 \end_inset
183
184 What you see is what you mean
185 \begin_inset Quotes erd
186 \end_inset
187
188 .
189  In this way, it combines the ease of use of word processors with the power
190  of \SpecialChar LaTeX
191 .
192  This is a Good Thing.
193  Also, the file format is platform independent.
194  Best of all, it's FREE!
195 \end_layout
196
197 \begin_layout Section
198 Features of \SpecialChar LyX
199
200 \end_layout
201
202 \begin_layout Standard
203 \SpecialChar LyX
204  has many features which make writing documents easier.
205 \begin_inset Foot
206 status collapsed
207
208 \begin_layout Plain Layout
209 After all, why else would you want to use it?
210 \end_layout
211
212 \end_inset
213
214  I'm 
215 \shape italic
216 very excited
217 \shape default
218  to talk about them.
219  Here's a list of just a few.
220 \end_layout
221
222 \begin_layout Itemize
223 \SpecialChar LyX
224  worries about margins, and footnote numbering for you
225 \end_layout
226
227 \begin_layout Itemize
228 \SpecialChar LyX
229  makes it simple to write and edit mathematical formulae
230 \end_layout
231
232 \begin_layout Standard
233 For a more philosophical discussion of why \SpecialChar LyX
234  is better than lots of other
235  word processors, see Section
236 \begin_inset space ~
237 \end_inset
238
239
240 \begin_inset CommandInset ref
241 LatexCommand ref
242 reference "subsec:Why-LyX-is"
243
244 \end_inset
245
246 , which can be found on page
247 \begin_inset space ~
248 \end_inset
249
250
251 \begin_inset CommandInset ref
252 LatexCommand pageref
253 reference "subsec:Why-LyX-is"
254
255 \end_inset
256
257 .
258 \end_layout
259
260 \begin_layout Section
261 Lame attempts to use other \SpecialChar LyX
262  stuff
263 \end_layout
264
265 \begin_layout Standard
266 I wrote a program the other day.
267  It looked like this.
268 \end_layout
269
270 \begin_layout LyX-Code
271 5 REMARK MY AWESOME PROGRAM
272 \end_layout
273
274 \begin_layout LyX-Code
275 10 PRINT 
276 \begin_inset Quotes eld
277 \end_inset
278
279 I'M AWESOME!
280 \begin_inset Quotes erd
281 \end_inset
282
283
284 \end_layout
285
286 \begin_layout LyX-Code
287 20 GOTO 10
288 \end_layout
289
290 \begin_layout Standard
291 After all that scientific thinking, I started feeling more artistic, so
292  I wrote this haiku
293 \end_layout
294
295 \begin_layout Verse
296 \SpecialChar LyX
297  is really great 
298 \begin_inset Newline newline
299 \end_inset
300
301 Typesetting word processor
302 \begin_inset Newline newline
303 \end_inset
304
305  It saves so much time
306 \end_layout
307
308 \begin_layout Section
309 Math Stuff
310 \end_layout
311
312 \begin_layout Standard
313 My favorite equation is the solution to a quadratic equation.
314  If 
315 \begin_inset Formula $ax^{2}+bx+c=0$
316 \end_inset
317
318  (eq.1), then 
319 \begin_inset Formula $x=\frac{-b\pm\sqrt{b^{2}-4ac}}{2a}$
320 \end_inset
321
322  (eq.
323  2).
324 \end_layout
325
326 \begin_layout Standard
327 Another favorite equation is the basis of calculus: 
328 \begin_inset Formula $f'(x)\equiv\lim_{\Delta x\rightarrow0}\frac{f(x+\Delta x)-f(x)}{\Delta x}$
329 \end_inset
330
331  (eq.
332  3).
333 \end_layout
334
335 \begin_layout Section
336 Notes
337 \end_layout
338
339 \begin_layout Standard
340 A couple notes about \SpecialChar LyX
341 ifiying this file:
342 \end_layout
343
344 \begin_layout Itemize
345 I was able to remove the lines made with dashes.
346  They were there purely to separate the title and references from the rest
347  of the document.
348  \SpecialChar LyX
349  (\SpecialChar LaTeX
350 ) knows enough to separate these parts of the document with space.
351 \end_layout
352
353 \begin_layout Itemize
354 I didn't bother putting the math equations in display mode.
355  Also, I didn't use \SpecialChar LyX
356 ' automatic equation numbering, because it's not described
357  in the 
358 \emph on
359 Tutorial
360 \emph default
361 .
362 \end_layout
363
364 \begin_layout Itemize
365 I didn't have to type the word 
366 \begin_inset Quotes eld
367 \end_inset
368
369 References
370 \begin_inset Quotes erd
371 \end_inset
372
373  below.
374  \SpecialChar LyX
375  automatically writes it (or the word 
376 \begin_inset Quotes eld
377 \end_inset
378
379 Bibliography,
380 \begin_inset Quotes erd
381 \end_inset
382
383  depending on the textclass) when you select 
384 \family sans
385 Bibliography
386 \family default
387  style.
388 \end_layout
389
390 \begin_layout Bibliography
391 \begin_inset CommandInset bibitem
392 LatexCommand bibitem
393 key "lamport"
394 literal "true"
395
396 \end_inset
397
398 Lamport, Leslie.
399  
400 \emph on
401 \SpecialChar LaTeX
402 : A Document Preparation System.
403
404 \emph default
405  Addison-Wesley, Reading, Massachusetts, second edition, 1994.
406 \end_layout
407
408 \end_body
409 \end_document