]> git.lyx.org Git - lyx.git/blob - lib/examples/linguistics.lyx
- Spanish documentation updates by Ignacio
[lyx.git] / lib / examples / linguistics.lyx
1 #LyX 1.6.0svn created this file. For more info see http://www.lyx.org/
2 \lyxformat 308
3 \begin_document
4 \begin_header
5 \textclass article
6 \begin_preamble
7
8 \end_preamble
9 \begin_modules
10 Linguistics
11 \end_modules
12 \language english
13 \inputencoding auto
14 \font_roman lmodern
15 \font_sans default
16 \font_typewriter default
17 \font_default_family default
18 \font_sc false
19 \font_osf false
20 \font_sf_scale 100
21 \font_tt_scale 100
22 \graphics default
23 \paperfontsize default
24 \spacing single
25 \use_hyperref false
26 \papersize default
27 \use_geometry false
28 \use_amsmath 1
29 \use_esint 1
30 \cite_engine basic
31 \use_bibtopic false
32 \paperorientation portrait
33 \secnumdepth 3
34 \tocdepth 3
35 \paragraph_separation indent
36 \defskip medskip
37 \quotes_language english
38 \papercolumns 1
39 \papersides 1
40 \paperpagestyle default
41 \tracking_changes false
42 \output_changes false
43 \author "" 
44 \author "" 
45 \end_header
46
47 \begin_body
48
49 \begin_layout Title
50 Writing linguistic papers with LyX
51 \end_layout
52
53 \begin_layout Author
54 Jürgen Spitzmüller
55 \newline
56
57 \begin_inset Flex URL
58 status open
59
60 \begin_layout Standard
61
62 <spitz@lyx.org>
63 \end_layout
64
65 \end_inset
66
67
68 \end_layout
69
70 \begin_layout Date
71 18/12/2007
72 \end_layout
73
74 \begin_layout Abstract
75 This paper describes some features that LyX provides to linguists.
76  It demonstrates how to use some native support in order to produce numbered
77  examples, glosses, semantic markup, and phonetic symbols (IPA).
78 \end_layout
79
80 \begin_layout Section
81 Aims and prerequisites
82 \end_layout
83
84 \begin_layout Standard
85 Basically, this paper describes the features of the 
86 \begin_inset Quotes eld
87 \end_inset
88
89 Linguistics
90 \begin_inset Quotes erd
91 \end_inset
92
93  module that ships with LyX as of version 1.6.0.
94  
95 \begin_inset Quotes eld
96 \end_inset
97
98 Modules
99 \begin_inset Quotes erd
100 \end_inset
101
102  are support files (introduced with LyX 1.6.0) that can easily be selected
103  for any document.
104  In order to use the Linguistics module, go to 
105 \family sans
106 Document\SpecialChar \menuseparator
107 Settings\SpecialChar \menuseparator
108 Class
109 \family default
110 , select 
111 \begin_inset Quotes eld
112 \end_inset
113
114 Linguistics
115 \begin_inset Quotes erd
116 \end_inset
117
118  from the list of available modules, and hit the 
119 \family sans
120 Add
121 \family default
122  button to select it for your document (as already done for this document).
123 \end_layout
124
125 \begin_layout Standard
126 You should be able to use the module with any document class (please inform
127  me, if not).
128  However, in order to use all the features, you need to have the following
129  LaTeX packages installed:
130 \end_layout
131
132 \begin_layout Enumerate
133
134 \emph on
135 covington.sty
136 \emph default
137  
138 \begin_inset CommandInset citation
139 LatexCommand cite
140 key "covington"
141
142 \end_inset
143
144 : This is the base package used for numbered examples and glosses.
145 \end_layout
146
147 \begin_layout Enumerate
148
149 \emph on
150 enumitem.sty
151 \emph default
152  
153 \begin_inset CommandInset citation
154 LatexCommand cite
155 key "enumitem"
156
157 \end_inset
158
159 : This package is used for the Subexamples style.
160  It is generally useful to alter the appearance of lists (such as 
161 \emph on
162 enumerate
163 \emph default
164
165 \emph on
166 itemize
167 \emph default
168
169 \emph on
170 description
171 \emph default
172 ).
173 \end_layout
174
175 \begin_layout Enumerate
176
177 \emph on
178 csquotes.sty
179 \emph default
180  
181 \begin_inset CommandInset citation
182 LatexCommand cite
183 key "csquotes"
184
185 \end_inset
186
187 : Needed for the 
188 \emph on
189 Meaning
190 \emph default
191  character style.
192  The package provides context sensitive quotation marks, depending on the
193  language in use.
194 \end_layout
195
196 \begin_layout Section
197 Numbered examples
198 \end_layout
199
200 \begin_layout Standard
201 Numbered examples are inserted via the layout dropdown box in the toolbar.
202  There are three variants:
203 \end_layout
204
205 \begin_layout Numbered Example (multiline)
206 This is a multiline example [Style 
207 \emph on
208 Numbered Example (multiline)
209 \emph default
210 ]
211 \end_layout
212
213 \begin_layout Numbered Example (multiline)
214 it can have several paragraphs
215 \end_layout
216
217 \begin_layout Numbered Examples (consecutive)
218 This is a single example
219 \begin_inset CommandInset label
220 LatexCommand label
221 name "exa:single-example"
222
223 \end_inset
224
225  [Style 
226 \emph on
227 Numbered Example (consecutive)
228 \emph default
229 ]
230 \end_layout
231
232 \begin_layout Numbered Examples (consecutive)
233 Consecutive single examples get their own numbers
234 \end_layout
235
236 \begin_layout Subexample
237 This is a subexample
238 \begin_inset CommandInset label
239 LatexCommand label
240 name "sub:subexample"
241
242 \end_inset
243
244  [Style 
245 \emph on
246 Subexample
247 \emph default
248 ]
249 \end_layout
250
251 \begin_layout Subexample
252 And another one
253 \end_layout
254
255 \begin_layout Standard
256 References to examples are produced as usual: insert a label to the example
257  and a crossreference via 
258 \family sans
259 Insert\SpecialChar \menuseparator
260 Cross references
261 \family default
262 .
263  We refer here, just for the sake of demonstrating this, to 
264 \begin_inset CommandInset ref
265 LatexCommand ref
266 reference "exa:single-example"
267
268 \end_inset
269
270  and 
271 \begin_inset CommandInset ref
272 LatexCommand ref
273 reference "sub:subexample"
274
275 \end_inset
276
277 .
278 \end_layout
279
280 \begin_layout Section
281 Glosses
282 \end_layout
283
284 \begin_layout Standard
285 The Linguistics module provides two kinds of glosses, which can be inserted
286  via 
287 \family sans
288 Insert\SpecialChar \menuseparator
289 Custom Insets
290 \family default
291 : The standard 
292 \emph on
293 Custom:Glosse
294 \emph default
295  provides a glosse that consists of two lines and a translation, the 
296 \emph on
297 Custom:Tri-Glosse
298 \emph default
299  insets consists of three lines and a translation.
300  Note that the translation line is mandatory and must be preceded by the
301  command 
302 \family typewriter
303
304 \backslash
305 glt
306 \family default
307  which should be inserted verbatim in the Glosse inset (ERT is not needed,
308  and in fact not even possible).
309 \end_layout
310
311 \begin_layout Standard
312 Here is a simple example:
313 \end_layout
314
315 \begin_layout Standard
316 \begin_inset Flex Custom:Glosse
317 status open
318
319 \begin_layout Standard
320 C'est un exemple simple
321 \end_layout
322
323 \begin_layout Standard
324 {This is} an example simple
325 \end_layout
326
327 \begin_layout Standard
328
329 \backslash
330 glt 
331 \begin_inset Quotes els
332 \end_inset
333
334 This is a simple example
335 \begin_inset Quotes ers
336 \end_inset
337
338
339 \end_layout
340
341 \end_inset
342
343
344 \end_layout
345
346 \begin_layout Standard
347 Note that the braces hold together multi-word expressions.
348  In the same vein, we can make a three-line glosse:
349 \end_layout
350
351 \begin_layout Standard
352 \begin_inset Flex Custom:Tri-Glosse
353 status open
354
355 \begin_layout Standard
356 C'est un exemple simple
357 \end_layout
358
359 \begin_layout Standard
360 {Das ist} ein Beispiel einfach
361 \end_layout
362
363 \begin_layout Standard
364 {This is} an example simple
365 \end_layout
366
367 \begin_layout Standard
368
369 \backslash
370 glt 
371 \begin_inset Quotes els
372 \end_inset
373
374 This is a simple example
375 \begin_inset Quotes ers
376 \end_inset
377
378
379 \end_layout
380
381 \end_inset
382
383
384 \end_layout
385
386 \begin_layout Standard
387 If you want to have numbered glosses, you can simply insert the Glosse inset
388  to a numbered examples paragraph, as follows:
389 \end_layout
390
391 \begin_layout Numbered Examples (consecutive)
392 \begin_inset Flex Custom:Tri-Glosse
393 status open
394
395 \begin_layout Standard
396 Mein Luftkissenfahrzeug ist voller Aale
397 \end_layout
398
399 \begin_layout Standard
400 My skeertuig is vol palings
401 \end_layout
402
403 \begin_layout Standard
404 My hovercraft is {full of} eels
405 \end_layout
406
407 \begin_layout Standard
408
409 \backslash
410 glt 
411 \begin_inset Quotes els
412 \end_inset
413
414 Do you have matches?
415 \begin_inset Quotes ers
416 \end_inset
417
418
419 \end_layout
420
421 \end_inset
422
423
424 \end_layout
425
426 \begin_layout Section
427 Semantic Markup (Character Styles)
428 \end_layout
429
430 \begin_layout Standard
431 The Linguistics module comes with some character styles that are common
432  in linguistics:
433 \end_layout
434
435 \begin_layout Enumerate
436 Concept (in small caps): 
437 \begin_inset Flex CharStyle:Concepts
438 status collapsed
439
440 \begin_layout Standard
441 concept
442 \end_layout
443
444 \end_inset
445
446  
447 \end_layout
448
449 \begin_layout Enumerate
450 Expression (emphasized): 
451 \begin_inset Flex CharStyle:Expression
452 status collapsed
453
454 \begin_layout Standard
455 expression
456 \end_layout
457
458 \end_inset
459
460
461 \end_layout
462
463 \begin_layout Enumerate
464 Meaning (in single quotes): 
465 \begin_inset Flex CharStyle:Meaning
466 status collapsed
467
468 \begin_layout Standard
469 meaning
470 \end_layout
471
472 \end_inset
473
474
475 \end_layout
476
477 \begin_layout Standard
478 You can insert the character styles via the 
479 \family sans
480 Edit\SpecialChar \menuseparator
481 Text Style
482 \family default
483  submenu.
484  If you need to change the appearance of these styles later, you can redefine
485  them in the preamble.
486  To make expressions bold, for instance, insert:
487 \end_layout
488
489 \begin_layout LyX-Code
490
491 \backslash
492 renewcommand
493 \backslash
494 lingexpr[1]{
495 \backslash
496 textbf{#1}}
497 \end_layout
498
499 \begin_layout Standard
500 Similarly, concept (
501 \family typewriter
502
503 \backslash
504 lingconcept
505 \family default
506 ) and meaning (
507 \family typewriter
508
509 \backslash
510 lingmeaning
511 \family default
512 ) can be modified.
513 \end_layout
514
515 \begin_layout Section
516 Phonetic Symbols (IPA)
517 \end_layout
518
519 \begin_layout Standard
520 You do not need the Linguistics module to insert phonetic symbols, this
521  is a base functionality of LyX.
522  However, since this is frequently used by linguists, we will describe it
523  (briefly) in this paper nevertheless.
524 \end_layout
525
526 \begin_layout Standard
527 A prerequisite to use LyX's IPA support is the LaTeX package 
528 \emph on
529 tipa
530 \emph default
531  
532 \begin_inset CommandInset citation
533 LatexCommand cite
534 key "tipa"
535
536 \end_inset
537
538 .
539  Additionally, if you want to have instant preview, you should have the
540  
541 \emph on
542 preview-latex
543 \emph default
544  package 
545 \begin_inset CommandInset citation
546 LatexCommand cite
547 key "preview"
548
549 \end_inset
550
551  installed.
552 \end_layout
553
554 \begin_layout Standard
555 Phonetic symbols can be entered via 
556 \family sans
557 Insert\SpecialChar \menuseparator
558 Special characters\SpecialChar \menuseparator
559 Phonetic symbols.
560  
561 \family default
562 You get a little frame, where you can insert the symbols using the shortcut
563  notation which is described in the tipa manual.
564  Example: 
565 \begin_inset Formula $\text{\textipa{[Ekspl@"neIS@n]}}$
566 \end_inset
567
568 .
569  Given that preview-latex is installed and you have switched on instant
570  preview (in 
571 \family sans
572 Tools\SpecialChar \menuseparator
573 Preferences\SpecialChar \menuseparator
574 Graphics
575 \family default
576 ), you'll get a nice preview as soon as the cursor leaves the frame.
577 \end_layout
578
579 \begin_layout Section
580 Further information
581 \end_layout
582
583 \begin_layout Standard
584 For a detailed description of specific possibilities for linguists, please
585  refer to the LinguistLyX page on the LyX wiki 
586 \begin_inset CommandInset citation
587 LatexCommand cite
588 key "linguistlyx"
589
590 \end_inset
591
592  (feel free to enter your own hints there).
593 \end_layout
594
595 \begin_layout Bibliography
596 \begin_inset CommandInset bibitem
597 LatexCommand bibitem
598 key "covington"
599
600 \end_inset
601
602 The covington package: 
603 \begin_inset Flex URL
604 status collapsed
605
606 \begin_layout Standard
607
608 http://www.ctan.org/tex-archive/macros/latex/contrib/covington/
609 \end_layout
610
611 \end_inset
612
613 .
614 \end_layout
615
616 \begin_layout Bibliography
617 \begin_inset CommandInset bibitem
618 LatexCommand bibitem
619 key "csquotes"
620
621 \end_inset
622
623 The csquotes package: 
624 \begin_inset Flex URL
625 status collapsed
626
627 \begin_layout Standard
628
629 http://www.ctan.org/tex-archive/macros/latex/contrib/csquotes/
630 \end_layout
631
632 \end_inset
633
634 .
635 \end_layout
636
637 \begin_layout Bibliography
638 \begin_inset CommandInset bibitem
639 LatexCommand bibitem
640 key "enumitem"
641
642 \end_inset
643
644 The enumitem package: 
645 \begin_inset Flex URL
646 status collapsed
647
648 \begin_layout Standard
649
650 http://www.ctan.org/tex-archive/macros/latex/contrib/enumitem/
651 \end_layout
652
653 \end_inset
654
655 .
656 \end_layout
657
658 \begin_layout Bibliography
659 \begin_inset CommandInset bibitem
660 LatexCommand bibitem
661 key "linguistlyx"
662
663 \end_inset
664
665 Maria Gouskova, Stacia Hartleben and Jürgen Spitzmüller: Using LyX for Linguisti
666 c Papers.
667  
668 \begin_inset Flex URL
669 status open
670
671 \begin_layout Standard
672
673 http://wiki.lyx.org/LyX/LinguistLyX
674 \end_layout
675
676 \end_inset
677
678 .
679 \end_layout
680
681 \begin_layout Bibliography
682 \begin_inset CommandInset bibitem
683 LatexCommand bibitem
684 key "preview"
685
686 \end_inset
687
688 The preview-latex package: 
689 \begin_inset Flex URL
690 status collapsed
691
692 \begin_layout Standard
693
694 http://www.ctan.org/tex-archive/macros/latex/contrib/preview/
695 \end_layout
696
697 \end_inset
698
699 .
700 \end_layout
701
702 \begin_layout Bibliography
703 \begin_inset CommandInset bibitem
704 LatexCommand bibitem
705 key "tipa"
706
707 \end_inset
708
709 The tipa package and fonts: 
710 \begin_inset Flex URL
711 status collapsed
712
713 \begin_layout Standard
714
715 http://www.ctan.org/tex-archive/fonts/tipa/
716 \end_layout
717
718 \end_inset
719
720 .
721 \end_layout
722
723 \end_body
724 \end_document