2016-07-13 06:00:07 +00:00
|
|
|
#\DeclareLyXModule[covington.sty,enumitem.sty,forest.sty]{Linguistics}
|
2008-01-09 18:51:02 +00:00
|
|
|
#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>
|
|
|
|
|
2016-04-01 08:08:39 +00:00
|
|
|
Format 60
|
2007-12-21 12:12:19 +00:00
|
|
|
|
|
|
|
# single numbered example with covington.sty
|
|
|
|
Style Numbered_Example_(multiline)
|
|
|
|
LatexType Environment
|
2016-07-08 08:04:24 +00:00
|
|
|
LatexName covexample
|
2007-12-21 12:12:19 +00:00
|
|
|
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
|
2016-07-08 08:04:24 +00:00
|
|
|
Preamble
|
2016-07-08 14:48:56 +00:00
|
|
|
% Backwards compatibility with covington < 1.1
|
|
|
|
% This code can be removed eventually
|
2016-07-08 08:04:24 +00:00
|
|
|
\@ifundefined{covexample}{%
|
|
|
|
\newenvironment{covexample}{\begin{example}}{\end{example}}%
|
|
|
|
}
|
|
|
|
EndPreamble
|
2012-10-09 08:59:19 +00:00
|
|
|
Category Linguistics
|
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
|
2016-07-08 08:04:24 +00:00
|
|
|
LatexName covexamples
|
2007-12-21 12:12:19 +00:00
|
|
|
LabelString "Examples:"
|
2015-04-20 10:15:20 +00:00
|
|
|
Argument item:1
|
|
|
|
LabelString "Custom Numbering|s"
|
|
|
|
Tooltip "Customize the numeration"
|
|
|
|
EndArgument
|
2016-07-08 08:04:24 +00:00
|
|
|
Preamble
|
2016-07-08 14:48:56 +00:00
|
|
|
% Backwards compatibility with covington < 1.1
|
|
|
|
% This code can be removed eventually
|
2016-07-08 08:04:24 +00:00
|
|
|
\@ifundefined{covexamples}{%
|
|
|
|
\newenvironment{covexamples}{\begin{examples}}{\end{examples}}%
|
|
|
|
}
|
|
|
|
EndPreamble
|
2007-12-21 12:12:19 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
|
|
|
|
# multiple numbered example with covington.sty
|
|
|
|
Style Subexample
|
2015-04-20 10:15:20 +00:00
|
|
|
CopyStyle Numbered_Examples_(consecutive)
|
2007-12-21 12:12:19 +00:00
|
|
|
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
|
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
|
2010-11-06 15:06:19 +00:00
|
|
|
ParbreakIsNewline true
|
2007-12-21 12:12:19 +00:00
|
|
|
FreeSpacing true
|
2008-01-07 16:59:10 +00:00
|
|
|
Requires covington
|
2007-12-21 12:12:19 +00:00
|
|
|
Preamble
|
2015-04-21 18:33:35 +00:00
|
|
|
\def\glosstr{}
|
2007-12-21 12:12:19 +00:00
|
|
|
\@ifundefined{linggloss}{%
|
2015-04-21 18:33:35 +00:00
|
|
|
\newenvironment{linggloss}[2][]{
|
|
|
|
\def\glosstr{\glt #1}%
|
|
|
|
\gll #2}
|
|
|
|
{\glosstr\glend}}{}
|
2007-12-21 12:12:19 +00:00
|
|
|
EndPreamble
|
2009-02-06 17:54:33 +00:00
|
|
|
InToc true
|
2015-04-21 18:33:35 +00:00
|
|
|
ResetsFont true
|
|
|
|
Argument 1
|
|
|
|
Decoration conglomerate
|
|
|
|
LabelString "Translation"
|
|
|
|
MenuString "Glosse Translation|s"
|
|
|
|
Tooltip "Add a translation for the glosse"
|
|
|
|
EndArgument
|
2007-12-21 12:12:19 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
|
|
|
|
# glosse (3 lines) with covington.sty
|
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
|
2010-11-06 15:06:19 +00:00
|
|
|
ParbreakIsNewline true
|
2007-12-21 12:12:19 +00:00
|
|
|
FreeSpacing 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
|
2015-04-21 18:33:35 +00:00
|
|
|
\def\glosstr{}
|
2007-12-21 12:12:19 +00:00
|
|
|
\@ifundefined{lingglosss}{%
|
2015-04-21 18:33:35 +00:00
|
|
|
\newenvironment{lingglosss}[2][]{
|
|
|
|
\def\glosstr{\glt #1}%
|
|
|
|
\glll #2}
|
|
|
|
{\glosstr\glend}}{}
|
2007-12-21 12:12:19 +00:00
|
|
|
EndPreamble
|
2015-04-21 18:33:35 +00:00
|
|
|
ResetsFont true
|
|
|
|
Argument 1
|
|
|
|
Decoration conglomerate
|
|
|
|
LabelString "Translation"
|
|
|
|
MenuString "Glosse Translation|s"
|
|
|
|
Tooltip "Add a translation for the glosse"
|
|
|
|
EndArgument
|
2007-12-21 12:12:19 +00:00
|
|
|
End
|
|
|
|
|
2015-04-21 18:33:35 +00:00
|
|
|
|
2015-04-20 16:14:42 +00:00
|
|
|
# Structure trees via the forest package
|
|
|
|
InsetLayout Flex:Structure_Tree
|
|
|
|
LyXType custom
|
|
|
|
LabelString Tree
|
|
|
|
LatexType environment
|
|
|
|
LatexName forest
|
|
|
|
Decoration classic
|
|
|
|
LabelFont
|
|
|
|
Size Small
|
|
|
|
EndFont
|
|
|
|
MultiPar true
|
|
|
|
CustomPars false
|
|
|
|
ParbreakIsNewline true
|
|
|
|
FreeSpacing true
|
2015-05-04 23:21:22 +00:00
|
|
|
Requires forest
|
2015-04-20 16:14:42 +00:00
|
|
|
ResetsFont true
|
2015-05-04 23:21:22 +00:00
|
|
|
PassThruChars []
|
2016-02-21 10:54:25 +00:00
|
|
|
Preamble
|
|
|
|
% Load forest linguistics library, if available
|
|
|
|
\@ifpackagelater{forest}{2016/02/20}{%
|
|
|
|
\useforestlibrary*{linguistics}
|
|
|
|
}{}
|
|
|
|
EndPreamble
|
2015-04-20 16:14:42 +00:00
|
|
|
End
|
|
|
|
|
2007-12-21 12:12:19 +00:00
|
|
|
|
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
|
2016-02-21 10:54:25 +00:00
|
|
|
ResetsFont 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
|
2016-02-21 10:54:25 +00:00
|
|
|
ResetsFont 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
|
2016-02-21 10:54:25 +00:00
|
|
|
ResetsFont true
|
2007-12-21 12:12:19 +00:00
|
|
|
End
|
2008-09-07 11:54:13 +00:00
|
|
|
|
|
|
|
|
2015-04-21 18:33:35 +00:00
|
|
|
# A helper to group words in Glosses
|
|
|
|
InsetLayout Flex:GroupGlossedWords
|
|
|
|
LyxType charstyle
|
|
|
|
LabelString Group
|
|
|
|
LeftDelim {
|
|
|
|
RightDelim }
|
|
|
|
ResetsFont true
|
|
|
|
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"
|
2011-02-02 22:39:03 +00:00
|
|
|
IsPredefined false
|
|
|
|
UsesFloatPkg true
|
2008-09-07 11:54:13 +00:00
|
|
|
End
|
|
|
|
|