]> git.lyx.org Git - lyx.git/blob - lib/examples/sl/primer_lyxan.lyx
Add some material to the section on tex2lyx that explains the need for layout files...
[lyx.git] / lib / examples / sl / primer_lyxan.lyx
1 #LyX 1.6.5svn created this file. For more info see http://www.lyx.org/
2 \lyxformat 345
3 \begin_document
4 \begin_header
5 \textclass article
6 \use_default_options false
7 \language slovene
8 \inputencoding auto
9 \font_roman default
10 \font_sans default
11 \font_typewriter default
12 \font_default_family default
13 \font_sc false
14 \font_osf false
15 \font_sf_scale 100
16 \font_tt_scale 100
17
18 \graphics default
19 \paperfontsize default
20 \spacing single
21 \use_hyperref false
22 \papersize default
23 \use_geometry false
24 \use_amsmath 0
25 \use_esint 0
26 \cite_engine basic
27 \use_bibtopic false
28 \paperorientation portrait
29 \secnumdepth 3
30 \tocdepth 3
31 \paragraph_separation indent
32 \defskip medskip
33 \quotes_language german
34 \papercolumns 1
35 \papersides 1
36 \paperpagestyle plain
37 \tracking_changes false
38 \output_changes false
39 \author "" 
40 \author "" 
41 \end_header
42
43 \begin_body
44
45 \begin_layout Title
46 To je naslov vašega spisa
47 \end_layout
48
49 \begin_layout Author
50 Fe LyX
51 \end_layout
52
53 \begin_layout Date
54 12.
55  junij 1972
56 \end_layout
57
58 \begin_layout Standard
59 \begin_inset CommandInset toc
60 LatexCommand tableofcontents
61
62 \end_inset
63
64
65 \end_layout
66
67 \begin_layout Section
68 Temeljna filozofija
69 \end_layout
70
71 \begin_layout Standard
72 Temeljna filozofija LyXa je, da naj bi se posvečali vsebini tistega, o čemer
73  pišemo, ne obliki.
74 \end_layout
75
76 \begin_layout Subsection
77 Kako se stvari loteva LyX
78 \end_layout
79
80 \begin_layout Standard
81 LyX uporablja LaTeX, sistem za pripravljanje spisov, ki ga je leta 1985
82  zasnoval Leslie Lamport.
83  LaTeX pa temelji na stavnem jeziku, imenovanem TeX, ki ga je leta 1984
84  ustvaril Donald Knuth.
85  Filozofija LaTeXa je podobna filozofiji LyXa.
86  Leslie Lamport je nekoč rekel (glej vir 
87 \begin_inset CommandInset citation
88 LatexCommand cite
89 key "lamport"
90
91 \end_inset
92
93 ):
94 \end_layout
95
96 \begin_layout Quote
97 Tipografsko oblikovanje naj bi pomagalo bralcu razumeti avtorjeve zamisli.
98  Da bi bilo spis lahko brati, mora njegova zunanja podoba odsevati njegovo
99  logično zgradbo.
100  Navedki in računalniški programi, ki so logično različni strukturni elementi,
101  bi se morali med seboj na pogled razlikovati\SpecialChar \ldots{}
102  Ker LaTeX ne more razumeti
103  vaše poezije, morate izrecno označiti logično strukturo z vnosom posebnih
104  ukazov\SpecialChar \ldots{}
105  Med pisanjem bi se morali ukvarjati z logično zgradbo spisa, ne
106  pa z njegovo zunanjo podobo.
107 \end_layout
108
109 \begin_layout Subsection
110 \begin_inset CommandInset label
111 LatexCommand label
112 name "sec:lyxbetter"
113
114 \end_inset
115
116 Zakaj je LyX boljši
117 \end_layout
118
119 \begin_layout Standard
120 LyX je uporaben za več ljudi kot LaTeX.
121  Precej lažje se ga je naučiti, saj ni treba znati LaTeXa (ki je praktično
122  programski jezik).
123  LyX je pravzaprav tak kot drugi urejevalniki besedil tipa 
124 \begin_inset Quotes gld
125 \end_inset
126
127 to, kar vidiš, to tudi dobiš
128 \begin_inset Quotes grd
129 \end_inset
130
131 , le da je vrste 
132 \begin_inset Quotes gld
133 \end_inset
134
135 to, kar vidiš, to tudi misliš
136 \begin_inset Quotes grd
137 \end_inset
138
139 .
140  Tako združuje preprostost uporabe urejevalnikov besedil z močjo LaTeXa.
141  To je Dobra Stvar.
142  Tudi datotečni format je neodvisen od platforme.
143  Najboljše od vsega pa je, da je 
144 \emph on
145 prost
146 \emph default
147 !
148 \end_layout
149
150 \begin_layout Section
151 Odlike LyXa
152 \end_layout
153
154 \begin_layout Standard
155 LyX ima številne odlike, ki nam olajšajo pisanje spisov.
156 \begin_inset Foot
157 status collapsed
158
159 \begin_layout Plain Layout
160 Navsezadnje, le zakaj bi ga drugače sploh želeli uporabljati?
161 \end_layout
162
163 \end_inset
164
165  
166 \emph on
167 Zelo me veseli
168 \emph default
169 , da lahko pišem o tem.
170  Omenimo le dve odliki LyXa:
171 \end_layout
172
173 \begin_layout Itemize
174 Namesto vas skrbi za robove in številči opombe v nogi.
175 \end_layout
176
177 \begin_layout Itemize
178 Olajša pisanje in urejanje matematičnih obrazcev.
179 \end_layout
180
181 \begin_layout Standard
182 Bolj filozofsko razpravo o tem, zakaj je LyX boljši od drugih urejevalnikov
183  besedil, pa boste našli v razdelku 
184 \begin_inset CommandInset ref
185 LatexCommand ref
186 reference "sec:lyxbetter"
187
188 \end_inset
189
190  na strani 
191 \begin_inset CommandInset ref
192 LatexCommand pageref
193 reference "sec:lyxbetter"
194
195 \end_inset
196
197 .
198 \end_layout
199
200 \begin_layout Section
201 Nerodni poskusi uporabe LyXa
202 \end_layout
203
204 \begin_layout Standard
205 Zadnjič sem napisal program, podoben spodnjemu:
206 \end_layout
207
208 \begin_layout LyX-Code
209 5 REM MOJ STRAŠNI PROGRAM
210 \begin_inset Newline newline
211 \end_inset
212
213 10 PRINT "STRAŠEN SEM!"
214 \begin_inset Newline newline
215 \end_inset
216
217 20 GOTO 10
218 \end_layout
219
220 \begin_layout Standard
221 Po tem učenem razmišljanju me je nenadoma preplavilo bolj umetniško razpoloženje
222  in napisal sem tale haiku
223 \end_layout
224
225 \begin_layout Verse
226 LyX je zares čudovit
227 \begin_inset Newline newline
228 \end_inset
229
230 stavni urejevalnik besedil
231 \begin_inset Newline newline
232 \end_inset
233
234 prihrani mi toliko časa
235 \end_layout
236
237 \begin_layout Section
238 Matematične zadevščine
239 \end_layout
240
241 \begin_layout Standard
242 Najbolj so mi pri srcu enačbe za rešitev kvadratne enačbe.
243  Če je 
244 \begin_inset Formula $ax^{2}+bx+c=0$
245 \end_inset
246
247  (en.
248  1), potem je 
249 \begin_inset Formula $x=\frac{-b\pm\sqrt{b^{2}-4ac}}{2a}$
250 \end_inset
251
252  (en.
253  2).
254 \end_layout
255
256 \begin_layout Standard
257 Druga priljubljena enačba je temelj matematične analize: 
258 \begin_inset Formula $f'(x)\equiv\lim_{\Delta x\rightarrow0}\frac{f(x+\Delta x)-f(x)}{\Delta x}$
259 \end_inset
260
261  (en.
262  3).
263 \end_layout
264
265 \begin_layout Section
266 Opazke
267 \end_layout
268
269 \begin_layout Standard
270 Nekaj opazk o LyXanju te datoteke:
271 \end_layout
272
273 \begin_layout Itemize
274 Vrstice z vezaji, sem lahko odstranil.
275  Njihova edina naloga je bila, da so ločevale naslove in vire od preostanka
276  spisa.
277  LyX (LaTeX) ve dovolj, da loči te dele spisa z razmikom.
278 \end_layout
279
280 \begin_layout Itemize
281 Nisem se trudil z vstavljanjem matematičnih enačb v prikazni način.
282  Tudi samodejnega številčenja enačb, ki ga pozna LyX, nisem uporabljal,
283  saj to ni opisano v 
284 \emph on
285 Učbeniku
286 \emph default
287 .
288 \end_layout
289
290 \begin_layout Itemize
291 Ni mi bilo treba vpisati besede 
292 \begin_inset Quotes gld
293 \end_inset
294
295 Literatura
296 \begin_inset Quotes grd
297 \end_inset
298
299  (v LyX-u pravzaprav 
300 \begin_inset Quotes gld
301 \end_inset
302
303 References
304 \begin_inset Quotes grd
305 \end_inset
306
307  ali 
308 \begin_inset Quotes gld
309 \end_inset
310
311 Bibliography
312 \begin_inset Quotes grd
313 \end_inset
314
315 , v izhodu pa ob slovenskih nastavitvah 
316 \begin_inset Quotes gld
317 \end_inset
318
319 Literatura
320 \begin_inset Quotes grd
321 \end_inset
322
323 ).
324  LyX jo samodejno zapiše, ko izberete okolje 
325 \family sans
326 Bibliography
327 \family default
328 .
329 \end_layout
330
331 \begin_layout Bibliography
332 \begin_inset CommandInset bibitem
333 LatexCommand bibitem
334 key "lamport"
335
336 \end_inset
337
338 Lamport, Leslie.
339  
340 \emph on
341 LaTeX: A Document Preparation System
342 \emph default
343 ; Addison-Wesley, Reading, Massachusetts, druga izdaja, 1994.
344 \end_layout
345
346 \end_body
347 \end_document