]> git.lyx.org Git - lyx.git/blob - lib/examples/example_lyxified.lyx
Dekel's lyxrc.example; Angus's FormDocument; John's build-listerrors; POTFILES.in...
[lyx.git] / lib / examples / example_lyxified.lyx
1 #LyX 1.1 created this file. For more info see http://www.lyx.org/
2 \lyxformat 2.16
3 \textclass article
4 \language default
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 \paperorientation portrait
15 \secnumdepth 3
16 \tocdepth 3
17 \paragraph_separation indent
18 \defskip medskip
19 \quotes_language english
20 \quotes_times 2
21 \papercolumns 1
22 \papersides 1
23 \paperpagestyle plain
24
25 \layout Title
26
27
28 \begin_inset External Bitmap,"filename.txt","parameters"
29
30 \end_inset 
31
32 THIS IS THE TITLE OF THE DOCUMENT
33 \layout Author
34
35 by Fee LyX
36 \layout Date
37
38 June 12, 1972
39 \layout Standard
40
41
42 \begin_inset LatexCommand \tableofcontents{}
43
44 \end_inset 
45
46
47 \layout Section
48
49 Basic Philosophy
50 \layout Standard
51
52 The basic philosophy of LyX is that you should worry about the content of
53  what you're writing and not the form.
54 \layout Subsection
55
56 How LyX does it
57 \layout Standard
58
59 LyX uses LaTeX, a document preparation system designed by Leslie Lamport
60  in 1985.
61  It, in turn, was built up from a typesetting language called TeX, created
62  by Donald Knuth in 1984.
63  LaTeX is designed around a philosophy similar to that of LyX.
64  Leslie Lamport once said (see reference 
65 \begin_inset LatexCommand \cite{lamport}
66
67 \end_inset 
68
69 ):
70 \layout Quote
71
72 The function of typographic design is to help the reader understand the
73  author's ideas.
74  For a document to be easy to read, its visual structure must reflect its
75  logical structure.
76  Quotations and computer programs, being logically distinct structural elements,
77  should be distinguished visually from one another....
78  Since LaTeX can't understand your prose, you must explicitly indicate the
79  logical structure by typing special commands....
80  As you are writing your document, you should be concerned with its logical
81  structure, not its visual appearance.
82 \layout Subsection
83
84 Why LyX is better
85 \layout Standard
86
87
88 \begin_inset LatexCommand \label{sec:lyxbetter}
89
90 \end_inset 
91
92 LyX can be useful to more people than LaTeX.
93  It's considerably easier to learn, because you don't need to learn LaTeX
94  (which is practically a programming language).
95  LyX is basically like other 
96 \begin_inset Quotes eld
97 \end_inset 
98
99 What you see is what you get
100 \begin_inset Quotes erd
101 \end_inset 
102
103  word processors, except that LyX is 
104 \begin_inset Quotes eld
105 \end_inset 
106
107 What you see is what you mean
108 \begin_inset Quotes erd
109 \end_inset 
110
111 .
112  In this way, it combines the ease of use of word processors with the power
113  of LaTeX.
114  This is a Good Thing.
115  Also, the file format is platform independent.
116  Best of all, it's FREE!
117 \layout Section
118
119 Features of LyX
120 \layout Standard
121
122 LyX has many features which make writing documents easier.
123 \begin_float footnote 
124 \layout Standard
125
126 After all, why else would you want to use it?
127 \end_float 
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