]> git.lyx.org Git - features.git/blob - lib/examples/linguistics.lyx
Add support for linguistic trees (via forest)
[features.git] / lib / examples / linguistics.lyx
1 #LyX 2.2 created this file. For more info see http://www.lyx.org/
2 \lyxformat 487
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_math auto
24 \font_default_family default
25 \use_non_tex_fonts false
26 \font_sc false
27 \font_osf false
28 \font_sf_scale 100
29 \font_tt_scale 100
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_package amsmath 1
50 \use_package amssymb 1
51 \use_package cancel 0
52 \use_package esint 1
53 \use_package mathdots 1
54 \use_package mathtools 0
55 \use_package mhchem 1
56 \use_package stackrel 0
57 \use_package stmaryrd 0
58 \use_package undertilde 0
59 \cite_engine basic
60 \cite_engine_type default
61 \biblio_style plain
62 \use_bibtopic false
63 \use_indices false
64 \paperorientation portrait
65 \suppress_date false
66 \justification true
67 \use_refstyle 0
68 \index Index
69 \shortcut idx
70 \color #008000
71 \end_index
72 \secnumdepth 3
73 \tocdepth 3
74 \paragraph_separation indent
75 \paragraph_indentation default
76 \quotes_language english
77 \papercolumns 1
78 \papersides 1
79 \paperpagestyle default
80 \tracking_changes false
81 \output_changes false
82 \html_math_output 0
83 \html_css_as_file 0
84 \html_be_strict false
85 \end_header
86
87 \begin_body
88
89 \begin_layout Title
90 Writing linguistic papers with \SpecialChar LyX
91
92 \end_layout
93
94 \begin_layout Author
95 Jürgen Spitzmüller
96 \begin_inset Newline newline
97 \end_inset
98
99
100 \begin_inset CommandInset href
101 LatexCommand href
102 target "spitz@lyx.org"
103 type "mailto:"
104
105 \end_inset
106
107
108 \end_layout
109
110 \begin_layout Date
111 20/04/2015
112 \end_layout
113
114 \begin_layout Abstract
115 This paper describes some features that \SpecialChar LyX
116  provides to linguists.
117  It demonstrates how to use some native support in order to produce numbered
118  examples, glosses, OT tableaux, semantic markup, structure trees, and phonetic
119  symbols (IPA).
120 \end_layout
121
122 \begin_layout Section
123 Aims and prerequisites
124 \end_layout
125
126 \begin_layout Standard
127 Basically, this paper describes the features of the 
128 \begin_inset Quotes eld
129 \end_inset
130
131 Linguistics
132 \begin_inset Quotes erd
133 \end_inset
134
135  module that ships with \SpecialChar LyX
136  as of version 1.6.0.
137  
138 \begin_inset Quotes eld
139 \end_inset
140
141 Modules
142 \begin_inset Quotes erd
143 \end_inset
144
145  are support files (introduced with \SpecialChar LyX
146  1.6.0) that can easily be selected for
147  any document.
148  In order to use the Linguistics module, go to 
149 \family sans
150 Document\SpecialChar menuseparator
151 Settings\SpecialChar menuseparator
152 Modules
153 \family default
154 , select 
155 \begin_inset Quotes eld
156 \end_inset
157
158 Linguistics
159 \begin_inset Quotes erd
160 \end_inset
161
162  from the list of available modules, and hit the 
163 \family sans
164 Add
165 \family default
166  button to select it for your document (as already done for this document).
167 \end_layout
168
169 \begin_layout Standard
170 You should be able to use the module with any document class (please inform
171  me, if not).
172  However, in order to use all the features, you need to have the following
173  \SpecialChar LaTeX
174  packages installed:
175 \end_layout
176
177 \begin_layout Enumerate
178
179 \emph on
180 covington.sty
181 \emph default
182  
183 \begin_inset CommandInset citation
184 LatexCommand cite
185 key "covington"
186
187 \end_inset
188
189 : This is the base package used for numbered examples and glosses.
190 \begin_inset Separator parbreak
191 \end_inset
192
193
194 \end_layout
195
196 \begin_deeper
197 \begin_layout Itemize
198 Installed on your system: 
199 \begin_inset Info
200 type  "package"
201 arg   "covington"
202 \end_inset
203
204 .
205 \end_layout
206
207 \end_deeper
208 \begin_layout Enumerate
209
210 \emph on
211 enumitem.sty
212 \emph default
213  
214 \begin_inset CommandInset citation
215 LatexCommand cite
216 key "enumitem"
217
218 \end_inset
219
220 : This package is used for the Subexamples style.
221  It is generally useful to alter the appearance of lists (such as 
222 \emph on
223 enumerate
224 \emph default
225
226 \emph on
227 itemize
228 \emph default
229
230 \emph on
231 description
232 \emph default
233 ).
234 \begin_inset Separator parbreak
235 \end_inset
236
237
238 \end_layout
239
240 \begin_deeper
241 \begin_layout Itemize
242 Installed on your system: 
243 \begin_inset Info
244 type  "package"
245 arg   "enumitem"
246 \end_inset
247
248 .
249 \end_layout
250
251 \end_deeper
252 \begin_layout Enumerate
253
254 \emph on
255 csquotes.sty
256 \emph default
257  
258 \begin_inset CommandInset citation
259 LatexCommand cite
260 key "csquotes"
261
262 \end_inset
263
264 : Needed for the 
265 \emph on
266 Meaning
267 \emph default
268  character style.
269  The package provides context sensitive quotation marks, depending on the
270  language in use.
271 \begin_inset Separator parbreak
272 \end_inset
273
274
275 \end_layout
276
277 \begin_deeper
278 \begin_layout Itemize
279 Installed on your system: 
280 \begin_inset Info
281 type  "package"
282 arg   "csquotes"
283 \end_inset
284
285 .
286 \end_layout
287
288 \end_deeper
289 \begin_layout Enumerate
290
291 \emph on
292 float.sty
293 \emph default
294  
295 \begin_inset CommandInset citation
296 LatexCommand cite
297 key "float"
298
299 \end_inset
300
301 : Needed for the OT tableaux floats and list of floats.
302  This package should be part of any \SpecialChar LaTeX
303  distribution.
304 \begin_inset Separator parbreak
305 \end_inset
306
307
308 \end_layout
309
310 \begin_deeper
311 \begin_layout Itemize
312 Installed on your system: 
313 \begin_inset Info
314 type  "package"
315 arg   "float"
316 \end_inset
317
318 .
319 \end_layout
320
321 \end_deeper
322 \begin_layout Enumerate
323
324 \emph on
325 forest.sty
326 \emph default
327  
328 \begin_inset CommandInset citation
329 LatexCommand cite
330 key "forest"
331
332 \end_inset
333
334 : This package is used to generate structure trees.
335 \begin_inset Separator parbreak
336 \end_inset
337
338
339 \end_layout
340
341 \begin_deeper
342 \begin_layout Itemize
343 Installed on your system: 
344 \begin_inset Info
345 type  "package"
346 arg   "forest"
347 \end_inset
348
349 .
350 \end_layout
351
352 \end_deeper
353 \begin_layout Section
354 Numbered examples
355 \end_layout
356
357 \begin_layout Standard
358 Numbered examples are inserted via the layout drop-down box in the toolbar.
359  There are three variants:
360 \end_layout
361
362 \begin_layout Numbered Example (multiline)
363 This is a multiline example [Style 
364 \emph on
365 Numbered Example (multiline)
366 \emph default
367 ]
368 \end_layout
369
370 \begin_layout Numbered Example (multiline)
371 it can have several paragraphs
372 \end_layout
373
374 \begin_layout Numbered Examples (consecutive)
375 This is a single example
376 \begin_inset CommandInset label
377 LatexCommand label
378 name "exa:single-example"
379
380 \end_inset
381
382  [Style 
383 \emph on
384 Numbered Example (consecutive)
385 \emph default
386 ]
387 \end_layout
388
389 \begin_layout Numbered Examples (consecutive)
390 Consecutive single examples get their own numbers
391 \end_layout
392
393 \begin_layout Subexample
394 This is a subexample
395 \begin_inset CommandInset label
396 LatexCommand label
397 name "sub:subexample"
398
399 \end_inset
400
401  [Style 
402 \emph on
403 Subexample
404 \emph default
405 ]
406 \end_layout
407
408 \begin_layout Subexample
409 And another one
410 \end_layout
411
412 \begin_layout Standard
413 References to examples are produced as usual: insert a label to the example
414  and a cross-reference via 
415 \family sans
416 Insert\SpecialChar menuseparator
417 Cross references
418 \family default
419 .
420  We refer here, just for the sake of demonstrating this, to 
421 \begin_inset CommandInset ref
422 LatexCommand ref
423 reference "exa:single-example"
424
425 \end_inset
426
427  and 
428 \begin_inset CommandInset ref
429 LatexCommand ref
430 reference "sub:subexample"
431
432 \end_inset
433
434 .
435 \end_layout
436
437 \begin_layout Standard
438 If you want to modify the numbering of an individual example, you can use
439  
440 \family sans
441 Insert\SpecialChar menuseparator
442 Custom Numbering 
443 \family default
444 .
445 \end_layout
446
447 \begin_layout Section
448 Glosses
449 \end_layout
450
451 \begin_layout Standard
452 The Linguistics module provides two kinds of glosses, which can be inserted
453  via 
454 \family sans
455 Insert\SpecialChar menuseparator
456 Custom Insets
457 \family default
458 : The standard 
459 \emph on
460 Custom:Glosse
461 \emph default
462  provides a gloss that consists of two lines and a translation, the 
463 \emph on
464 Custom:Tri-Glosse
465 \emph default
466  insets consists of three lines and a translation.
467  Each translation line might span multiple lines in the output, i.
468 \begin_inset space \thinspace{}
469 \end_inset
470
471 e., the paragraphs are automatically broken if they exceed the text width.
472  Note that the translation line is mandatory and must be preceded by the
473  command 
474 \family typewriter
475
476 \backslash
477 glt
478 \family default
479  which must be inserted verbatim in the gloss inset (\SpecialChar TeX
480  mode is not needed,
481  and in fact not even possible).
482 \end_layout
483
484 \begin_layout Standard
485 Here is a simple example:
486 \end_layout
487
488 \begin_layout Standard
489 \begin_inset Flex Glosse
490 status open
491
492 \begin_layout Plain Layout
493
494 C'est un exemple simple
495 \end_layout
496
497 \begin_layout Plain Layout
498
499 {This is} an example simple
500 \end_layout
501
502 \begin_layout Plain Layout
503
504
505 \backslash
506 glt This is a simple example
507 \end_layout
508
509 \end_inset
510
511
512 \end_layout
513
514 \begin_layout Standard
515 \noindent
516 Note how the braces hold together multi-word expressions.
517 \end_layout
518
519 \begin_layout Standard
520 In the same vein, we can make a three-line gloss:
521 \end_layout
522
523 \begin_layout Standard
524 \begin_inset Flex Tri-Glosse
525 status open
526
527 \begin_layout Plain Layout
528
529 C'est un exemple simple
530 \end_layout
531
532 \begin_layout Plain Layout
533
534 {Das ist} ein Beispiel einfach
535 \end_layout
536
537 \begin_layout Plain Layout
538
539 {This is} an example simple
540 \end_layout
541
542 \begin_layout Plain Layout
543
544
545 \backslash
546 glt This is a simple example
547 \end_layout
548
549 \end_inset
550
551
552 \end_layout
553
554 \begin_layout Standard
555 \noindent
556 If you want to have numbered glosses, you can simply insert the gloss inset
557  to a numbered examples paragraph, as follows:
558 \end_layout
559
560 \begin_layout Numbered Examples (consecutive)
561 \begin_inset Flex Tri-Glosse
562 status open
563
564 \begin_layout Plain Layout
565
566 Mein Luftkissenfahrzeug ist voller Aale
567 \end_layout
568
569 \begin_layout Plain Layout
570
571 My skeertuig is vol palings
572 \end_layout
573
574 \begin_layout Plain Layout
575
576 My hovercraft is {full of} eels
577 \end_layout
578
579 \begin_layout Plain Layout
580
581
582 \backslash
583 glt Do you have matches?
584 \end_layout
585
586 \end_inset
587
588
589 \end_layout
590
591 \begin_layout Subsection*
592 Shortcomings of \SpecialChar LyX
593 's glosses
594 \end_layout
595
596 \begin_layout Standard
597 \SpecialChar LyX
598 's glosse support is rather basic, and thus has some shortcomings, which
599  might be addressed in further releases:
600 \end_layout
601
602 \begin_layout Enumerate
603 Font changes are not allowed in glosses.
604  Hence, the 
605 \family sans
606 Character Style
607 \family default
608  dialog is disabled.
609  Since glosses are not hyphenated, an explicit language setting in the \SpecialChar LaTeX
610
611  output is not required (in fact, it would break the output, since covington
612  does not support it).
613  However, you still might want to set the language for proper spell checking.
614  Currently, you have to do this as follows: select the text, and then issue
615  
616 \begin_inset Info
617 type  "shortcut"
618 arg   "command-execute"
619 \end_inset
620
621  
622 \family sans
623 language <lang>
624 \family default
625 , where 
626 \family sans
627 <lang>
628 \family default
629  should be replaced by the respective language, e.
630 \begin_inset space \thinspace{}
631 \end_inset
632
633 g.
634  
635 \family sans
636 english
637 \family default
638
639 \family sans
640 french
641 \family default
642  or 
643 \family sans
644 ngerman
645 \family default
646 .
647  In the \SpecialChar LaTeX
648  output, this setting will be suppressed.
649 \end_layout
650
651 \begin_layout Enumerate
652 Since the content of glosses is passed verbatim to \SpecialChar LaTeX
653 , \SpecialChar LyX
654  does not adapt the
655  encoding to the contents.
656  That means that if you use characters in the glosse which are not covered
657  by the current encoding, you will run into an error message.
658  Here are the possible workarounds to this problem:
659 \begin_inset Separator parbreak
660 \end_inset
661
662
663 \end_layout
664
665 \begin_deeper
666 \begin_layout Itemize
667 Either enter the text outside the glosse, open 
668 \family sans
669 View\SpecialChar menuseparator
670 View Source
671 \family default
672  and copy the \SpecialChar LaTeX
673  code into the glosse,
674 \end_layout
675
676 \begin_layout Itemize
677 or mark the whole glosse (from outside) and set the appropriate language
678  via 
679 \family sans
680 Edit\SpecialChar menuseparator
681 Language\SpecialChar menuseparator
682 More Languages\SpecialChar ldots
683
684 \family default
685 ,
686 \end_layout
687
688 \begin_layout Itemize
689 or set the document encoding to 
690 \emph on
691 Unicode (utf8)
692 \emph default
693  via 
694 \family sans
695 Document\SpecialChar menuseparator
696 Settings\SpecialChar ldots
697 \SpecialChar menuseparator
698 Language
699 \family default
700 ,
701 \end_layout
702
703 \begin_layout Itemize
704 or check 
705 \emph on
706 Use non-\SpecialChar TeX
707  fonts (via Xe\SpecialChar TeX
708 /Lua\SpecialChar TeX
709 )
710 \emph default
711  in 
712 \family sans
713 Document\SpecialChar menuseparator
714 Settings\SpecialChar ldots
715 \SpecialChar menuseparator
716 Fonts
717 \family default
718 .
719 \end_layout
720
721 \end_deeper
722 \begin_layout Enumerate
723 Page breaks can occur within glosses, which is of course not desirable.
724  A workaround is to wrap glosses into boxes (via 
725 \family sans
726 Insert\SpecialChar menuseparator
727 Box\SpecialChar menuseparator
728 Frameless
729 \family default
730 ).
731  If you want to automate this for all glosses, you can copy the following
732  code to 
733 \family sans
734 Document\SpecialChar menuseparator
735 Settings\SpecialChar menuseparator
736 \SpecialChar LaTeX
737  Preamble
738 \family default
739 :
740 \begin_inset Separator parbreak
741 \end_inset
742
743
744 \end_layout
745
746 \begin_deeper
747 \begin_layout LyX-Code
748 \begin_inset listings
749 lstparams "basicstyle={\footnotesize},language={[LaTeX]TeX}"
750 inline false
751 status open
752
753 \begin_layout Plain Layout
754
755 % Do not break pages at two-line glosses
756 \end_layout
757
758 \begin_layout Plain Layout
759
760
761 \backslash
762 AtBeginDocument{%
763 \end_layout
764
765 \begin_layout Plain Layout
766
767
768 \backslash
769 @ifundefined{linggloss}{}{%
770 \end_layout
771
772 \begin_layout Plain Layout
773
774
775 \backslash
776 renewenvironment{linggloss}[1]{%
777 \end_layout
778
779 \begin_layout Plain Layout
780
781
782 \backslash
783 begin{minipage}{.7
784 \backslash
785 textwidth}
786 \end_layout
787
788 \begin_layout Plain Layout
789
790
791 \backslash
792 gll #1}{
793 \backslash
794 glend
795 \backslash
796 end{minipage}}}
797 \end_layout
798
799 \begin_layout Plain Layout
800
801 }
802 \end_layout
803
804 \end_inset
805
806
807 \end_layout
808
809 \begin_layout LyX-Code
810 \begin_inset listings
811 lstparams "basicstyle={\footnotesize},language={[LaTeX]TeX}"
812 inline false
813 status open
814
815 \begin_layout Plain Layout
816
817 % Do not break pages at three-line glosses
818 \end_layout
819
820 \begin_layout Plain Layout
821
822
823 \backslash
824 AtBeginDocument{%
825 \end_layout
826
827 \begin_layout Plain Layout
828
829
830 \backslash
831 @ifundefined{lingglosss}{}{%
832 \end_layout
833
834 \begin_layout Plain Layout
835
836
837 \backslash
838 renewenvironment{linggloss}[1]{%
839 \end_layout
840
841 \begin_layout Plain Layout
842
843
844 \backslash
845 begin{minipage}{.7
846 \backslash
847 textwidth}
848 \end_layout
849
850 \begin_layout Plain Layout
851
852
853 \backslash
854 glll #1}{
855 \backslash
856 glend
857 \backslash
858 end{minipage}}}
859 \end_layout
860
861 \begin_layout Plain Layout
862
863 }
864 \end_layout
865
866 \end_inset
867
868
869 \end_layout
870
871 \begin_layout Standard
872 You might have to adapt the minipage width (
873 \family typewriter
874 .7
875 \backslash
876 textwidth
877 \family default
878  in the example code) to fit your actual page width.
879 \end_layout
880
881 \end_deeper
882 \begin_layout Section
883 Optimality Theory Tableaux
884 \end_layout
885
886 \begin_layout Standard
887 OT tableaux itself can of course simply be inserted as ordinary tables (for
888  specific features such as dashed lines and shaded cells, cf.
889  the 
890 \emph on
891 EmbeddedObjects
892 \emph default
893  manual).
894  However, you might want to have the tableaux numbered throughout the document,
895  and you might want to have a 
896 \emph on
897 List of Tableaux
898 \emph default
899 , similar to the 
900 \emph on
901 List of Tables
902 \emph default
903 .
904  
905 \end_layout
906
907 \begin_layout Standard
908 The Linguistics module provides support for both.
909  In 
910 \family sans
911 Insert\SpecialChar menuseparator
912 Floats
913 \family default
914 , you'll find a Tableaux float:
915 \end_layout
916
917 \begin_layout Standard
918 \begin_inset Float tableau
919 placement h
920 wide false
921 sideways false
922 status open
923
924 \begin_layout Plain Layout
925 \align center
926 \begin_inset Tabular
927 <lyxtabular version="3" rows="5" columns="5">
928 <features tabularvalignment="middle">
929 <column alignment="right" valignment="top">
930 <column alignment="center" valignment="top">
931 <column alignment="center" valignment="top">
932 <column alignment="center" valignment="top" special="|c">
933 <column alignment="center" valignment="top">
934 <row>
935 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
936 \begin_inset Text
937
938 \begin_layout Plain Layout
939 /atikap/
940 \end_layout
941
942 \end_inset
943 </cell>
944 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
945 \begin_inset Text
946
947 \begin_layout Plain Layout
948
949 \noun on
950 Onset
951 \end_layout
952
953 \end_inset
954 </cell>
955 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
956 \begin_inset Text
957
958 \begin_layout Plain Layout
959
960 \noun on
961 NoCoda
962 \end_layout
963
964 \end_inset
965 </cell>
966 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
967 \begin_inset Text
968
969 \begin_layout Plain Layout
970
971 \noun on
972 Dep
973 \end_layout
974
975 \end_inset
976 </cell>
977 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
978 \begin_inset Text
979
980 \begin_layout Plain Layout
981
982 \noun on
983 Max
984 \end_layout
985
986 \end_inset
987 </cell>
988 </row>
989 <row>
990 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
991 \begin_inset Text
992
993 \begin_layout Plain Layout
994 \begin_inset Formula $\mbox{☞}$
995 \end_inset
996
997  
998 \begin_inset Formula $\mbox{\textipa{P}}$
999 \end_inset
1000
1001 a.ti.ka
1002 \end_layout
1003
1004 \end_inset
1005 </cell>
1006 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1007 \begin_inset Text
1008
1009 \begin_layout Plain Layout
1010
1011 \end_layout
1012
1013 \end_inset
1014 </cell>
1015 <cell alignment="center" valignment="top" topline="true" usebox="none">
1016 \begin_inset Text
1017
1018 \begin_layout Plain Layout
1019
1020 \end_layout
1021
1022 \end_inset
1023 </cell>
1024 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1025 \begin_inset Text
1026
1027 \begin_layout Plain Layout
1028 *
1029 \end_layout
1030
1031 \end_inset
1032 </cell>
1033 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
1034 \begin_inset Text
1035
1036 \begin_layout Plain Layout
1037 *
1038 \end_layout
1039
1040 \end_inset
1041 </cell>
1042 </row>
1043 <row>
1044 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1045 \begin_inset Text
1046
1047 \begin_layout Plain Layout
1048 a.ti.ka
1049 \end_layout
1050
1051 \end_inset
1052 </cell>
1053 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1054 \begin_inset Text
1055
1056 \begin_layout Plain Layout
1057 *!
1058 \end_layout
1059
1060 \end_inset
1061 </cell>
1062 <cell alignment="center" valignment="top" topline="true" usebox="none">
1063 \begin_inset Text
1064
1065 \begin_layout Plain Layout
1066
1067 \end_layout
1068
1069 \end_inset
1070 </cell>
1071 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1072 \begin_inset Text
1073
1074 \begin_layout Plain Layout
1075
1076 \end_layout
1077
1078 \end_inset
1079 </cell>
1080 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
1081 \begin_inset Text
1082
1083 \begin_layout Plain Layout
1084 *
1085 \end_layout
1086
1087 \end_inset
1088 </cell>
1089 </row>
1090 <row>
1091 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1092 \begin_inset Text
1093
1094 \begin_layout Plain Layout
1095 \begin_inset Formula $\mbox{\textipa{P}}$
1096 \end_inset
1097
1098 a.ti.kap
1099 \end_layout
1100
1101 \end_inset
1102 </cell>
1103 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1104 \begin_inset Text
1105
1106 \begin_layout Plain Layout
1107
1108 \end_layout
1109
1110 \end_inset
1111 </cell>
1112 <cell alignment="center" valignment="top" topline="true" usebox="none">
1113 \begin_inset Text
1114
1115 \begin_layout Plain Layout
1116 *!
1117 \end_layout
1118
1119 \end_inset
1120 </cell>
1121 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
1122 \begin_inset Text
1123
1124 \begin_layout Plain Layout
1125 *
1126 \end_layout
1127
1128 \end_inset
1129 </cell>
1130 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
1131 \begin_inset Text
1132
1133 \begin_layout Plain Layout
1134
1135 \end_layout
1136
1137 \end_inset
1138 </cell>
1139 </row>
1140 <row>
1141 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1142 \begin_inset Text
1143
1144 \begin_layout Plain Layout
1145 a.ti.kap
1146 \end_layout
1147
1148 \end_inset
1149 </cell>
1150 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1151 \begin_inset Text
1152
1153 \begin_layout Plain Layout
1154 *!
1155 \end_layout
1156
1157 \end_inset
1158 </cell>
1159 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
1160 \begin_inset Text
1161
1162 \begin_layout Plain Layout
1163 *!
1164 \end_layout
1165
1166 \end_inset
1167 </cell>
1168 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
1169 \begin_inset Text
1170
1171 \begin_layout Plain Layout
1172
1173 \end_layout
1174
1175 \end_inset
1176 </cell>
1177 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
1178 \begin_inset Text
1179
1180 \begin_layout Plain Layout
1181
1182 \end_layout
1183
1184 \end_inset
1185 </cell>
1186 </row>
1187 </lyxtabular>
1188
1189 \end_inset
1190
1191
1192 \end_layout
1193
1194 \begin_layout Plain Layout
1195 \begin_inset Caption Standard
1196
1197 \begin_layout Plain Layout
1198 Example Tableau
1199 \end_layout
1200
1201 \end_inset
1202
1203
1204 \end_layout
1205
1206 \end_inset
1207
1208
1209 \end_layout
1210
1211 \begin_layout Standard
1212 Note that by default, the caption is always placed below the tableaux in
1213  the output, no matter where you put it in the \SpecialChar LyX
1214  window.
1215  To get the Tableaux captions on top, put the following code in 
1216 \family sans
1217 Document\SpecialChar menuseparator
1218 Settings\SpecialChar menuseparator
1219 Preamble
1220 \family default
1221 :
1222 \end_layout
1223
1224 \begin_layout LyX-Code
1225
1226 \backslash
1227 floatstyle{plaintop}
1228 \end_layout
1229
1230 \begin_layout LyX-Code
1231
1232 \backslash
1233 restylefloat{tableau}
1234 \end_layout
1235
1236 \begin_layout Standard
1237 If your using a KOMA class, use the following instead for better spacing:
1238 \end_layout
1239
1240 \begin_layout LyX-Code
1241
1242 \backslash
1243 floatstyle{komaabove}
1244 \end_layout
1245
1246 \begin_layout LyX-Code
1247
1248 \backslash
1249 restylefloat{tableau}
1250 \end_layout
1251
1252 \begin_layout Standard
1253 A List of Tableaux inset can be found in 
1254 \family sans
1255 Insert\SpecialChar menuseparator
1256 Lists & TOC
1257 \family default
1258 .
1259  Even though this usually is placed at the beginning or the end of the document,
1260  we do this here for exemplification purposes:
1261 \end_layout
1262
1263 \begin_layout Standard
1264 \begin_inset FloatList tableau
1265
1266 \end_inset
1267
1268
1269 \end_layout
1270
1271 \begin_layout Section
1272 Semantic Markup (Character Styles)
1273 \end_layout
1274
1275 \begin_layout Standard
1276 The Linguistics module comes with some character styles that are common
1277  in linguistics:
1278 \end_layout
1279
1280 \begin_layout Enumerate
1281 Concept (in small caps): 
1282 \begin_inset Flex Concepts
1283 status collapsed
1284
1285 \begin_layout Plain Layout
1286 concept
1287 \end_layout
1288
1289 \end_inset
1290
1291  
1292 \end_layout
1293
1294 \begin_layout Enumerate
1295 Expression (emphasized): 
1296 \begin_inset Flex Expression
1297 status collapsed
1298
1299 \begin_layout Plain Layout
1300 expression
1301 \end_layout
1302
1303 \end_inset
1304
1305
1306 \end_layout
1307
1308 \begin_layout Enumerate
1309 Meaning (in single quotes): 
1310 \begin_inset Flex Meaning
1311 status collapsed
1312
1313 \begin_layout Plain Layout
1314 meaning
1315 \end_layout
1316
1317 \end_inset
1318
1319
1320 \end_layout
1321
1322 \begin_layout Standard
1323 You can insert the character styles via the 
1324 \family sans
1325 Edit\SpecialChar menuseparator
1326 Text Style
1327 \family default
1328  submenu.
1329  If you need to change the appearance of these styles later, you can redefine
1330  them in the preamble.
1331  To make expressions bold, for instance, insert:
1332 \end_layout
1333
1334 \begin_layout LyX-Code
1335
1336 \backslash
1337 renewcommand
1338 \backslash
1339 lingexpr[1]{
1340 \backslash
1341 textbf{#1}}
1342 \end_layout
1343
1344 \begin_layout Standard
1345 Similarly, concept (
1346 \family typewriter
1347
1348 \backslash
1349 lingconcept
1350 \family default
1351 ) and meaning (
1352 \family typewriter
1353
1354 \backslash
1355 lingmeaning
1356 \family default
1357 ) can be modified.
1358 \end_layout
1359
1360 \begin_layout Section
1361 Linguistic structure trees
1362 \end_layout
1363
1364 \begin_layout Standard
1365 Meanwhile, many \SpecialChar LaTeX
1366  are available which help producing structure trees.
1367  \SpecialChar LyX
1368  supports the 
1369 \family sans
1370 forest
1371 \family default
1372  package, which combines high flexibility and mightiness with a comfortable
1373  input syntax.
1374  The Linguistics module provides a Structure Tree inset, which can be inserted
1375  via 
1376 \family sans
1377 Insert\SpecialChar menuseparator
1378 Custom Insets
1379 \family default
1380 .
1381  Within this inset, you can insert the bracket notation used by 
1382 \family sans
1383 forest
1384 \family default
1385  (and also by other similar packages such as 
1386 \family sans
1387 qtree
1388 \family default
1389 ).
1390 \end_layout
1391
1392 \begin_layout Standard
1393 Here is a simple example:
1394 \end_layout
1395
1396 \begin_layout Standard
1397 \begin_inset Flex Structure Tree
1398 status open
1399
1400 \begin_layout Plain Layout
1401 [VP [DP[John]] [V' [V[sent]] [DP[Mary]] [DP[D[a]][NP[letter]]] ] ]
1402 \end_layout
1403
1404 \end_inset
1405
1406
1407 \end_layout
1408
1409 \begin_layout Standard
1410 \noindent
1411 If you view the PDF output, you will see that the input
1412 \end_layout
1413
1414 \begin_layout Quote
1415
1416 \family typewriter
1417 \size small
1418 [VP [DP[John]] [V' [V[sent]] [DP[Mary]] [DP[D[a]][NP[letter]]]]]
1419 \end_layout
1420
1421 \begin_layout Standard
1422 expands to a real structure tree.
1423  To view the result within the \SpecialChar LyX
1424  workarea, you can simply embed the Structure
1425  Tree inset into a Preview inset (
1426 \family sans
1427 Insert\SpecialChar menuseparator
1428 Preview
1429 \family default
1430 ).
1431  If instant preview is correctly installed and activated, you should see
1432  the tree immediately (just click on the image in order to edit):
1433 \end_layout
1434
1435 \begin_layout Standard
1436 \begin_inset Preview
1437
1438 \begin_layout Standard
1439 \begin_inset Flex Structure Tree
1440 status open
1441
1442 \begin_layout Plain Layout
1443 [VP [DP[Mary]] [V' [V[sent]] [DP[John]] [DP[D[a]][NP[response]]] ] ]
1444 \end_layout
1445
1446 \end_inset
1447
1448
1449 \end_layout
1450
1451 \end_inset
1452
1453
1454 \end_layout
1455
1456 \begin_layout Standard
1457 \noindent
1458 Roofs can be easily generated by means of the 
1459 \begin_inset Quotes eld
1460 \end_inset
1461
1462 triangle
1463 \begin_inset Quotes erd
1464 \end_inset
1465
1466  option (note that the comma has special meaning, as it marks options):
1467 \end_layout
1468
1469 \begin_layout Standard
1470 \begin_inset Flex Structure Tree
1471 status open
1472
1473 \begin_layout Plain Layout
1474 [VP [DP[John]] [V' [V[sent]] [DP[Mary]] [DP[another letter, triangle]] ]
1475  ]
1476 \end_layout
1477
1478 \end_inset
1479
1480
1481 \end_layout
1482
1483 \begin_layout Standard
1484 \noindent
1485 In order to align nodes of the tree more elegantly, use the 
1486 \begin_inset Quotes eld
1487 \end_inset
1488
1489 tier
1490 \begin_inset Quotes erd
1491 \end_inset
1492
1493  option.
1494  All nodes which have the same 
1495 \begin_inset Quotes eld
1496 \end_inset
1497
1498 tier
1499 \begin_inset Quotes erd
1500 \end_inset
1501
1502  allocated get aligned.
1503  Here is an example:
1504 \end_layout
1505
1506 \begin_layout Standard
1507 \begin_inset Flex Structure Tree
1508 status open
1509
1510 \begin_layout Plain Layout
1511 [VP [DP[John,tier=word]] [V' [V[sent,tier=word]] [DP[Mary,tier=word]] [DP[D[a,ti
1512 er=word]][NP[letter,tier=word]]] ] ]
1513 \end_layout
1514
1515 \end_inset
1516
1517
1518 \end_layout
1519
1520 \begin_layout Standard
1521 \noindent
1522 The package supports many additional features, such as movement arrows and
1523  decorations, that cannot documented here (please refer to the detailed
1524  package documentation 
1525 \begin_inset CommandInset citation
1526 LatexCommand cite
1527 key "forest"
1528
1529 \end_inset
1530
1531 ).
1532 \end_layout
1533
1534 \begin_layout Section
1535 Phonetic Symbols (IPA)
1536 \end_layout
1537
1538 \begin_layout Standard
1539 You do not need the Linguistics module to insert phonetic symbols, this
1540  is a base functionality of \SpecialChar LyX
1541 .
1542  However, since this is frequently used by linguists, we will describe it
1543  (briefly) in this manual nevertheless.
1544 \end_layout
1545
1546 \begin_layout Standard
1547 If you use traditional \SpecialChar LaTeX
1548  or PDF\SpecialChar LaTeX
1549 , a prerequisite to use \SpecialChar LyX
1550 's IPA support is
1551  the \SpecialChar LaTeX
1552  package 
1553 \emph on
1554 tipa
1555 \emph default
1556  
1557 \begin_inset CommandInset citation
1558 LatexCommand cite
1559 key "tipa"
1560
1561 \end_inset
1562
1563 .
1564 \begin_inset Foot
1565 status collapsed
1566
1567 \begin_layout Plain Layout
1568 If you use Xe\SpecialChar TeX
1569  or Lua\SpecialChar TeX
1570  (i.
1571 \begin_inset space \thinspace{}
1572 \end_inset
1573
1574 e., if you have clicked 
1575 \begin_inset Quotes eld
1576 \end_inset
1577
1578 Use non-\SpecialChar TeX
1579  fonts
1580 \begin_inset Quotes erd
1581 \end_inset
1582
1583  in 
1584 \family sans
1585 Document\SpecialChar menuseparator
1586 Settings\SpecialChar menuseparator
1587 Fonts
1588 \family default
1589 ), no extra package is needed.
1590 \end_layout
1591
1592 \end_inset
1593
1594  Additionally, if you want to have instant preview, you should have the
1595  
1596 \emph on
1597 preview-latex
1598 \emph default
1599  package 
1600 \begin_inset CommandInset citation
1601 LatexCommand cite
1602 key "preview"
1603
1604 \end_inset
1605
1606  installed.
1607 \end_layout
1608
1609 \begin_layout Standard
1610 The recommended way to insert phonetic symbols is via 
1611 \family sans
1612 Insert\SpecialChar menuseparator
1613 Special characters\SpecialChar menuseparator
1614 Phonetic symbols.
1615  
1616 \family default
1617 This gives you an input box (
1618 \begin_inset Quotes eld
1619 \end_inset
1620
1621 inset
1622 \begin_inset Quotes erd
1623 \end_inset
1624
1625  in \SpecialChar LyX
1626  speak), where you can insert the symbols.
1627  Note that this box can be used both for the insertion of small snippets
1628  (inline) and multiple paragraphs of phonetic notation.
1629  While the cursor is inside the box, a toolbar opens, which provides the
1630  basic set of phonetic symbols (sorted by the IPA categories).
1631  Each of the toolbar's panels can be torn off the bar by clicking on the
1632  dashed line on its top.
1633  This way, you can insert most symbols quite comfortably: 
1634 \begin_inset IPA
1635
1636 \begin_layout Standard
1637 [l
1638 \begin_inset IPADeco bottomtiebar
1639 status open
1640
1641 \begin_layout Plain Layout
1642 ai
1643 \end_layout
1644
1645 \end_inset
1646
1647 k ðɪs]
1648 \end_layout
1649
1650 \end_inset
1651
1652 .
1653 \begin_inset Foot
1654 status collapsed
1655
1656 \begin_layout Plain Layout
1657 Note that, if you want to insert diacritics, the diacritics are inserted
1658  
1659 \emph on
1660 after
1661 \emph default
1662  the base character.
1663  That is to say, for 
1664 \begin_inset IPA
1665
1666 \begin_layout Standard
1667 [d̥]
1668 \end_layout
1669
1670 \end_inset
1671
1672  you need to insert 
1673 \family typewriter
1674 <d>
1675 \family default
1676  and then the 
1677 \family typewriter
1678 <voiceless>
1679 \family default
1680  subring diacritic from the toolbar immediately after the 
1681 \family typewriter
1682 <d>
1683 \family default
1684 .
1685  If you need a diacritic alone, you can achieve this by inserting a blank
1686  and then the diacritic, as in 
1687 \begin_inset IPA
1688
1689 \begin_layout Standard
1690  ̼
1691 \end_layout
1692
1693 \end_inset
1694
1695  (
1696 \family typewriter
1697 =
1698 \begin_inset space ~
1699 \end_inset
1700
1701 <space>+<Lingolabial from the IPA toolbar>
1702 \family default
1703 ).
1704 \end_layout
1705
1706 \end_inset
1707
1708  Given that
1709 \emph on
1710  preview-latex
1711 \emph default
1712  is installed and you have switched on instant preview (in
1713 \family sans
1714  Tools\SpecialChar menuseparator
1715 Preferences\SpecialChar menuseparator
1716 Graphi
1717 \family default
1718 cs), you'll get a nice WYSIWYG preview as soon as the cursor leaves the
1719  box.
1720  Alternatively to the toolbar, you can also insert the symbols directly
1721  via the shortcut notation which is described in the 
1722 \emph on
1723 tipa
1724 \emph default
1725  manual: here's 
1726 \begin_inset IPA
1727
1728 \begin_layout Standard
1729
1730 \family roman
1731 \series medium
1732 \shape up
1733 \size normal
1734 \emph off
1735 \bar no
1736 \strikeout off
1737 \uuline off
1738 \uwave off
1739 \noun off
1740 \color none
1741 [@n Ig"zA:mpl]
1742 \end_layout
1743
1744 \end_inset
1745
1746  (
1747 \emph on
1748 tipa
1749 \emph default
1750  shortcut notation: 
1751 \family typewriter
1752 [@n Ig"zA:mpl
1753 \family default
1754 ]).
1755  Furthermore, you can insert symbols via 
1756 \family sans
1757 Insert\SpecialChar menuseparator
1758 Special characters\SpecialChar menuseparator
1759 Symbols\SpecialChar ldots
1760
1761 \family default
1762  (which might be useful for symbols that are not yet covered by the toolbar),
1763  or you can simply paste unicode-encoded text (e.
1764 \begin_inset space \thinspace{}
1765 \end_inset
1766
1767 g., from other applications) into the box.
1768  The output should be equal, no matter what input method you chose.
1769 \end_layout
1770
1771 \begin_layout Standard
1772 Note that you can also insert or paste most IPA glyphs outside the specific
1773  IPA input box: [əz ʃəʊn hɪə].
1774  In the output, they will be automatically transformed into the correct
1775  
1776 \emph on
1777 tipa
1778 \emph default
1779  macro (if not, please inform us).
1780  However, please note that this method produces inferior output quality,
1781  since it will most likely result in a mix of fonts (the latin characters
1782  are taken from the base document font, the IPA glyphs from the IPA font).
1783  Within the IPA input box, on the other hand, the IPA font is used for all
1784  characters.
1785  So unless you only need to insert single IPA characters, using the IPA
1786  input box is highly recommended.
1787 \end_layout
1788
1789 \begin_layout Section
1790 Further information
1791 \end_layout
1792
1793 \begin_layout Standard
1794 For a detailed description of specific possibilities for linguists, please
1795  refer to the Linguist\SpecialChar LyX
1796  page on the \SpecialChar LyX
1797  wiki 
1798 \begin_inset CommandInset citation
1799 LatexCommand cite
1800 key "linguistlyx"
1801
1802 \end_inset
1803
1804  (feel free to enter your own hints there).
1805 \end_layout
1806
1807 \begin_layout Bibliography
1808 \begin_inset CommandInset bibitem
1809 LatexCommand bibitem
1810 key "covington"
1811
1812 \end_inset
1813
1814 The covington package: 
1815 \begin_inset Flex URL
1816 status collapsed
1817
1818 \begin_layout Plain Layout
1819
1820 http://www.ctan.org/tex-archive/macros/latex/contrib/covington/
1821 \end_layout
1822
1823 \end_inset
1824
1825 .
1826 \end_layout
1827
1828 \begin_layout Bibliography
1829 \begin_inset CommandInset bibitem
1830 LatexCommand bibitem
1831 key "csquotes"
1832
1833 \end_inset
1834
1835 The csquotes package: 
1836 \begin_inset Flex URL
1837 status collapsed
1838
1839 \begin_layout Plain Layout
1840
1841 http://www.ctan.org/tex-archive/macros/latex/contrib/csquotes/
1842 \end_layout
1843
1844 \end_inset
1845
1846 .
1847 \end_layout
1848
1849 \begin_layout Bibliography
1850 \begin_inset CommandInset bibitem
1851 LatexCommand bibitem
1852 key "enumitem"
1853
1854 \end_inset
1855
1856 The enumitem package: 
1857 \begin_inset Flex URL
1858 status collapsed
1859
1860 \begin_layout Plain Layout
1861
1862 http://www.ctan.org/tex-archive/macros/latex/contrib/enumitem/
1863 \end_layout
1864
1865 \end_inset
1866
1867 .
1868 \end_layout
1869
1870 \begin_layout Bibliography
1871 \begin_inset CommandInset bibitem
1872 LatexCommand bibitem
1873 key "float"
1874
1875 \end_inset
1876
1877 The float package: 
1878 \begin_inset Flex URL
1879 status collapsed
1880
1881 \begin_layout Plain Layout
1882
1883 http://www.ctan.org/tex-archive/macros/latex/contrib/float/
1884 \end_layout
1885
1886 \end_inset
1887
1888 .
1889 \end_layout
1890
1891 \begin_layout Bibliography
1892 \begin_inset CommandInset bibitem
1893 LatexCommand bibitem
1894 key "forest"
1895
1896 \end_inset
1897
1898 The forest package: 
1899 \begin_inset Flex URL
1900 status collapsed
1901
1902 \begin_layout Plain Layout
1903
1904 http://www.ctan.org/tex-archive/macros/latex/contrib/forest/
1905 \end_layout
1906
1907 \end_inset
1908
1909 .
1910 \end_layout
1911
1912 \begin_layout Bibliography
1913 \begin_inset CommandInset bibitem
1914 LatexCommand bibitem
1915 key "linguistlyx"
1916
1917 \end_inset
1918
1919 Maria Gouskova, Stacia Hartleben and Jürgen Spitzmüller: Using \SpecialChar LyX
1920  for Linguistic
1921  Papers.
1922  
1923 \begin_inset Flex URL
1924 status collapsed
1925
1926 \begin_layout Plain Layout
1927
1928 http://wiki.lyx.org/LyX/LinguistLyX
1929 \end_layout
1930
1931 \end_inset
1932
1933 .
1934 \end_layout
1935
1936 \begin_layout Bibliography
1937 \begin_inset CommandInset bibitem
1938 LatexCommand bibitem
1939 key "preview"
1940
1941 \end_inset
1942
1943 The preview-latex package: 
1944 \begin_inset Flex URL
1945 status collapsed
1946
1947 \begin_layout Plain Layout
1948
1949 http://www.ctan.org/tex-archive/macros/latex/contrib/preview/
1950 \end_layout
1951
1952 \end_inset
1953
1954 .
1955 \end_layout
1956
1957 \begin_layout Bibliography
1958 \begin_inset CommandInset bibitem
1959 LatexCommand bibitem
1960 key "tipa"
1961
1962 \end_inset
1963
1964 The tipa package and fonts: 
1965 \begin_inset Flex URL
1966 status collapsed
1967
1968 \begin_layout Plain Layout
1969
1970 http://www.ctan.org/tex-archive/fonts/tipa/
1971 \end_layout
1972
1973 \end_inset
1974
1975 .
1976 \end_layout
1977
1978 \end_body
1979 \end_document