]> git.lyx.org Git - lyx.git/blob - lib/examples/example_lyxified.lyx
UserGuide.lyx: fix some typographic issues spotted by Mike
[lyx.git] / lib / examples / example_lyxified.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 508
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 \SpecialChar LyX
80
81 \end_layout
82
83 \begin_layout Date
84 June 12, 1972
85 \end_layout
86
87 \begin_layout Standard
88 \begin_inset CommandInset toc
89 LatexCommand tableofcontents
90
91 \end_inset
92
93
94 \end_layout
95
96 \begin_layout Section
97 Basic Philosophy
98 \end_layout
99
100 \begin_layout Standard
101 The basic philosophy of \SpecialChar LyX
102  is that you should worry about the content of what
103  you're writing and not the form.
104 \end_layout
105
106 \begin_layout Subsection
107 How \SpecialChar LyX
108  does it
109 \end_layout
110
111 \begin_layout Standard
112 \SpecialChar LyX
113  uses \SpecialChar LaTeX
114 , a document preparation system designed by Leslie Lamport in 1985.
115  It, in turn, was built up from a typesetting language called \SpecialChar TeX
116 , created
117  by Donald Knuth in 1984.
118  \SpecialChar LaTeX
119  is designed around a philosophy similar to that of \SpecialChar 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 \SpecialChar LaTeX
139  can't understand your prose, you must explicitly indicate the logical
140  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 \SpecialChar 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 \SpecialChar LyX
158  can be useful to more people than \SpecialChar LaTeX
159 .
160  It's considerably easier to learn, because you don't need to learn \SpecialChar LaTeX
161  (which
162  is practically a programming language).
163  \SpecialChar LyX
164  is basically like other 
165 \begin_inset Quotes eld
166 \end_inset
167
168 What you see is what you get
169 \begin_inset Quotes erd
170 \end_inset
171
172  word processors, except that \SpecialChar LyX
173  is 
174 \begin_inset Quotes eld
175 \end_inset
176
177 What you see is what you mean
178 \begin_inset Quotes erd
179 \end_inset
180
181 .
182  In this way, it combines the ease of use of word processors with the power
183  of \SpecialChar LaTeX
184 .
185  This is a Good Thing.
186  Also, the file format is platform independent.
187  Best of all, it's FREE!
188 \end_layout
189
190 \begin_layout Section
191 Features of \SpecialChar LyX
192
193 \end_layout
194
195 \begin_layout Standard
196 \SpecialChar LyX
197  has many features which make writing documents easier.
198 \begin_inset Foot
199 status collapsed
200
201 \begin_layout Plain Layout
202 After all, why else would you want to use it?
203 \end_layout
204
205 \end_inset
206
207  I'm 
208 \shape italic
209 very excited
210 \shape default
211  to talk about them.
212  Here's a list of just a few.
213 \end_layout
214
215 \begin_layout Itemize
216 \SpecialChar LyX
217  worries about margins, and footnote numbering for you
218 \end_layout
219
220 \begin_layout Itemize
221 \SpecialChar LyX
222  makes it simple to write and edit mathematical formulae
223 \end_layout
224
225 \begin_layout Standard
226 For a more philosophical discussion of why \SpecialChar LyX
227  is better than lots of other
228  word processors, see Section 
229 \begin_inset CommandInset ref
230 LatexCommand ref
231 reference "sec:lyxbetter"
232
233 \end_inset
234
235 , which can be found on page 
236 \begin_inset CommandInset ref
237 LatexCommand pageref
238 reference "sec:lyxbetter"
239
240 \end_inset
241
242 .
243 \end_layout
244
245 \begin_layout Section
246 Lame attempts to use other \SpecialChar LyX
247  stuff
248 \end_layout
249
250 \begin_layout Standard
251 I wrote a program the other day.
252  It looked like this.
253 \end_layout
254
255 \begin_layout LyX-Code
256 5 REMARK MY AWESOME PROGRAM
257 \end_layout
258
259 \begin_layout LyX-Code
260 10 PRINT 
261 \begin_inset Quotes eld
262 \end_inset
263
264 I'M AWESOME!
265 \begin_inset Quotes erd
266 \end_inset
267
268
269 \end_layout
270
271 \begin_layout LyX-Code
272 20 GOTO 10
273 \end_layout
274
275 \begin_layout Standard
276 After all that scientific thinking, I started feeling more artistic, so
277  I wrote this haiku
278 \end_layout
279
280 \begin_layout Verse
281 \SpecialChar LyX
282  is really great 
283 \begin_inset Newline newline
284 \end_inset
285
286 Typesetting word processor
287 \begin_inset Newline newline
288 \end_inset
289
290  It saves so much time
291 \end_layout
292
293 \begin_layout Section
294 Math Stuff
295 \end_layout
296
297 \begin_layout Standard
298 My favorite equation is the solution to a quadratic equation.
299  If 
300 \begin_inset Formula $ax^{2}+bx+c=0$
301 \end_inset
302
303  (eq.1), then 
304 \begin_inset Formula $x=\frac{-b\pm\sqrt{b^{2}-4ac}}{2a}$
305 \end_inset
306
307  (eq.
308  2).
309 \end_layout
310
311 \begin_layout Standard
312 Another favorite equation is the basis of calculus: 
313 \begin_inset Formula $f'(x)\equiv\lim_{\Delta x\rightarrow0}\frac{f(x+\Delta x)-f(x)}{\Delta x}$
314 \end_inset
315
316  (eq.
317  3).
318 \end_layout
319
320 \begin_layout Section
321 Notes
322 \end_layout
323
324 \begin_layout Standard
325 A couple notes about \SpecialChar LyX
326 ifiying this file:
327 \end_layout
328
329 \begin_layout Itemize
330 I was able to remove the lines made with dashes.
331  They were there purely to separate the title and references from the rest
332  of the document.
333  \SpecialChar LyX
334  (\SpecialChar LaTeX
335 ) knows enough to separate these parts of the document with space.
336 \end_layout
337
338 \begin_layout Itemize
339 I didn't bother putting the math equations in display mode.
340  Also, I didn't use \SpecialChar LyX
341 ' automatic equation numbering, because it's not described
342  in the 
343 \emph on
344 Tutorial
345 \emph default
346 .
347 \end_layout
348
349 \begin_layout Itemize
350 I didn't have to type the word 
351 \begin_inset Quotes eld
352 \end_inset
353
354 References
355 \begin_inset Quotes erd
356 \end_inset
357
358  below.
359  \SpecialChar LyX
360  automatically writes it (or the word 
361 \begin_inset Quotes eld
362 \end_inset
363
364 Bibliography,
365 \begin_inset Quotes erd
366 \end_inset
367
368  depending on the textclass) when you select 
369 \family sans
370 Bibliography
371 \family default
372  style.
373 \end_layout
374
375 \begin_layout Bibliography
376 \begin_inset CommandInset bibitem
377 LatexCommand bibitem
378 key "lamport"
379
380 \end_inset
381
382 Lamport, Leslie.
383  
384 \emph on
385 \SpecialChar LaTeX
386 : A Document Preparation System.
387
388 \emph default
389  Addison-Wesley, Reading, Massachusetts, second edition, 1994.
390 \end_layout
391
392 \end_body
393 \end_document