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