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