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