]> git.lyx.org Git - lyx.git/blob - lib/examples/gl/exemplo_lyxificado.lyx
Fix pasting insets into math (bug #9302)
[lyx.git] / lib / examples / gl / exemplo_lyxificado.lyx
1 #LyX 2.1 created this file. For more info see http://www.lyx.org/
2 \lyxformat 474
3 \begin_document
4 \begin_header
5 \textclass article
6 \use_default_options false
7 \maintain_unincluded_children false
8 \language galician
9 \language_package default
10 \inputencoding auto
11 \fontencoding global
12 \font_roman default
13 \font_sans default
14 \font_typewriter default
15 \font_math auto
16 \font_default_family default
17 \use_non_tex_fonts false
18 \font_sc false
19 \font_osf false
20 \font_sf_scale 100
21 \font_tt_scale 100
22 \graphics default
23 \default_output_format default
24 \output_sync 0
25 \bibtex_command default
26 \index_command default
27 \paperfontsize 12
28 \spacing single
29 \use_hyperref false
30 \papersize default
31 \use_geometry false
32 \use_package amsmath 0
33 \use_package amssymb 0
34 \use_package cancel 0
35 \use_package esint 0
36 \use_package mathdots 1
37 \use_package mathtools 0
38 \use_package mhchem 1
39 \use_package stackrel 0
40 \use_package stmaryrd 0
41 \use_package undertilde 0
42 \cite_engine basic
43 \cite_engine_type default
44 \biblio_style plain
45 \use_bibtopic false
46 \use_indices false
47 \paperorientation portrait
48 \suppress_date false
49 \justification true
50 \use_refstyle 0
51 \index Índice
52 \shortcut idx
53 \color #008000
54 \end_index
55 \secnumdepth 3
56 \tocdepth 3
57 \paragraph_separation indent
58 \paragraph_indentation default
59 \quotes_language english
60 \papercolumns 1
61 \papersides 1
62 \paperpagestyle plain
63 \tracking_changes false
64 \output_changes false
65 \html_math_output 0
66 \html_css_as_file 0
67 \html_be_strict false
68 \end_header
69
70 \begin_body
71
72 \begin_layout Title
73 ESTE É O TÍTULO DO DOCUMENTO
74 \end_layout
75
76 \begin_layout Author
77 por Pepe LyX
78 \end_layout
79
80 \begin_layout Date
81 12 de Xuño de 1972
82 \end_layout
83
84 \begin_layout Standard
85 \begin_inset CommandInset toc
86 LatexCommand tableofcontents
87
88 \end_inset
89
90
91 \end_layout
92
93 \begin_layout Section
94 Filosofia básica 
95 \end_layout
96
97 \begin_layout Standard
98 A filosofia básica de LyX é conseguir que o usuário só se deba preocupar
99  do contido do documento e non do formato.
100 \end_layout
101
102 \begin_layout Subsection
103 Como o traballa o LyX
104 \end_layout
105
106 \begin_layout Standard
107 LyX basea-se no LaTeX, un sistema de preparación de documentos deseñado
108  por Leslie Lamport en 1985.
109  Por sua vez o LaTeX elaborou-se sobre unha linguaxe tipográfica chamada
110  TeX, criada por Donald Knuth en 1984.
111  Por outra banda a filosofia do LaTeX é similar á de LyX.
112  Leslie Lamport dixo (ver referéncia 
113 \begin_inset CommandInset citation
114 LatexCommand cite
115 key "Lamport"
116
117 \end_inset
118
119 ) :
120 \end_layout
121
122 \begin_layout Quote
123 "A función do deseño tipográfico é axudar ao leitor a comprender as ideas
124  do autor.
125  Para un documento ser de fácil leitura, a sua estrutura visual debe reflectir
126  a sua estrutura lóxica.
127  As citas e os programas de computador, sendo elementos estruturalmente
128  diferentes, deberian distinguir-se visualmente un de outro [...] Como LaTeX
129  non pode entender directamente o sentido do seu texto, debe indicar-lle
130  a estrutura lóxica mediante comandos especiais [...] Entanto escrebe o documento,
131  deberia preocupar-se da sua estrutura lóxica, non da sua aparéncia."
132 \end_layout
133
134 \begin_layout Subsection
135 Por que o LyX é mellor
136 \end_layout
137
138 \begin_layout Standard
139 \begin_inset CommandInset label
140 LatexCommand label
141 name "sub:LyX-mellor"
142
143 \end_inset
144
145 LyX pode ser útil a mais xente que LaTeX.
146  É considerabelmente mais doado de aprender, pois non é como LaTeX unha
147  linguaxe de programazón.
148  LyX é basicamente como outros procesadores de texto "WYSIWYG (o que vé
149  é o que obtén), agás que o LyX realmente é WYSIWYM (o que vé é o que pretende
150  facer).
151  De maneira que combina a facilidade de uso dos procesadores de texto coa
152  poténcia do LaTeX.
153  O cal é unha boa cousa.
154  Ademais, o formato de arquivo é independente do sistema operativo.
155  E o mellor de todo, é LIBRE!
156 \end_layout
157
158 \begin_layout Section
159 Características do LyX
160 \end_layout
161
162 \begin_layout Standard
163 LyX posui moitas características que facilitan a escrita de documentos
164 \begin_inset Foot
165 status collapsed
166
167 \begin_layout Plain Layout
168 Senón, porque o ia querer usar?
169 \end_layout
170
171 \end_inset
172
173 .
174  E a min 
175 \emph on
176 agrada-me
177 \emph default
178  moito poder falar delas.
179  Eis unha pequena lista:
180 \end_layout
181
182 \begin_layout Itemize
183 O LyX encarrega-se sen intervención do usuário das marxes e a numeración
184  das notas de rodapé.
185 \end_layout
186
187 \begin_layout Itemize
188 LyX facilita a escrita e edición de fórmulas matemáticas.
189 \end_layout
190
191 \begin_layout Standard
192 Para unha discusión mais filosófica de por que LyX é mellor que a competéncia
193  vexa a sección 
194 \begin_inset CommandInset ref
195 LatexCommand ref
196 reference "sub:LyX-mellor"
197
198 \end_inset
199
200 , que se acha na páxina 
201 \begin_inset CommandInset ref
202 LatexCommand pageref
203 reference "sub:LyX-mellor"
204
205 \end_inset
206
207 .
208 \end_layout
209
210 \begin_layout Section
211 Tentivas eivadas de empregar máis facilidades do LyX
212 \end_layout
213
214 \begin_layout Standard
215 O outro dia escrebin un programa, algo asi como:
216 \end_layout
217
218 \begin_layout LyX-Code
219 5 REMARK O MEU MAGNIFICO PROGRAMA
220 \end_layout
221
222 \begin_layout LyX-Code
223 10 PRINT "SON INIGUALÁBEL!"
224 \end_layout
225
226 \begin_layout LyX-Code
227 20 GOTO 10 
228 \end_layout
229
230 \begin_layout Standard
231 Após desta inxente lavoura informática, arrebatou-me unha vea poética e
232  escrebin este haiku:
233 \end_layout
234
235 \begin_layout Verse
236 LyX, veloz palilleira
237 \begin_inset Newline newline
238 \end_inset
239
240 teces as miñas palabras
241 \begin_inset Newline newline
242 \end_inset
243
244 nunha fermosa renda de letras.
245 \end_layout
246
247 \begin_layout Section
248 Cuestións matemáticas
249 \end_layout
250
251 \begin_layout Standard
252 A miña ecuación favorita é a solución da ecuación de segundo grau.
253  Se 
254 \begin_inset Formula $a^{2}+bx+c=0$
255 \end_inset
256
257  (ec.
258  1), entón 
259 \begin_inset Formula $x=\frac{-b\pm\sqrt{b^{2}-4ac}}{2a}$
260 \end_inset
261
262  (ec.
263  2).
264  
265 \end_layout
266
267 \begin_layout Standard
268 Outra das miñas ecuacións favoritas é base do cálculo: 
269 \begin_inset Formula $f'(x)\equiv\lim_{\Delta x\rightarrow0}\frac{f(x+\Delta x)-f(x)}{\Delta x}$
270 \end_inset
271
272  (ec.
273  3).
274 \end_layout
275
276 \begin_layout Section
277 Notes
278 \end_layout
279
280 \begin_layout Standard
281 Tres cousiñas sobre este ficheiro:
282 \end_layout
283
284 \begin_layout Itemize
285 Eliminei as liñas a trazos que separaban o título e a bibliografia do resto
286  do documento.
287  O LyX (LaTeX) xa separa tais partes do documento con os espazos axeitados.
288 \end_layout
289
290 \begin_layout Itemize
291 Non coloquei as fórmulas en liñas independentes, nen usei a numeración automátic
292 a que fornece o LyX, porque non se descreben no 
293 \emph on
294 Tutorial
295 \emph default
296 .
297 \end_layout
298
299 \begin_layout Itemize
300 Non é necesário dixitar a palabra 
301 \begin_inset Quotes eld
302 \end_inset
303
304 References
305 \begin_inset Quotes erd
306 \end_inset
307
308  que vai a seguir, xa que o LyX a escrebe automaticamente (ou ben a palabra
309  
310 \begin_inset Quotes eld
311 \end_inset
312
313 Bibliography,
314 \begin_inset Quotes erd
315 \end_inset
316
317  segundo a clase de documento) ao seleccionar o ambiente 
318 \family sans
319 Bibliografia
320 \family default
321 .
322 \end_layout
323
324 \begin_layout Bibliography
325 \begin_inset CommandInset bibitem
326 LatexCommand bibitem
327 key "Lamport"
328
329 \end_inset
330
331 Lamport, Leslie.
332  
333 \emph on
334 LaTeX: A Document Preparation System.
335
336 \emph default
337  Addison-Wesley, Reading, Massachusetts, second edition, 1994.
338 \end_layout
339
340 \end_body
341 \end_document