1 #LyX 1.6.0svn created this file. For more info see http://www.lyx.org/
\r
7 %% Uncomment the following for Tableaux captions on top:
\r
8 %\floatstyle{plaintop}
\r
9 %\restylefloat{tableau}
\r
18 \font_typewriter default
\r
19 \font_default_family default
\r
26 \paperfontsize default
\r
35 \paperorientation portrait
\r
38 \paragraph_separation indent
\r
40 \quotes_language english
\r
43 \paperpagestyle default
\r
44 \tracking_changes false
\r
45 \output_changes false
\r
53 Writing linguistic papers with LyX
\r
56 \begin_layout Author
\r
58 \begin_inset Newline newline
\r
62 \begin_inset CommandInset href
\r
64 target "spitz@lyx.org"
\r
76 \begin_layout Abstract
\r
77 This paper describes some features that LyX provides to linguists.
\r
78 It demonstrates how to use some native support in order to produce numbered
\r
79 examples, glosses, OT tableaux, semantic markup, and phonetic symbols (IPA).
\r
82 \begin_layout Section
\r
83 Aims and prerequisites
\r
86 \begin_layout Standard
\r
87 Basically, this paper describes the features of the
\r
88 \begin_inset Quotes eld
\r
92 \begin_inset Quotes erd
\r
95 module that ships with LyX as of version 1.6.0.
\r
97 \begin_inset Quotes eld
\r
101 \begin_inset Quotes erd
\r
104 are support files (introduced with LyX 1.6.0) that can easily be selected
\r
106 In order to use the Linguistics module, go to
\r
108 Document\SpecialChar \menuseparator
\r
109 Settings\SpecialChar \menuseparator
\r
113 \begin_inset Quotes eld
\r
117 \begin_inset Quotes erd
\r
120 from the list of available modules, and hit the
\r
124 button to select it for your document (as already done for this document).
\r
127 \begin_layout Standard
\r
128 You should be able to use the module with any document class (please inform
\r
130 However, in order to use all the features, you need to have the following
\r
131 LaTeX packages installed:
\r
134 \begin_layout Enumerate
\r
140 \begin_inset CommandInset citation
\r
146 : This is the base package used for numbered examples and glosses.
\r
149 \begin_layout Enumerate
\r
155 \begin_inset CommandInset citation
\r
161 : This package is used for the Subexamples style.
\r
162 It is generally useful to alter the appearance of lists (such as
\r
177 \begin_layout Enumerate
\r
183 \begin_inset CommandInset citation
\r
194 The package provides context sensitive quotation marks, depending on the
\r
198 \begin_layout Enumerate
\r
204 \begin_inset CommandInset citation
\r
210 : Needed for the OT tableaux floats and list of floats.
\r
211 This package should be part of any LaTeX distribution.
\r
214 \begin_layout Section
\r
218 \begin_layout Standard
\r
219 Numbered examples are inserted via the layout dropdown box in the toolbar.
\r
220 There are three variants:
\r
223 \begin_layout Numbered Example (multiline)
\r
224 This is a multiline example [Style
\r
226 Numbered Example (multiline)
\r
231 \begin_layout Numbered Example (multiline)
\r
232 it can have several paragraphs
\r
235 \begin_layout Numbered Examples (consecutive)
\r
236 This is a single example
\r
237 \begin_inset CommandInset label
\r
239 name "exa:single-example"
\r
245 Numbered Example (consecutive)
\r
250 \begin_layout Numbered Examples (consecutive)
\r
251 Consecutive single examples get their own numbers
\r
254 \begin_layout Subexample
\r
255 This is a subexample
\r
256 \begin_inset CommandInset label
\r
258 name "sub:subexample"
\r
269 \begin_layout Subexample
\r
273 \begin_layout Standard
\r
274 References to examples are produced as usual: insert a label to the example
\r
275 and a crossreference via
\r
277 Insert\SpecialChar \menuseparator
\r
281 We refer here, just for the sake of demonstrating this, to
\r
282 \begin_inset CommandInset ref
\r
284 reference "exa:single-example"
\r
289 \begin_inset CommandInset ref
\r
291 reference "sub:subexample"
\r
298 \begin_layout Section
\r
302 \begin_layout Standard
\r
303 The Linguistics module provides two kinds of glosses, which can be inserted
\r
306 Insert\SpecialChar \menuseparator
\r
313 provides a glosse that consists of two lines and a translation, the
\r
317 insets consists of three lines and a translation.
\r
318 Note that the translation line is mandatory and must be preceded by the
\r
325 which should be inserted verbatim in the Glosse inset (ERT is not needed,
\r
326 and in fact not even possible).
\r
329 \begin_layout Standard
\r
330 Here is a simple example:
\r
333 \begin_layout Standard
\r
334 \begin_inset Flex Custom:Glosse
\r
337 \begin_layout Plain Layout
\r
338 C'est un exemple simple
\r
341 \begin_layout Plain Layout
\r
342 {This is} an example simple
\r
345 \begin_layout Plain Layout
\r
349 \begin_inset Quotes els
\r
352 This is a simple example
\r
353 \begin_inset Quotes ers
\r
364 \begin_layout Standard
\r
365 Note that the braces hold together multi-word expressions.
\r
366 In the same vein, we can make a three-line glosse:
\r
369 \begin_layout Standard
\r
370 \begin_inset Flex Custom:Tri-Glosse
\r
373 \begin_layout Plain Layout
\r
374 C'est un exemple simple
\r
377 \begin_layout Plain Layout
\r
378 {Das ist} ein Beispiel einfach
\r
381 \begin_layout Plain Layout
\r
382 {This is} an example simple
\r
385 \begin_layout Plain Layout
\r
389 \begin_inset Quotes els
\r
392 This is a simple example
\r
393 \begin_inset Quotes ers
\r
404 \begin_layout Standard
\r
405 If you want to have numbered glosses, you can simply insert the Glosse inset
\r
406 to a numbered examples paragraph, as follows:
\r
409 \begin_layout Numbered Examples (consecutive)
\r
410 \begin_inset Flex Custom:Tri-Glosse
\r
413 \begin_layout Plain Layout
\r
414 Mein Luftkissenfahrzeug ist voller Aale
\r
417 \begin_layout Plain Layout
\r
418 My skeertuig is vol palings
\r
421 \begin_layout Plain Layout
\r
422 My hovercraft is {full of} eels
\r
425 \begin_layout Plain Layout
\r
429 \begin_inset Quotes els
\r
432 Do you have matches?
\r
433 \begin_inset Quotes ers
\r
444 \begin_layout Section
\r
445 Optimality Theory Tableaux
\r
448 \begin_layout Standard
\r
449 OT tableaux itself can of course simply be inserted as ordinary tables (for
\r
450 specific features such as dashed lines and shaded cells, cf.
\r
456 However, you might want to have the tableaux numbered throughout the document,
\r
457 and you might want to have a
\r
469 \begin_layout Standard
\r
470 The Linguistics module provides support for both.
\r
473 Insert\SpecialChar \menuseparator
\r
476 , you'll find a Tableaux float:
\r
479 \begin_layout Standard
\r
480 \begin_inset Float tableau
\r
486 \begin_layout Plain Layout
\r
488 \begin_inset Tabular
\r
489 <lyxtabular version="3" rows="5" columns="5">
\r
491 <column alignment="right" valignment="top" width="0">
\r
492 <column alignment="center" valignment="top" width="0">
\r
493 <column alignment="center" valignment="top" width="0">
\r
494 <column alignment="center" valignment="top" width="0" special="|c">
\r
495 <column alignment="center" valignment="top" width="0">
\r
497 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
\r
500 \begin_layout Plain Layout
\r
506 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
\r
509 \begin_layout Plain Layout
\r
517 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
\r
520 \begin_layout Plain Layout
\r
528 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
\r
531 \begin_layout Plain Layout
\r
539 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
\r
542 \begin_layout Plain Layout
\r
552 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\r
555 \begin_layout Plain Layout
\r
556 \begin_inset Formula $\mbox{☞}$
\r
560 \begin_inset Formula $\mbox{\textipa{P}}$
\r
568 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\r
571 \begin_layout Plain Layout
\r
577 <cell alignment="center" valignment="top" topline="true" usebox="none">
\r
580 \begin_layout Plain Layout
\r
586 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\r
589 \begin_layout Plain Layout
\r
595 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
\r
598 \begin_layout Plain Layout
\r
606 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\r
609 \begin_layout Plain Layout
\r
615 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\r
618 \begin_layout Plain Layout
\r
624 <cell alignment="center" valignment="top" topline="true" usebox="none">
\r
627 \begin_layout Plain Layout
\r
633 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\r
636 \begin_layout Plain Layout
\r
642 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
\r
645 \begin_layout Plain Layout
\r
653 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\r
656 \begin_layout Plain Layout
\r
657 \begin_inset Formula $\mbox{\textipa{P}}$
\r
665 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\r
668 \begin_layout Plain Layout
\r
674 <cell alignment="center" valignment="top" topline="true" usebox="none">
\r
677 \begin_layout Plain Layout
\r
683 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
\r
686 \begin_layout Plain Layout
\r
692 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
\r
695 \begin_layout Plain Layout
\r
703 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
\r
706 \begin_layout Plain Layout
\r
712 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
\r
715 \begin_layout Plain Layout
\r
721 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
\r
724 \begin_layout Plain Layout
\r
730 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
\r
733 \begin_layout Plain Layout
\r
739 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
\r
742 \begin_layout Plain Layout
\r
756 \begin_layout Plain Layout
\r
757 \begin_inset Caption
\r
759 \begin_layout Plain Layout
\r
773 \begin_layout Standard
\r
774 Note that by default, the caption is always placed below the tableaux in
\r
775 the output, no matter where you put it in the LyX window.
\r
776 To get the Tableaux captions on top, put the following code in
\r
778 Document\SpecialChar \menuseparator
\r
779 Settings\SpecialChar \menuseparator
\r
785 \begin_layout LyX-Code
\r
788 floatstyle{plaintop}
\r
791 \begin_layout LyX-Code
\r
794 restylefloat{tableau}
\r
797 \begin_layout Standard
\r
798 If your using a KOMA class, use the following instead for better spacing:
\r
801 \begin_layout LyX-Code
\r
804 floatstyle{komaabove}
\r
807 \begin_layout LyX-Code
\r
810 restylefloat{tableau}
\r
813 \begin_layout Standard
\r
814 A List of Tableaux inset can be found in
\r
816 Insert\SpecialChar \menuseparator
\r
820 Even though this usually is placed at the beginning or the end of the document,
\r
821 we do this here for exemplification purposes:
\r
824 \begin_layout Standard
\r
825 \begin_inset FloatList tableau
\r
832 \begin_layout Section
\r
833 Semantic Markup (Character Styles)
\r
836 \begin_layout Standard
\r
837 The Linguistics module comes with some character styles that are common
\r
841 \begin_layout Enumerate
\r
842 Concept (in small caps):
\r
843 \begin_inset Flex CharStyle:Concepts
\r
846 \begin_layout Plain Layout
\r
855 \begin_layout Enumerate
\r
856 Expression (emphasized):
\r
857 \begin_inset Flex CharStyle:Expression
\r
860 \begin_layout Plain Layout
\r
869 \begin_layout Enumerate
\r
870 Meaning (in single quotes):
\r
871 \begin_inset Flex CharStyle:Meaning
\r
874 \begin_layout Plain Layout
\r
883 \begin_layout Standard
\r
884 You can insert the character styles via the
\r
886 Edit\SpecialChar \menuseparator
\r
890 If you need to change the appearance of these styles later, you can redefine
\r
891 them in the preamble.
\r
892 To make expressions bold, for instance, insert:
\r
895 \begin_layout LyX-Code
\r
905 \begin_layout Standard
\r
906 Similarly, concept (
\r
921 \begin_layout Section
\r
922 Phonetic Symbols (IPA)
\r
925 \begin_layout Standard
\r
926 You do not need the Linguistics module to insert phonetic symbols, this
\r
927 is a base functionality of LyX.
\r
928 However, since this is frequently used by linguists, we will describe it
\r
929 (briefly) in this paper nevertheless.
\r
932 \begin_layout Standard
\r
933 A prerequisite to use LyX's IPA support is the LaTeX package
\r
938 \begin_inset CommandInset citation
\r
945 Additionally, if you want to have instant preview, you should have the
\r
951 \begin_inset CommandInset citation
\r
960 \begin_layout Standard
\r
961 Phonetic symbols can be entered via
\r
963 Insert\SpecialChar \menuseparator
\r
964 Special characters\SpecialChar \menuseparator
\r
968 You get a little frame, where you can insert the symbols using the shortcut
\r
969 notation which is described in the tipa manual.
\r
971 \begin_inset Formula $\text{\textipa{[Ekspl@"neIS@n]}}$
\r
975 Given that preview-latex is installed and you have switched on instant
\r
978 Tools\SpecialChar \menuseparator
\r
979 Preferences\SpecialChar \menuseparator
\r
982 ), you'll get a nice preview as soon as the cursor leaves the frame.
\r
985 \begin_layout Section
\r
986 Further information
\r
989 \begin_layout Standard
\r
990 For a detailed description of specific possibilities for linguists, please
\r
991 refer to the LinguistLyX page on the LyX wiki
\r
992 \begin_inset CommandInset citation
\r
998 (feel free to enter your own hints there).
\r
1001 \begin_layout Bibliography
\r
1002 \begin_inset CommandInset bibitem
\r
1003 LatexCommand bibitem
\r
1008 The covington package:
\r
1009 \begin_inset Flex URL
\r
1012 \begin_layout Plain Layout
\r
1014 http://www.ctan.org/tex-archive/macros/latex/contrib/covington/
\r
1022 \begin_layout Bibliography
\r
1023 \begin_inset CommandInset bibitem
\r
1024 LatexCommand bibitem
\r
1029 The csquotes package:
\r
1030 \begin_inset Flex URL
\r
1033 \begin_layout Plain Layout
\r
1035 http://www.ctan.org/tex-archive/macros/latex/contrib/csquotes/
\r
1043 \begin_layout Bibliography
\r
1044 \begin_inset CommandInset bibitem
\r
1045 LatexCommand bibitem
\r
1050 The enumitem package:
\r
1051 \begin_inset Flex URL
\r
1054 \begin_layout Plain Layout
\r
1056 http://www.ctan.org/tex-archive/macros/latex/contrib/enumitem/
\r
1064 \begin_layout Bibliography
\r
1065 \begin_inset CommandInset bibitem
\r
1066 LatexCommand bibitem
\r
1071 The float package:
\r
1072 \begin_inset Flex URL
\r
1075 \begin_layout Plain Layout
\r
1077 http://www.ctan.org/tex-archive/macros/latex/contrib/float/
\r
1085 \begin_layout Bibliography
\r
1086 \begin_inset CommandInset bibitem
\r
1087 LatexCommand bibitem
\r
1092 Maria Gouskova, Stacia Hartleben and Jürgen Spitzmüller: Using LyX for Linguisti
\r
1095 \begin_inset Flex URL
\r
1098 \begin_layout Plain Layout
\r
1100 http://wiki.lyx.org/LyX/LinguistLyX
\r
1108 \begin_layout Bibliography
\r
1109 \begin_inset CommandInset bibitem
\r
1110 LatexCommand bibitem
\r
1115 The preview-latex package:
\r
1116 \begin_inset Flex URL
\r
1119 \begin_layout Plain Layout
\r
1121 http://www.ctan.org/tex-archive/macros/latex/contrib/preview/
\r
1129 \begin_layout Bibliography
\r
1130 \begin_inset CommandInset bibitem
\r
1131 LatexCommand bibitem
\r
1136 The tipa package and fonts:
\r
1137 \begin_inset Flex URL
\r
1140 \begin_layout Plain Layout
\r
1142 http://www.ctan.org/tex-archive/fonts/tipa/
\r