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