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