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