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