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