2008-01-09 18:51:02 +00:00
|
|
|
#\DeclareLyXModule[covington.sty]{Linguistics}
|
|
|
|
#DescriptionBegin
|
|
|
|
#Defines some special environments useful for linguistics (numbered examples,
|
2008-09-07 11:54:13 +00:00
|
|
|
#glosses, semantic markup, tableau floats).
|
2008-09-14 13:17:00 +00:00
|
|
|
#See linguistics.lyx file in examples.
|
2008-01-09 18:51:02 +00:00
|
|
|
#DescriptionEnd
|
2007-12-21 12:12:19 +00:00
|
|
|
|
|
|
|
# Author: Jürgen Spitzmüller <spitz@lyx.org>
|
|
|
|
|
2010-10-13 16:54:57 +00:00
|
|
|
Format 30
|
2007-12-21 12:12:19 +00:00
|
|
|
|
|
|
|
# single numbered example with covington.sty
|
|
|
|
Style Numbered_Example_(multiline)
|
|
|
|
LatexType Environment
|
|
|
|
LatexName example
|
|
|
|
NextNoIndent 1
|
2009-11-21 15:30:39 +00:00
|
|
|
Margin Dynamic
|
2007-12-21 12:12:19 +00:00
|
|
|
LabelSep xx
|
|
|
|
ParSkip 0.0
|
|
|
|
ItemSep 0.2
|
|
|
|
TopSep 0.7
|
|
|
|
BottomSep 0.7
|
|
|
|
ParSep 0.3
|
|
|
|
Align Block
|
|
|
|
AlignPossible Block, Left
|
|
|
|
LabelType Static
|
|
|
|
LabelString "Example:"
|
|
|
|
LabelFont
|
|
|
|
Shape Italic
|
|
|
|
Color Blue
|
|
|
|
EndFont
|
2008-01-07 16:59:10 +00:00
|
|
|
Requires covington
|
2007-12-21 12:12:19 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
|
|
|
|
# multiple numbered examples with covington.sty
|
|
|
|
Style Numbered_Examples_(consecutive)
|
|
|
|
CopyStyle Numbered_Example_(multiline)
|
|
|
|
LatexType Item_Environment
|
|
|
|
LatexName examples
|
|
|
|
LabelString "Examples:"
|
|
|
|
End
|
|
|
|
|
|
|
|
|
|
|
|
# multiple numbered example with covington.sty
|
|
|
|
Style Subexample
|
|
|
|
CopyStyle Numbered_Example_(multiline)
|
|
|
|
LatexType Item_Environment
|
|
|
|
LatexName subexample
|
|
|
|
LabelString "Subexample:"
|
2008-01-07 16:59:10 +00:00
|
|
|
Requires covington,enumitem
|
2007-12-21 12:12:19 +00:00
|
|
|
Preamble
|
|
|
|
\newenvironment{subexample}{%
|
|
|
|
\begin{example}\begin{enumerate}[leftmargin=1.7em]
|
|
|
|
\renewcommand\theenumi{\alph{enumi}}
|
|
|
|
\renewcommand\labelenumi{(\theenumi)}
|
|
|
|
\renewcommand\p@enumi{\theequation\,}}%
|
|
|
|
{\end{enumerate}\end{example}}
|
|
|
|
EndPreamble
|
|
|
|
End
|
|
|
|
|
|
|
|
|
|
|
|
# glosse (2 lines) with covington.sty
|
|
|
|
# mandatory translation must be entered verbatim!
|
2010-10-12 15:41:55 +00:00
|
|
|
InsetLayout Flex:Glosse
|
2007-12-21 12:12:19 +00:00
|
|
|
LyXType custom
|
|
|
|
LabelString Glosse
|
|
|
|
LatexType environment
|
|
|
|
LatexName linggloss
|
|
|
|
Decoration minimalistic
|
|
|
|
LabelFont
|
|
|
|
Size Small
|
|
|
|
EndFont
|
|
|
|
MultiPar true
|
2008-10-05 19:46:19 +00:00
|
|
|
CustomPars false
|
2008-10-06 07:15:01 +00:00
|
|
|
ForcePlain true
|
2007-12-21 12:12:19 +00:00
|
|
|
PassThru true
|
|
|
|
FreeSpacing true
|
2009-11-21 14:44:07 +00:00
|
|
|
ForceLTR true
|
2008-01-07 16:59:10 +00:00
|
|
|
Requires covington
|
2007-12-21 12:12:19 +00:00
|
|
|
Preamble
|
|
|
|
\@ifundefined{linggloss}{%
|
|
|
|
\newenvironment{linggloss}[1]{%
|
|
|
|
\gll #1}
|
|
|
|
{\glend}}{}
|
|
|
|
EndPreamble
|
2009-02-06 17:54:33 +00:00
|
|
|
InToc true
|
2007-12-21 12:12:19 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
|
|
|
|
# glosse (3 lines) with covington.sty
|
|
|
|
# mandatory translation must be entered verbatim!
|
2010-10-12 15:41:55 +00:00
|
|
|
InsetLayout Flex:Tri-Glosse
|
2007-12-21 12:12:19 +00:00
|
|
|
LyXType custom
|
|
|
|
LabelString Tri-Glosse
|
|
|
|
LatexType environment
|
|
|
|
LatexName lingglosss
|
|
|
|
Decoration minimalistic
|
|
|
|
LabelFont
|
|
|
|
Size Small
|
|
|
|
EndFont
|
|
|
|
MultiPar true
|
2008-10-06 07:15:01 +00:00
|
|
|
CustomPars false
|
|
|
|
ForcePlain true
|
2007-12-21 12:12:19 +00:00
|
|
|
PassThru true
|
|
|
|
FreeSpacing true
|
2009-11-21 14:44:07 +00:00
|
|
|
ForceLTR true
|
2009-02-06 17:54:33 +00:00
|
|
|
InToc true
|
2008-01-07 16:59:10 +00:00
|
|
|
Requires covington
|
2007-12-21 12:12:19 +00:00
|
|
|
Preamble
|
|
|
|
\@ifundefined{lingglosss}{%
|
|
|
|
\newenvironment{lingglosss}[1]{%
|
|
|
|
\glll #1}
|
|
|
|
{\glend}}{}
|
|
|
|
EndPreamble
|
|
|
|
End
|
|
|
|
|
|
|
|
|
2008-09-07 11:54:13 +00:00
|
|
|
# Some semantik markup for Semantics
|
2010-10-12 15:41:55 +00:00
|
|
|
InsetLayout Flex:Expression
|
2007-12-21 12:12:19 +00:00
|
|
|
LyxType charstyle
|
|
|
|
LabelString expr.
|
|
|
|
LatexType command
|
|
|
|
LatexName lingexpr
|
|
|
|
Font
|
|
|
|
Shape Italic
|
|
|
|
EndFont
|
|
|
|
Preamble
|
|
|
|
\newcommand{\lingexpr}[1]{\emph{#1}}
|
|
|
|
EndPreamble
|
2009-02-06 17:54:33 +00:00
|
|
|
InToc true
|
2007-12-21 12:12:19 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
|
2010-10-12 15:41:55 +00:00
|
|
|
InsetLayout Flex:Concepts
|
2007-12-21 12:12:19 +00:00
|
|
|
LyxType charstyle
|
|
|
|
LabelString concept
|
|
|
|
LatexType command
|
|
|
|
LatexName lingconcept
|
|
|
|
Font
|
|
|
|
Shape Smallcaps
|
|
|
|
EndFont
|
|
|
|
Preamble
|
|
|
|
\newcommand{\lingconcept}[1]{\textsc{#1}}
|
|
|
|
EndPreamble
|
2009-02-06 17:54:33 +00:00
|
|
|
InToc true
|
2007-12-21 12:12:19 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
|
2010-10-12 15:41:55 +00:00
|
|
|
InsetLayout Flex:Meaning
|
2007-12-21 12:12:19 +00:00
|
|
|
LyxType charstyle
|
|
|
|
LabelString meaning
|
|
|
|
LatexType command
|
|
|
|
LatexName lingmeaning
|
2009-02-06 17:54:33 +00:00
|
|
|
Requires csquotes
|
2007-12-21 12:12:19 +00:00
|
|
|
Preamble
|
|
|
|
\newcommand{\lingmeaning}[1]{\enquote*{#1}}
|
|
|
|
EndPreamble
|
2009-02-06 17:54:33 +00:00
|
|
|
InToc true
|
2007-12-21 12:12:19 +00:00
|
|
|
End
|
2008-09-07 11:54:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Tableaux for Optimality Theory
|
|
|
|
Float
|
|
|
|
Type tableau
|
|
|
|
GuiName Tableau
|
|
|
|
Placement tbp
|
|
|
|
Extension otl
|
|
|
|
NumberWithin none
|
|
|
|
Style plain
|
|
|
|
ListName "List of Tableaux"
|
2010-03-05 23:02:24 +00:00
|
|
|
NeedsFloatPkg true
|
2008-09-07 11:54:13 +00:00
|
|
|
End
|
|
|
|
|