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