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