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