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