]> git.lyx.org Git - lyx.git/blob - lib/examples/linguistics.lyx
Add some material to the section on tex2lyx that explains the need for layout files...
[lyx.git] / lib / examples / linguistics.lyx
1 #LyX 1.6.5svn created this file. For more info see http://www.lyx.org/\r
2 \lyxformat 345\r
3 \begin_document\r
4 \begin_header\r
5 \textclass article\r
6 \begin_preamble\r
7 %% Uncomment the following for Tableaux captions on top:\r
8 %\floatstyle{plaintop}\r
9 %\restylefloat{tableau}\r
10 \end_preamble\r
11 \use_default_options false\r
12 \begin_modules\r
13 linguistics\r
14 \end_modules\r
15 \language english\r
16 \inputencoding auto\r
17 \font_roman lmodern\r
18 \font_sans default\r
19 \font_typewriter default\r
20 \font_default_family default\r
21 \font_sc false\r
22 \font_osf false\r
23 \font_sf_scale 100\r
24 \font_tt_scale 100\r
25 \r
26 \graphics default\r
27 \paperfontsize default\r
28 \spacing single\r
29 \use_hyperref true\r
30 \pdf_bookmarks true\r
31 \pdf_bookmarksnumbered false\r
32 \pdf_bookmarksopen false\r
33 \pdf_bookmarksopenlevel 1\r
34 \pdf_breaklinks false\r
35 \pdf_pdfborder true\r
36 \pdf_colorlinks false\r
37 \pdf_backref false\r
38 \pdf_pdfusetitle true\r
39 \papersize default\r
40 \use_geometry false\r
41 \use_amsmath 1\r
42 \use_esint 1\r
43 \cite_engine basic\r
44 \use_bibtopic false\r
45 \paperorientation portrait\r
46 \secnumdepth 3\r
47 \tocdepth 3\r
48 \paragraph_separation indent\r
49 \defskip medskip\r
50 \quotes_language english\r
51 \papercolumns 1\r
52 \papersides 1\r
53 \paperpagestyle default\r
54 \tracking_changes false\r
55 \output_changes false\r
56 \author "" \r
57 \author "" \r
58 \end_header\r
59 \r
60 \begin_body\r
61 \r
62 \begin_layout Title\r
63 Writing linguistic papers with LyX\r
64 \end_layout\r
65 \r
66 \begin_layout Author\r
67 Jürgen Spitzmüller\r
68 \begin_inset Newline newline\r
69 \end_inset\r
70 \r
71 \r
72 \begin_inset CommandInset href\r
73 LatexCommand href\r
74 target "spitz@lyx.org"\r
75 type "mailto:"\r
76 \r
77 \end_inset\r
78 \r
79 \r
80 \end_layout\r
81 \r
82 \begin_layout Date\r
83 14/09/2008\r
84 \end_layout\r
85 \r
86 \begin_layout Abstract\r
87 This paper describes some features that LyX provides to linguists.\r
88  It demonstrates how to use some native support in order to produce numbered\r
89  examples, glosses, OT tableaux, semantic markup, and phonetic symbols (IPA).\r
90 \end_layout\r
91 \r
92 \begin_layout Section\r
93 Aims and prerequisites\r
94 \end_layout\r
95 \r
96 \begin_layout Standard\r
97 Basically, this paper describes the features of the \r
98 \begin_inset Quotes eld\r
99 \end_inset\r
100 \r
101 Linguistics\r
102 \begin_inset Quotes erd\r
103 \end_inset\r
104 \r
105  module that ships with LyX as of version 1.6.0.\r
106  \r
107 \begin_inset Quotes eld\r
108 \end_inset\r
109 \r
110 Modules\r
111 \begin_inset Quotes erd\r
112 \end_inset\r
113 \r
114  are support files (introduced with LyX 1.6.0) that can easily be selected\r
115  for any document.\r
116  In order to use the Linguistics module, go to \r
117 \family sans\r
118 Document\SpecialChar \menuseparator\r
119 Settings\SpecialChar \menuseparator\r
120 Modules\r
121 \family default\r
122 , select \r
123 \begin_inset Quotes eld\r
124 \end_inset\r
125 \r
126 Linguistics\r
127 \begin_inset Quotes erd\r
128 \end_inset\r
129 \r
130  from the list of available modules, and hit the \r
131 \family sans\r
132 Add\r
133 \family default\r
134  button to select it for your document (as already done for this document).\r
135 \end_layout\r
136 \r
137 \begin_layout Standard\r
138 You should be able to use the module with any document class (please inform\r
139  me, if not).\r
140  However, in order to use all the features, you need to have the following\r
141  LaTeX packages installed:\r
142 \end_layout\r
143 \r
144 \begin_layout Enumerate\r
145 \r
146 \emph on\r
147 covington.sty\r
148 \emph default\r
149  \r
150 \begin_inset CommandInset citation\r
151 LatexCommand cite\r
152 key "covington"\r
153 \r
154 \end_inset\r
155 \r
156 : This is the base package used for numbered examples and glosses.\r
157 \end_layout\r
158 \r
159 \begin_layout Enumerate\r
160 \r
161 \emph on\r
162 enumitem.sty\r
163 \emph default\r
164  \r
165 \begin_inset CommandInset citation\r
166 LatexCommand cite\r
167 key "enumitem"\r
168 \r
169 \end_inset\r
170 \r
171 : This package is used for the Subexamples style.\r
172  It is generally useful to alter the appearance of lists (such as \r
173 \emph on\r
174 enumerate\r
175 \emph default\r
176\r
177 \emph on\r
178 itemize\r
179 \emph default\r
180\r
181 \emph on\r
182 description\r
183 \emph default\r
184 ).\r
185 \end_layout\r
186 \r
187 \begin_layout Enumerate\r
188 \r
189 \emph on\r
190 csquotes.sty\r
191 \emph default\r
192  \r
193 \begin_inset CommandInset citation\r
194 LatexCommand cite\r
195 key "csquotes"\r
196 \r
197 \end_inset\r
198 \r
199 : Needed for the \r
200 \emph on\r
201 Meaning\r
202 \emph default\r
203  character style.\r
204  The package provides context sensitive quotation marks, depending on the\r
205  language in use.\r
206 \end_layout\r
207 \r
208 \begin_layout Enumerate\r
209 \r
210 \emph on\r
211 float.sty\r
212 \emph default\r
213  \r
214 \begin_inset CommandInset citation\r
215 LatexCommand cite\r
216 key "float"\r
217 \r
218 \end_inset\r
219 \r
220 : Needed for the OT tableaux floats and list of floats.\r
221  This package should be part of any LaTeX distribution.\r
222 \end_layout\r
223 \r
224 \begin_layout Section\r
225 Numbered examples\r
226 \end_layout\r
227 \r
228 \begin_layout Standard\r
229 Numbered examples are inserted via the layout drop-down box in the toolbar.\r
230  There are three variants:\r
231 \end_layout\r
232 \r
233 \begin_layout Numbered Example (multiline)\r
234 This is a multiline example [Style \r
235 \emph on\r
236 Numbered Example (multiline)\r
237 \emph default\r
238 ]\r
239 \end_layout\r
240 \r
241 \begin_layout Numbered Example (multiline)\r
242 it can have several paragraphs\r
243 \end_layout\r
244 \r
245 \begin_layout Numbered Examples (consecutive)\r
246 This is a single example\r
247 \begin_inset CommandInset label\r
248 LatexCommand label\r
249 name "exa:single-example"\r
250 \r
251 \end_inset\r
252 \r
253  [Style \r
254 \emph on\r
255 Numbered Example (consecutive)\r
256 \emph default\r
257 ]\r
258 \end_layout\r
259 \r
260 \begin_layout Numbered Examples (consecutive)\r
261 Consecutive single examples get their own numbers\r
262 \end_layout\r
263 \r
264 \begin_layout Subexample\r
265 This is a subexample\r
266 \begin_inset CommandInset label\r
267 LatexCommand label\r
268 name "sub:subexample"\r
269 \r
270 \end_inset\r
271 \r
272  [Style \r
273 \emph on\r
274 Subexample\r
275 \emph default\r
276 ]\r
277 \end_layout\r
278 \r
279 \begin_layout Subexample\r
280 And another one\r
281 \end_layout\r
282 \r
283 \begin_layout Standard\r
284 References to examples are produced as usual: insert a label to the example\r
285  and a cross-reference via \r
286 \family sans\r
287 Insert\SpecialChar \menuseparator\r
288 Cross references\r
289 \family default\r
290 .\r
291  We refer here, just for the sake of demonstrating this, to \r
292 \begin_inset CommandInset ref\r
293 LatexCommand ref\r
294 reference "exa:single-example"\r
295 \r
296 \end_inset\r
297 \r
298  and \r
299 \begin_inset CommandInset ref\r
300 LatexCommand ref\r
301 reference "sub:subexample"\r
302 \r
303 \end_inset\r
304 \r
305 .\r
306 \end_layout\r
307 \r
308 \begin_layout Section\r
309 Glosses\r
310 \end_layout\r
311 \r
312 \begin_layout Standard\r
313 The Linguistics module provides two kinds of glosses, which can be inserted\r
314  via \r
315 \family sans\r
316 Insert\SpecialChar \menuseparator\r
317 Custom Insets\r
318 \family default\r
319 : The standard \r
320 \emph on\r
321 Custom:Glosse\r
322 \emph default\r
323  provides a gloss that consists of two lines and a translation, the \r
324 \emph on\r
325 Custom:Tri-Glosse\r
326 \emph default\r
327  insets consists of three lines and a translation.\r
328  Each translation line might span multiple lines in the output, i.\r
329 \begin_inset space \thinspace{}\r
330 \end_inset\r
331 \r
332 e., the paragraphs are automatically broken if they exceed the text width.\r
333  Note that the translation line is mandatory and must be preceded by the\r
334  command \r
335 \family typewriter\r
336 \r
337 \backslash\r
338 glt\r
339 \family default\r
340  which must be inserted verbatim in the gloss inset (TeX mode is not needed,\r
341  and in fact not even possible).\r
342 \end_layout\r
343 \r
344 \begin_layout Standard\r
345 Here is a simple example:\r
346 \end_layout\r
347 \r
348 \begin_layout Standard\r
349 \begin_inset Flex Custom:Glosse\r
350 status open\r
351 \r
352 \begin_layout Plain Layout\r
353 \r
354 C'est un exemple simple\r
355 \end_layout\r
356 \r
357 \begin_layout Plain Layout\r
358 \r
359 {This is} an example simple\r
360 \end_layout\r
361 \r
362 \begin_layout Plain Layout\r
363 \r
364 \r
365 \backslash\r
366 glt \r
367 \begin_inset Quotes els\r
368 \end_inset\r
369 \r
370 This is a simple example\r
371 \begin_inset Quotes ers\r
372 \end_inset\r
373 \r
374 \r
375 \end_layout\r
376 \r
377 \end_inset\r
378 \r
379 \r
380 \end_layout\r
381 \r
382 \begin_layout Standard\r
383 \noindent\r
384 Note how the braces hold together multi-word expressions.\r
385 \end_layout\r
386 \r
387 \begin_layout Standard\r
388 In the same vein, we can make a three-line gloss:\r
389 \end_layout\r
390 \r
391 \begin_layout Standard\r
392 \begin_inset Flex Custom:Tri-Glosse\r
393 status open\r
394 \r
395 \begin_layout Plain Layout\r
396 \r
397 C'est un exemple simple\r
398 \end_layout\r
399 \r
400 \begin_layout Plain Layout\r
401 \r
402 {Das ist} ein Beispiel einfach\r
403 \end_layout\r
404 \r
405 \begin_layout Plain Layout\r
406 \r
407 {This is} an example simple\r
408 \end_layout\r
409 \r
410 \begin_layout Plain Layout\r
411 \r
412 \r
413 \backslash\r
414 glt \r
415 \begin_inset Quotes els\r
416 \end_inset\r
417 \r
418 This is a simple example\r
419 \begin_inset Quotes ers\r
420 \end_inset\r
421 \r
422 \r
423 \end_layout\r
424 \r
425 \end_inset\r
426 \r
427 \r
428 \end_layout\r
429 \r
430 \begin_layout Standard\r
431 \noindent\r
432 If you want to have numbered glosses, you can simply insert the gloss inset\r
433  to a numbered examples paragraph, as follows:\r
434 \end_layout\r
435 \r
436 \begin_layout Numbered Examples (consecutive)\r
437 \begin_inset Flex Custom:Tri-Glosse\r
438 status open\r
439 \r
440 \begin_layout Plain Layout\r
441 \r
442 Mein Luftkissenfahrzeug ist voller Aale\r
443 \end_layout\r
444 \r
445 \begin_layout Plain Layout\r
446 \r
447 My skeertuig is vol palings\r
448 \end_layout\r
449 \r
450 \begin_layout Plain Layout\r
451 \r
452 My hovercraft is {full of} eels\r
453 \end_layout\r
454 \r
455 \begin_layout Plain Layout\r
456 \r
457 \r
458 \backslash\r
459 glt \r
460 \begin_inset Quotes els\r
461 \end_inset\r
462 \r
463 Do you have matches?\r
464 \begin_inset Quotes ers\r
465 \end_inset\r
466 \r
467 \r
468 \end_layout\r
469 \r
470 \end_inset\r
471 \r
472 \r
473 \end_layout\r
474 \r
475 \begin_layout Standard\r
476 Note that font changes are not allowed in glosses.\r
477  Hence, the \r
478 \family sans\r
479 Character Style\r
480 \family default\r
481  dialog is disabled.\r
482  Since glosses are not hyphenated, an explicit language setting in the LaTeX\r
483  output is not required (in fact, it would break the output, since covington\r
484  does not support it).\r
485  However, you still might want to set the language for proper spell checking.\r
486  Currently, you have to do this as follows: select the text, and then issue\r
487  \r
488 \begin_inset Info\r
489 type  "shortcut"\r
490 arg   "command-execute"\r
491 \end_inset\r
492 \r
493  \r
494 \family sans\r
495 language <lang>\r
496 \family default\r
497 , where \r
498 \family sans\r
499 <lang>\r
500 \family default\r
501  should be replaced by the respective language, e.\r
502 \begin_inset space \thinspace{}\r
503 \end_inset\r
504 \r
505 g.\r
506  \r
507 \family sans\r
508 english\r
509 \family default\r
510\r
511 \family sans\r
512 french\r
513 \family default\r
514  or \r
515 \family sans\r
516 ngerman\r
517 \family default\r
518 .\r
519  In the LaTeX output, this setting will be supressed.\r
520 \end_layout\r
521 \r
522 \begin_layout Section\r
523 Optimality Theory Tableaux\r
524 \end_layout\r
525 \r
526 \begin_layout Standard\r
527 OT tableaux itself can of course simply be inserted as ordinary tables (for\r
528  specific features such as dashed lines and shaded cells, cf.\r
529  the \r
530 \emph on\r
531 EmbeddedObjects\r
532 \emph default\r
533  manual).\r
534  However, you might want to have the tableaux numbered throughout the document,\r
535  and you might want to have a \r
536 \emph on\r
537 List of Tableaux\r
538 \emph default\r
539 , similar to the \r
540 \emph on\r
541 List of Tables\r
542 \emph default\r
543 .\r
544  \r
545 \end_layout\r
546 \r
547 \begin_layout Standard\r
548 The Linguistics module provides support for both.\r
549  In \r
550 \family sans\r
551 Insert\SpecialChar \menuseparator\r
552 Floats\r
553 \family default\r
554 , you'll find a Tableaux float:\r
555 \end_layout\r
556 \r
557 \begin_layout Standard\r
558 \begin_inset Float tableau\r
559 placement h\r
560 wide false\r
561 sideways false\r
562 status open\r
563 \r
564 \begin_layout Plain Layout\r
565 \align center\r
566 \begin_inset Tabular\r
567 <lyxtabular version="3" rows="5" columns="5">\r
568 <features>\r
569 <column alignment="right" valignment="top" width="0">\r
570 <column alignment="center" valignment="top" width="0">\r
571 <column alignment="center" valignment="top" width="0">\r
572 <column alignment="center" valignment="top" width="0" special="|c">\r
573 <column alignment="center" valignment="top" width="0">\r
574 <row>\r
575 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">\r
576 \begin_inset Text\r
577 \r
578 \begin_layout Plain Layout\r
579 /atikap/\r
580 \end_layout\r
581 \r
582 \end_inset\r
583 </cell>\r
584 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">\r
585 \begin_inset Text\r
586 \r
587 \begin_layout Plain Layout\r
588 \r
589 \noun on\r
590 Onset\r
591 \end_layout\r
592 \r
593 \end_inset\r
594 </cell>\r
595 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">\r
596 \begin_inset Text\r
597 \r
598 \begin_layout Plain Layout\r
599 \r
600 \noun on\r
601 NoCoda\r
602 \end_layout\r
603 \r
604 \end_inset\r
605 </cell>\r
606 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">\r
607 \begin_inset Text\r
608 \r
609 \begin_layout Plain Layout\r
610 \r
611 \noun on\r
612 Dep\r
613 \end_layout\r
614 \r
615 \end_inset\r
616 </cell>\r
617 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">\r
618 \begin_inset Text\r
619 \r
620 \begin_layout Plain Layout\r
621 \r
622 \noun on\r
623 Max\r
624 \end_layout\r
625 \r
626 \end_inset\r
627 </cell>\r
628 </row>\r
629 <row>\r
630 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\r
631 \begin_inset Text\r
632 \r
633 \begin_layout Plain Layout\r
634 \begin_inset Formula $\mbox{☞}$\r
635 \end_inset\r
636 \r
637  \r
638 \begin_inset Formula $\mbox{\textipa{P}}$\r
639 \end_inset\r
640 \r
641 a.ti.ka\r
642 \end_layout\r
643 \r
644 \end_inset\r
645 </cell>\r
646 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\r
647 \begin_inset Text\r
648 \r
649 \begin_layout Plain Layout\r
650 \r
651 \end_layout\r
652 \r
653 \end_inset\r
654 </cell>\r
655 <cell alignment="center" valignment="top" topline="true" usebox="none">\r
656 \begin_inset Text\r
657 \r
658 \begin_layout Plain Layout\r
659 \r
660 \end_layout\r
661 \r
662 \end_inset\r
663 </cell>\r
664 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\r
665 \begin_inset Text\r
666 \r
667 \begin_layout Plain Layout\r
668 *\r
669 \end_layout\r
670 \r
671 \end_inset\r
672 </cell>\r
673 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">\r
674 \begin_inset Text\r
675 \r
676 \begin_layout Plain Layout\r
677 *\r
678 \end_layout\r
679 \r
680 \end_inset\r
681 </cell>\r
682 </row>\r
683 <row>\r
684 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\r
685 \begin_inset Text\r
686 \r
687 \begin_layout Plain Layout\r
688 a.ti.ka\r
689 \end_layout\r
690 \r
691 \end_inset\r
692 </cell>\r
693 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\r
694 \begin_inset Text\r
695 \r
696 \begin_layout Plain Layout\r
697 *!\r
698 \end_layout\r
699 \r
700 \end_inset\r
701 </cell>\r
702 <cell alignment="center" valignment="top" topline="true" usebox="none">\r
703 \begin_inset Text\r
704 \r
705 \begin_layout Plain Layout\r
706 \r
707 \end_layout\r
708 \r
709 \end_inset\r
710 </cell>\r
711 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\r
712 \begin_inset Text\r
713 \r
714 \begin_layout Plain Layout\r
715 \r
716 \end_layout\r
717 \r
718 \end_inset\r
719 </cell>\r
720 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">\r
721 \begin_inset Text\r
722 \r
723 \begin_layout Plain Layout\r
724 *\r
725 \end_layout\r
726 \r
727 \end_inset\r
728 </cell>\r
729 </row>\r
730 <row>\r
731 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\r
732 \begin_inset Text\r
733 \r
734 \begin_layout Plain Layout\r
735 \begin_inset Formula $\mbox{\textipa{P}}$\r
736 \end_inset\r
737 \r
738 a.ti.kap\r
739 \end_layout\r
740 \r
741 \end_inset\r
742 </cell>\r
743 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\r
744 \begin_inset Text\r
745 \r
746 \begin_layout Plain Layout\r
747 \r
748 \end_layout\r
749 \r
750 \end_inset\r
751 </cell>\r
752 <cell alignment="center" valignment="top" topline="true" usebox="none">\r
753 \begin_inset Text\r
754 \r
755 \begin_layout Plain Layout\r
756 *!\r
757 \end_layout\r
758 \r
759 \end_inset\r
760 </cell>\r
761 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">\r
762 \begin_inset Text\r
763 \r
764 \begin_layout Plain Layout\r
765 *\r
766 \end_layout\r
767 \r
768 \end_inset\r
769 </cell>\r
770 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">\r
771 \begin_inset Text\r
772 \r
773 \begin_layout Plain Layout\r
774 \r
775 \end_layout\r
776 \r
777 \end_inset\r
778 </cell>\r
779 </row>\r
780 <row>\r
781 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">\r
782 \begin_inset Text\r
783 \r
784 \begin_layout Plain Layout\r
785 a.ti.kap\r
786 \end_layout\r
787 \r
788 \end_inset\r
789 </cell>\r
790 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">\r
791 \begin_inset Text\r
792 \r
793 \begin_layout Plain Layout\r
794 *!\r
795 \end_layout\r
796 \r
797 \end_inset\r
798 </cell>\r
799 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">\r
800 \begin_inset Text\r
801 \r
802 \begin_layout Plain Layout\r
803 *!\r
804 \end_layout\r
805 \r
806 \end_inset\r
807 </cell>\r
808 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">\r
809 \begin_inset Text\r
810 \r
811 \begin_layout Plain Layout\r
812 \r
813 \end_layout\r
814 \r
815 \end_inset\r
816 </cell>\r
817 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">\r
818 \begin_inset Text\r
819 \r
820 \begin_layout Plain Layout\r
821 \r
822 \end_layout\r
823 \r
824 \end_inset\r
825 </cell>\r
826 </row>\r
827 </lyxtabular>\r
828 \r
829 \end_inset\r
830 \r
831 \r
832 \end_layout\r
833 \r
834 \begin_layout Plain Layout\r
835 \begin_inset Caption\r
836 \r
837 \begin_layout Plain Layout\r
838 Example Tableau\r
839 \end_layout\r
840 \r
841 \end_inset\r
842 \r
843 \r
844 \end_layout\r
845 \r
846 \end_inset\r
847 \r
848 \r
849 \end_layout\r
850 \r
851 \begin_layout Standard\r
852 Note that by default, the caption is always placed below the tableaux in\r
853  the output, no matter where you put it in the LyX window.\r
854  To get the Tableaux captions on top, put the following code in \r
855 \family sans\r
856 Document\SpecialChar \menuseparator\r
857 Settings\SpecialChar \menuseparator\r
858 Preamble\r
859 \family default\r
860 :\r
861 \end_layout\r
862 \r
863 \begin_layout LyX-Code\r
864 \r
865 \backslash\r
866 floatstyle{plaintop}\r
867 \end_layout\r
868 \r
869 \begin_layout LyX-Code\r
870 \r
871 \backslash\r
872 restylefloat{tableau}\r
873 \end_layout\r
874 \r
875 \begin_layout Standard\r
876 If your using a KOMA class, use the following instead for better spacing:\r
877 \end_layout\r
878 \r
879 \begin_layout LyX-Code\r
880 \r
881 \backslash\r
882 floatstyle{komaabove}\r
883 \end_layout\r
884 \r
885 \begin_layout LyX-Code\r
886 \r
887 \backslash\r
888 restylefloat{tableau}\r
889 \end_layout\r
890 \r
891 \begin_layout Standard\r
892 A List of Tableaux inset can be found in \r
893 \family sans\r
894 Insert\SpecialChar \menuseparator\r
895 Lists & TOC\r
896 \family default\r
897 .\r
898  Even though this usually is placed at the beginning or the end of the document,\r
899  we do this here for exemplification purposes:\r
900 \end_layout\r
901 \r
902 \begin_layout Standard\r
903 \begin_inset FloatList tableau\r
904 \r
905 \end_inset\r
906 \r
907 \r
908 \end_layout\r
909 \r
910 \begin_layout Section\r
911 Semantic Markup (Character Styles)\r
912 \end_layout\r
913 \r
914 \begin_layout Standard\r
915 The Linguistics module comes with some character styles that are common\r
916  in linguistics:\r
917 \end_layout\r
918 \r
919 \begin_layout Enumerate\r
920 Concept (in small caps): \r
921 \begin_inset Flex CharStyle:Concepts\r
922 status collapsed\r
923 \r
924 \begin_layout Plain Layout\r
925 concept\r
926 \end_layout\r
927 \r
928 \end_inset\r
929 \r
930  \r
931 \end_layout\r
932 \r
933 \begin_layout Enumerate\r
934 Expression (emphasized): \r
935 \begin_inset Flex CharStyle:Expression\r
936 status collapsed\r
937 \r
938 \begin_layout Plain Layout\r
939 expression\r
940 \end_layout\r
941 \r
942 \end_inset\r
943 \r
944 \r
945 \end_layout\r
946 \r
947 \begin_layout Enumerate\r
948 Meaning (in single quotes): \r
949 \begin_inset Flex CharStyle:Meaning\r
950 status collapsed\r
951 \r
952 \begin_layout Plain Layout\r
953 meaning\r
954 \end_layout\r
955 \r
956 \end_inset\r
957 \r
958 \r
959 \end_layout\r
960 \r
961 \begin_layout Standard\r
962 You can insert the character styles via the \r
963 \family sans\r
964 Edit\SpecialChar \menuseparator\r
965 Text Style\r
966 \family default\r
967  submenu.\r
968  If you need to change the appearance of these styles later, you can redefine\r
969  them in the preamble.\r
970  To make expressions bold, for instance, insert:\r
971 \end_layout\r
972 \r
973 \begin_layout LyX-Code\r
974 \r
975 \backslash\r
976 renewcommand\r
977 \backslash\r
978 lingexpr[1]{\r
979 \backslash\r
980 textbf{#1}}\r
981 \end_layout\r
982 \r
983 \begin_layout Standard\r
984 Similarly, concept (\r
985 \family typewriter\r
986 \r
987 \backslash\r
988 lingconcept\r
989 \family default\r
990 ) and meaning (\r
991 \family typewriter\r
992 \r
993 \backslash\r
994 lingmeaning\r
995 \family default\r
996 ) can be modified.\r
997 \end_layout\r
998 \r
999 \begin_layout Section\r
1000 Phonetic Symbols (IPA)\r
1001 \end_layout\r
1002 \r
1003 \begin_layout Standard\r
1004 You do not need the Linguistics module to insert phonetic symbols, this\r
1005  is a base functionality of LyX.\r
1006  However, since this is frequently used by linguists, we will describe it\r
1007  (briefly) in this paper nevertheless.\r
1008 \end_layout\r
1009 \r
1010 \begin_layout Standard\r
1011 A prerequisite to use LyX's IPA support is the LaTeX package \r
1012 \emph on\r
1013 tipa\r
1014 \emph default\r
1015  \r
1016 \begin_inset CommandInset citation\r
1017 LatexCommand cite\r
1018 key "tipa"\r
1019 \r
1020 \end_inset\r
1021 \r
1022 .\r
1023  Additionally, if you want to have instant preview, you should have the\r
1024  \r
1025 \emph on\r
1026 preview-latex\r
1027 \emph default\r
1028  package \r
1029 \begin_inset CommandInset citation\r
1030 LatexCommand cite\r
1031 key "preview"\r
1032 \r
1033 \end_inset\r
1034 \r
1035  installed.\r
1036 \end_layout\r
1037 \r
1038 \begin_layout Standard\r
1039 Phonetic symbols can be entered via \r
1040 \family sans\r
1041 Insert\SpecialChar \menuseparator\r
1042 Special characters\SpecialChar \menuseparator\r
1043 Phonetic symbols.\r
1044  \r
1045 \family default\r
1046 You get a little frame, where you can insert the symbols using the shortcut\r
1047  notation which is described in the \r
1048 \emph on\r
1049 tipa\r
1050 \emph default\r
1051  manual.\r
1052  Example: \r
1053 \begin_inset Formula $\text{\textipa{[Ekspl@"neIS@n]}}$\r
1054 \end_inset\r
1055 \r
1056  (\r
1057 \emph on\r
1058 tipa\r
1059 \emph default\r
1060  shortcut notation: \r
1061 \family typewriter\r
1062 [Ekspl@"neIS@n\r
1063 \family default\r
1064 ]).\r
1065  Given that\r
1066 \emph on\r
1067  preview-lat\r
1068 \family sans\r
1069 \emph default\r
1070 e\r
1071 \family default\r
1072 x is installed and you have switched on instant preview (in\r
1073 \family sans\r
1074  Tools\SpecialChar \menuseparator\r
1075 Preferences\SpecialChar \menuseparator\r
1076 Graphi\r
1077 \family default\r
1078 cs), you'll get a nice preview as soon as the cursor leaves the frame.\r
1079 \end_layout\r
1080 \r
1081 \begin_layout Standard\r
1082 Furthermore, most IPA glyphs can also be inserted (e.\r
1083 \begin_inset space \thinspace{}\r
1084 \end_inset\r
1085 \r
1086 g.\r
1087 \begin_inset space \space{}\r
1088 \end_inset\r
1089 \r
1090 via \r
1091 \family sans\r
1092 Insert\SpecialChar \menuseparator\r
1093 Special characters\SpecialChar \menuseparator\r
1094 Symbols\SpecialChar \ldots{}\r
1095 \r
1096 \family default\r
1097 ) or pasted directly into LyX: [ɛkspləˈneɪʃən].\r
1098  In the output, they will be automatically transformed into the correct\r
1099  \r
1100 \emph on\r
1101 tipa\r
1102 \emph default\r
1103  macro (if not, please inform me).\r
1104  However, please note that the former method produces better output quality\r
1105  for two reasons:\r
1106 \end_layout\r
1107 \r
1108 \begin_layout Enumerate\r
1109 direct input might result in a mix of fonts (in the above example, the latin\r
1110  characters are taken from the base font, the IPA glyphs from the IPA font,\r
1111  whereas \r
1112 \family sans\r
1113 Insert\SpecialChar \menuseparator\r
1114 Special characters\SpecialChar \menuseparator\r
1115 Phonetic symbol\r
1116 \family default\r
1117 s uses the IPA font for all characters)\r
1118 \end_layout\r
1119 \r
1120 \begin_layout Enumerate\r
1121 the letter kerning is not preserved\r
1122 \end_layout\r
1123 \r
1124 \begin_layout Standard\r
1125 So unless you only need to insert single IPA characters, the former method\r
1126  is recommended, and it's worth learning the (pretty intuitive) IPA shortcut\r
1127  notation.\r
1128 \end_layout\r
1129 \r
1130 \begin_layout Section\r
1131 Further information\r
1132 \end_layout\r
1133 \r
1134 \begin_layout Standard\r
1135 For a detailed description of specific possibilities for linguists, please\r
1136  refer to the LinguistLyX page on the LyX wiki \r
1137 \begin_inset CommandInset citation\r
1138 LatexCommand cite\r
1139 key "linguistlyx"\r
1140 \r
1141 \end_inset\r
1142 \r
1143  (feel free to enter your own hints there).\r
1144 \end_layout\r
1145 \r
1146 \begin_layout Bibliography\r
1147 \begin_inset CommandInset bibitem\r
1148 LatexCommand bibitem\r
1149 key "covington"\r
1150 \r
1151 \end_inset\r
1152 \r
1153 The covington package: \r
1154 \begin_inset Flex URL\r
1155 status collapsed\r
1156 \r
1157 \begin_layout Plain Layout\r
1158 \r
1159 http://www.ctan.org/tex-archive/macros/latex/contrib/covington/\r
1160 \end_layout\r
1161 \r
1162 \end_inset\r
1163 \r
1164 .\r
1165 \end_layout\r
1166 \r
1167 \begin_layout Bibliography\r
1168 \begin_inset CommandInset bibitem\r
1169 LatexCommand bibitem\r
1170 key "csquotes"\r
1171 \r
1172 \end_inset\r
1173 \r
1174 The csquotes package: \r
1175 \begin_inset Flex URL\r
1176 status collapsed\r
1177 \r
1178 \begin_layout Plain Layout\r
1179 \r
1180 http://www.ctan.org/tex-archive/macros/latex/contrib/csquotes/\r
1181 \end_layout\r
1182 \r
1183 \end_inset\r
1184 \r
1185 .\r
1186 \end_layout\r
1187 \r
1188 \begin_layout Bibliography\r
1189 \begin_inset CommandInset bibitem\r
1190 LatexCommand bibitem\r
1191 key "enumitem"\r
1192 \r
1193 \end_inset\r
1194 \r
1195 The enumitem package: \r
1196 \begin_inset Flex URL\r
1197 status collapsed\r
1198 \r
1199 \begin_layout Plain Layout\r
1200 \r
1201 http://www.ctan.org/tex-archive/macros/latex/contrib/enumitem/\r
1202 \end_layout\r
1203 \r
1204 \end_inset\r
1205 \r
1206 .\r
1207 \end_layout\r
1208 \r
1209 \begin_layout Bibliography\r
1210 \begin_inset CommandInset bibitem\r
1211 LatexCommand bibitem\r
1212 key "float"\r
1213 \r
1214 \end_inset\r
1215 \r
1216 The float package: \r
1217 \begin_inset Flex URL\r
1218 status collapsed\r
1219 \r
1220 \begin_layout Plain Layout\r
1221 \r
1222 http://www.ctan.org/tex-archive/macros/latex/contrib/float/\r
1223 \end_layout\r
1224 \r
1225 \end_inset\r
1226 \r
1227 .\r
1228 \end_layout\r
1229 \r
1230 \begin_layout Bibliography\r
1231 \begin_inset CommandInset bibitem\r
1232 LatexCommand bibitem\r
1233 key "linguistlyx"\r
1234 \r
1235 \end_inset\r
1236 \r
1237 Maria Gouskova, Stacia Hartleben and Jürgen Spitzmüller: Using LyX for Linguisti\r
1238 c Papers.\r
1239  \r
1240 \begin_inset Flex URL\r
1241 status collapsed\r
1242 \r
1243 \begin_layout Plain Layout\r
1244 \r
1245 http://wiki.lyx.org/LyX/LinguistLyX\r
1246 \end_layout\r
1247 \r
1248 \end_inset\r
1249 \r
1250 .\r
1251 \end_layout\r
1252 \r
1253 \begin_layout Bibliography\r
1254 \begin_inset CommandInset bibitem\r
1255 LatexCommand bibitem\r
1256 key "preview"\r
1257 \r
1258 \end_inset\r
1259 \r
1260 The preview-latex package: \r
1261 \begin_inset Flex URL\r
1262 status collapsed\r
1263 \r
1264 \begin_layout Plain Layout\r
1265 \r
1266 http://www.ctan.org/tex-archive/macros/latex/contrib/preview/\r
1267 \end_layout\r
1268 \r
1269 \end_inset\r
1270 \r
1271 .\r
1272 \end_layout\r
1273 \r
1274 \begin_layout Bibliography\r
1275 \begin_inset CommandInset bibitem\r
1276 LatexCommand bibitem\r
1277 key "tipa"\r
1278 \r
1279 \end_inset\r
1280 \r
1281 The tipa package and fonts: \r
1282 \begin_inset Flex URL\r
1283 status collapsed\r
1284 \r
1285 \begin_layout Plain Layout\r
1286 \r
1287 http://www.ctan.org/tex-archive/fonts/tipa/\r
1288 \end_layout\r
1289 \r
1290 \end_inset\r
1291 \r
1292 .\r
1293 \end_layout\r
1294 \r
1295 \end_body\r
1296 \end_document\r