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