1 #LyX 1.6.0svn created this file. For more info see http://www.lyx.org/
7 %% Uncomment the following for Tableaux captions on top:
9 %\restylefloat{tableau}
18 \font_typewriter default
19 \font_default_family default
26 \paperfontsize default
35 \paperorientation portrait
38 \paragraph_separation indent
40 \quotes_language english
43 \paperpagestyle default
44 \tracking_changes false
53 Writing linguistic papers with LyX
58 \begin_inset Newline newline
65 \begin_layout Plain Layout
79 \begin_layout Abstract
80 This paper describes some features that LyX provides to linguists.
81 It demonstrates how to use some native support in order to produce numbered
82 examples, glosses, OT tableaux, semantic markup, and phonetic symbols (IPA).
86 Aims and prerequisites
89 \begin_layout Standard
90 Basically, this paper describes the features of the
91 \begin_inset Quotes eld
95 \begin_inset Quotes erd
98 module that ships with LyX as of version 1.6.0.
100 \begin_inset Quotes eld
104 \begin_inset Quotes erd
107 are support files (introduced with LyX 1.6.0) that can easily be selected
109 In order to use the Linguistics module, go to
111 Document\SpecialChar \menuseparator
112 Settings\SpecialChar \menuseparator
116 \begin_inset Quotes eld
120 \begin_inset Quotes erd
123 from the list of available modules, and hit the
127 button to select it for your document (as already done for this document).
130 \begin_layout Standard
131 You should be able to use the module with any document class (please inform
133 However, in order to use all the features, you need to have the following
134 LaTeX packages installed:
137 \begin_layout Enumerate
143 \begin_inset CommandInset citation
149 : This is the base package used for numbered examples and glosses.
152 \begin_layout Enumerate
158 \begin_inset CommandInset citation
164 : This package is used for the Subexamples style.
165 It is generally useful to alter the appearance of lists (such as
180 \begin_layout Enumerate
186 \begin_inset CommandInset citation
197 The package provides context sensitive quotation marks, depending on the
201 \begin_layout Enumerate
207 \begin_inset CommandInset citation
213 : Needed for the OT tableaux floats and list of floats.
214 This package should be part of any LaTeX distribution.
217 \begin_layout Section
221 \begin_layout Standard
222 Numbered examples are inserted via the layout dropdown box in the toolbar.
223 There are three variants:
226 \begin_layout Numbered Example (multiline)
227 This is a multiline example [Style
229 Numbered Example (multiline)
234 \begin_layout Numbered Example (multiline)
235 it can have several paragraphs
238 \begin_layout Numbered Examples (consecutive)
239 This is a single example
240 \begin_inset CommandInset label
242 name "exa:single-example"
248 Numbered Example (consecutive)
253 \begin_layout Numbered Examples (consecutive)
254 Consecutive single examples get their own numbers
257 \begin_layout Subexample
259 \begin_inset CommandInset label
261 name "sub:subexample"
272 \begin_layout Subexample
276 \begin_layout Standard
277 References to examples are produced as usual: insert a label to the example
278 and a crossreference via
280 Insert\SpecialChar \menuseparator
284 We refer here, just for the sake of demonstrating this, to
285 \begin_inset CommandInset ref
287 reference "exa:single-example"
292 \begin_inset CommandInset ref
294 reference "sub:subexample"
301 \begin_layout Section
305 \begin_layout Standard
306 The Linguistics module provides two kinds of glosses, which can be inserted
309 Insert\SpecialChar \menuseparator
316 provides a glosse that consists of two lines and a translation, the
320 insets consists of three lines and a translation.
321 Note that the translation line is mandatory and must be preceded by the
328 which should be inserted verbatim in the Glosse inset (ERT is not needed,
329 and in fact not even possible).
332 \begin_layout Standard
333 Here is a simple example:
336 \begin_layout Standard
337 \begin_inset Flex Custom:Glosse
340 \begin_layout Plain Layout
341 C'est un exemple simple
344 \begin_layout Plain Layout
345 {This is} an example simple
348 \begin_layout Plain Layout
352 \begin_inset Quotes els
355 This is a simple example
356 \begin_inset Quotes ers
367 \begin_layout Standard
368 Note that the braces hold together multi-word expressions.
369 In the same vein, we can make a three-line glosse:
372 \begin_layout Standard
373 \begin_inset Flex Custom:Tri-Glosse
376 \begin_layout Plain Layout
377 C'est un exemple simple
380 \begin_layout Plain Layout
381 {Das ist} ein Beispiel einfach
384 \begin_layout Plain Layout
385 {This is} an example simple
388 \begin_layout Plain Layout
392 \begin_inset Quotes els
395 This is a simple example
396 \begin_inset Quotes ers
407 \begin_layout Standard
408 If you want to have numbered glosses, you can simply insert the Glosse inset
409 to a numbered examples paragraph, as follows:
412 \begin_layout Numbered Examples (consecutive)
413 \begin_inset Flex Custom:Tri-Glosse
416 \begin_layout Plain Layout
417 Mein Luftkissenfahrzeug ist voller Aale
420 \begin_layout Plain Layout
421 My skeertuig is vol palings
424 \begin_layout Plain Layout
425 My hovercraft is {full of} eels
428 \begin_layout Plain Layout
432 \begin_inset Quotes els
436 \begin_inset Quotes ers
447 \begin_layout Section
448 Optimality Theory Tableaux
451 \begin_layout Standard
452 OT tableaux itself can of course simply be inserted as ordinary tables (for
453 specific features such as dashed lines and shaded cells, cf.
459 However, you might want to have the tableaux numbered throughout the document,
460 and you might want to have a
472 \begin_layout Standard
473 The Linguistics module provides support for both.
476 Insert\SpecialChar \menuseparator
479 , you'll find a Tableaux float:
482 \begin_layout Standard
483 \begin_inset Float tableau
489 \begin_layout Plain Layout
492 <lyxtabular version="3" rows="5" columns="5">
494 <column alignment="right" valignment="top" width="0">
495 <column alignment="center" valignment="top" width="0">
496 <column alignment="center" valignment="top" width="0">
497 <column alignment="center" valignment="top" width="0" special="|c">
498 <column alignment="center" valignment="top" width="0">
500 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
503 \begin_layout Plain Layout
509 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
512 \begin_layout Plain Layout
520 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
523 \begin_layout Plain Layout
531 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
534 \begin_layout Plain Layout
542 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
545 \begin_layout Plain Layout
555 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
558 \begin_layout Plain Layout
559 \begin_inset Formula $\mbox{☞}$
563 \begin_inset Formula $\mbox{\textipa{P}}$
571 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
574 \begin_layout Plain Layout
580 <cell alignment="center" valignment="top" topline="true" usebox="none">
583 \begin_layout Plain Layout
589 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
592 \begin_layout Plain Layout
598 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
601 \begin_layout Plain Layout
609 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
612 \begin_layout Plain Layout
618 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
621 \begin_layout Plain Layout
627 <cell alignment="center" valignment="top" topline="true" usebox="none">
630 \begin_layout Plain Layout
636 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
639 \begin_layout Plain Layout
645 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
648 \begin_layout Plain Layout
656 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
659 \begin_layout Plain Layout
660 \begin_inset Formula $\mbox{\textipa{P}}$
668 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
671 \begin_layout Plain Layout
677 <cell alignment="center" valignment="top" topline="true" usebox="none">
680 \begin_layout Plain Layout
686 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
689 \begin_layout Plain Layout
695 <cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
698 \begin_layout Plain Layout
706 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
709 \begin_layout Plain Layout
715 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
718 \begin_layout Plain Layout
724 <cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
727 \begin_layout Plain Layout
733 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
736 \begin_layout Plain Layout
742 <cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
745 \begin_layout Plain Layout
759 \begin_layout Plain Layout
762 \begin_layout Plain Layout
776 \begin_layout Standard
777 Note that by default, the caption is always placed below the tableaux in
778 the output, no matter where you put it in the LyX window.
779 To get the Tableaux captions on top, put the following code in
781 Document\SpecialChar \menuseparator
782 Settings\SpecialChar \menuseparator
788 \begin_layout LyX-Code
794 \begin_layout LyX-Code
797 restylefloat{tableau}
800 \begin_layout Standard
801 If your using a KOMA class, use the following instead for better spacing:
804 \begin_layout LyX-Code
807 floatstyle{komaabove}
810 \begin_layout LyX-Code
813 restylefloat{tableau}
816 \begin_layout Standard
817 A List of Tableaux inset can be found in
819 Insert\SpecialChar \menuseparator
823 Even though this usually is placed at the beginning or the end of the document,
824 we do this here for exemplification purposes:
827 \begin_layout Standard
828 \begin_inset FloatList tableau
835 \begin_layout Section
836 Semantic Markup (Character Styles)
839 \begin_layout Standard
840 The Linguistics module comes with some character styles that are common
844 \begin_layout Enumerate
845 Concept (in small caps):
846 \begin_inset Flex CharStyle:Concepts
849 \begin_layout Plain Layout
858 \begin_layout Enumerate
859 Expression (emphasized):
860 \begin_inset Flex CharStyle:Expression
863 \begin_layout Plain Layout
872 \begin_layout Enumerate
873 Meaning (in single quotes):
874 \begin_inset Flex CharStyle:Meaning
877 \begin_layout Plain Layout
886 \begin_layout Standard
887 You can insert the character styles via the
889 Edit\SpecialChar \menuseparator
893 If you need to change the appearance of these styles later, you can redefine
894 them in the preamble.
895 To make expressions bold, for instance, insert:
898 \begin_layout LyX-Code
908 \begin_layout Standard
924 \begin_layout Section
925 Phonetic Symbols (IPA)
928 \begin_layout Standard
929 You do not need the Linguistics module to insert phonetic symbols, this
930 is a base functionality of LyX.
931 However, since this is frequently used by linguists, we will describe it
932 (briefly) in this paper nevertheless.
935 \begin_layout Standard
936 A prerequisite to use LyX's IPA support is the LaTeX package
941 \begin_inset CommandInset citation
948 Additionally, if you want to have instant preview, you should have the
954 \begin_inset CommandInset citation
963 \begin_layout Standard
964 Phonetic symbols can be entered via
966 Insert\SpecialChar \menuseparator
967 Special characters\SpecialChar \menuseparator
971 You get a little frame, where you can insert the symbols using the shortcut
972 notation which is described in the tipa manual.
974 \begin_inset Formula $\text{\textipa{[Ekspl@"neIS@n]}}$
978 Given that preview-latex is installed and you have switched on instant
981 Tools\SpecialChar \menuseparator
982 Preferences\SpecialChar \menuseparator
985 ), you'll get a nice preview as soon as the cursor leaves the frame.
988 \begin_layout Section
992 \begin_layout Standard
993 For a detailed description of specific possibilities for linguists, please
994 refer to the LinguistLyX page on the LyX wiki
995 \begin_inset CommandInset citation
1001 (feel free to enter your own hints there).
1004 \begin_layout Bibliography
1005 \begin_inset CommandInset bibitem
1006 LatexCommand bibitem
1011 The covington package:
1012 \begin_inset Flex URL
1015 \begin_layout Plain Layout
1017 http://www.ctan.org/tex-archive/macros/latex/contrib/covington/
1025 \begin_layout Bibliography
1026 \begin_inset CommandInset bibitem
1027 LatexCommand bibitem
1032 The csquotes package:
1033 \begin_inset Flex URL
1036 \begin_layout Plain Layout
1038 http://www.ctan.org/tex-archive/macros/latex/contrib/csquotes/
1046 \begin_layout Bibliography
1047 \begin_inset CommandInset bibitem
1048 LatexCommand bibitem
1053 The enumitem package:
1054 \begin_inset Flex URL
1057 \begin_layout Plain Layout
1059 http://www.ctan.org/tex-archive/macros/latex/contrib/enumitem/
1067 \begin_layout Bibliography
1068 \begin_inset CommandInset bibitem
1069 LatexCommand bibitem
1075 \begin_inset Flex URL
1078 \begin_layout Plain Layout
1080 http://www.ctan.org/tex-archive/macros/latex/contrib/float/
1088 \begin_layout Bibliography
1089 \begin_inset CommandInset bibitem
1090 LatexCommand bibitem
1095 Maria Gouskova, Stacia Hartleben and Jürgen Spitzmüller: Using LyX for Linguisti
1098 \begin_inset Flex URL
1101 \begin_layout Plain Layout
1103 http://wiki.lyx.org/LyX/LinguistLyX
1111 \begin_layout Bibliography
1112 \begin_inset CommandInset bibitem
1113 LatexCommand bibitem
1118 The preview-latex package:
1119 \begin_inset Flex URL
1122 \begin_layout Plain Layout
1124 http://www.ctan.org/tex-archive/macros/latex/contrib/preview/
1132 \begin_layout Bibliography
1133 \begin_inset CommandInset bibitem
1134 LatexCommand bibitem
1139 The tipa package and fonts:
1140 \begin_inset Flex URL
1143 \begin_layout Plain Layout
1145 http://www.ctan.org/tex-archive/fonts/tipa/