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