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>
|
|
|
|
|
2018-01-02 10:53:01 +00:00
|
|
|
Format 66
|
2007-12-21 12:12:19 +00:00
|
|
|
|
2016-10-14 09:40:53 +00:00
|
|
|
Counter example
|
|
|
|
Within chapter
|
2016-10-14 18:09:25 +00:00
|
|
|
LabelString "(\arabic{example})"
|
2016-10-14 09:40:53 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
Counter examplei
|
|
|
|
Within chapter
|
2016-10-14 18:09:25 +00:00
|
|
|
LabelString "(\arabic{examplei})"
|
2016-10-14 09:40:53 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
Counter subexample
|
|
|
|
Within examplei
|
2016-10-14 18:09:25 +00:00
|
|
|
LabelString "\theexamplei (\alph{subexample})"
|
2016-10-14 09:40:53 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
Counter subexamplei
|
|
|
|
Within examplei
|
2016-10-14 18:09:25 +00:00
|
|
|
LabelString "\theexamplei (\alph{subexamplei})"
|
2016-10-14 09:40:53 +00:00
|
|
|
End
|
|
|
|
|
2017-02-21 06:11:23 +00:00
|
|
|
OutlinerName tableau "Tableaux" #no AddToToc (built-in)
|
|
|
|
|
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
|
2016-10-14 18:09:25 +00:00
|
|
|
Margin First_Dynamic
|
|
|
|
ParIndent (1)x
|
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
|
2016-10-14 18:09:25 +00:00
|
|
|
LabelCounter "examplei"
|
2007-12-21 12:12:19 +00:00
|
|
|
LabelFont
|
|
|
|
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}}%
|
2016-08-26 08:45:15 +00:00
|
|
|
}{}
|
2016-07-08 08:04:24 +00:00
|
|
|
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
|
2016-10-14 09:40:53 +00:00
|
|
|
LabelType Enumerate
|
|
|
|
LabelCounter "example"
|
2016-10-14 18:09:25 +00:00
|
|
|
ResumeCounter true
|
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}}%
|
2016-08-26 08:45:15 +00:00
|
|
|
}{}
|
2016-07-08 08:04:24 +00:00
|
|
|
EndPreamble
|
2007-12-21 12:12:19 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
|
2018-09-08 07:50:48 +00:00
|
|
|
# multiple numbered examples with covington.sty
|
2007-12-21 12:12:19 +00:00
|
|
|
Style Subexample
|
2015-04-20 10:15:20 +00:00
|
|
|
CopyStyle Numbered_Examples_(consecutive)
|
2018-09-08 07:50:48 +00:00
|
|
|
LatexName covsubexamples
|
2016-10-14 09:40:53 +00:00
|
|
|
LabelCounter "subexample"
|
2016-10-14 18:09:25 +00:00
|
|
|
StepMasterCounter true
|
2018-09-08 07:50:48 +00:00
|
|
|
Requires covington
|
2007-12-21 12:12:19 +00:00
|
|
|
Preamble
|
2018-09-08 07:50:48 +00:00
|
|
|
% Backwards compatibility with covington < 1.6
|
|
|
|
% This code can be removed eventually
|
|
|
|
\@ifundefined{covsubexamples}{%
|
|
|
|
\newenvironment{covsubexamples}{%
|
|
|
|
\addtolength{\examplenumbersep}{-0.5em}%
|
|
|
|
\begin{covexample}%
|
|
|
|
\begin{enumerate}
|
|
|
|
\renewcommand\theenumi{\alph{enumi}}
|
|
|
|
\renewcommand\labelenumi{(\theenumi)}
|
|
|
|
\renewcommand\p@enumi{\theequation\,}}%
|
|
|
|
{\end{enumerate}\end{covexample}}
|
|
|
|
}{}
|
2007-12-21 12:12:19 +00:00
|
|
|
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
|
2017-05-13 15:36:20 +00:00
|
|
|
OutlinerName tableau "Tableaux" #no AddToToc
|
|
|
|
|
2008-09-07 11:54:13 +00:00
|
|
|
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
|
|
|
|
|