mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
e2f81b3a84
This now uses the new and enhanced \digloss ad \trigloss macros of convington 2.0 rather than the deficient self-baked ones. File format change.
294 lines
7.1 KiB
Plaintext
294 lines
7.1 KiB
Plaintext
#\DeclareLyXModule[covington.sty,forest.sty]{Linguistics}
|
|
#\DeclareCategory{Academic Field Specifics}
|
|
#DescriptionBegin
|
|
#Defines some special environments useful for linguistics (numbered examples,
|
|
#glosses, semantic markup, tableau floats).
|
|
#See linguistics.lyx file in examples.
|
|
#DescriptionEnd
|
|
|
|
# Author: Jürgen Spitzmüller <spitz@lyx.org>
|
|
|
|
Format 74
|
|
|
|
Counter example
|
|
Within chapter
|
|
LabelString "(\arabic{example})"
|
|
End
|
|
|
|
Counter examplei
|
|
Within chapter
|
|
LabelString "(\arabic{examplei})"
|
|
End
|
|
|
|
Counter subexample
|
|
Within examplei
|
|
LabelString "\theexamplei (\alph{subexample})"
|
|
End
|
|
|
|
Counter subexamplei
|
|
Within examplei
|
|
LabelString "\theexamplei (\alph{subexamplei})"
|
|
End
|
|
|
|
OutlinerName tableau "Tableaux" #no AddToToc (built-in)
|
|
|
|
# single numbered example with covington.sty
|
|
Style Numbered_Example_(multiline)
|
|
LatexType Environment
|
|
LatexName covexample
|
|
NextNoIndent 1
|
|
Margin First_Dynamic
|
|
ParIndent (1)x
|
|
LabelSep xx
|
|
ParSkip 0.0
|
|
ItemSep 0.2
|
|
TopSep 0.7
|
|
BottomSep 0.7
|
|
ParSep 0.3
|
|
Align Block
|
|
AlignPossible Block, Left
|
|
LabelType Static
|
|
LabelCounter "examplei"
|
|
LabelFont
|
|
Color Blue
|
|
EndFont
|
|
Requires covington
|
|
Category Linguistics
|
|
End
|
|
|
|
|
|
# multiple numbered examples with covington.sty
|
|
Style Numbered_Examples_(consecutive)
|
|
CopyStyle Numbered_Example_(multiline)
|
|
LatexType Item_Environment
|
|
LatexName covexamples
|
|
LabelType Enumerate
|
|
LabelCounter "example"
|
|
ResumeCounter true
|
|
Argument listpreamble:1
|
|
LabelString "List preamble"
|
|
MenuString "List Preamble"
|
|
Tooltip "LaTeX code to be inserted before the first item"
|
|
PassThru 1
|
|
Font
|
|
Family typewriter
|
|
Color latex
|
|
EndFont
|
|
EndArgument
|
|
Argument item:1
|
|
LabelString "Custom Numbering|s"
|
|
Tooltip "Customize the numeration"
|
|
EndArgument
|
|
End
|
|
|
|
|
|
# multiple numbered examples with covington.sty
|
|
Style Subexample
|
|
CopyStyle Numbered_Examples_(consecutive)
|
|
LatexName covsubexamples
|
|
LabelCounter "subexample"
|
|
StepMasterCounter true
|
|
Requires covington
|
|
End
|
|
|
|
|
|
# glosse (2 lines) with covington.sty
|
|
InsetLayout Flex:Interlinear_Gloss_(2_Lines)
|
|
LyXType custom
|
|
LabelString Gloss
|
|
LatexType command
|
|
LatexName digloss
|
|
Decoration minimalistic
|
|
LabelFont
|
|
Size Small
|
|
EndFont
|
|
MultiPar true
|
|
CustomPars false
|
|
ForcePlain true
|
|
ParbreakIgnored true
|
|
FreeSpacing true
|
|
Requires covington,csquotes
|
|
InToc true
|
|
ResetsFont true
|
|
Argument 1
|
|
LabelString "Gloss options"
|
|
MenuString "Gloss Options|s"
|
|
Tooltip "Add digloss options here"
|
|
EndArgument
|
|
Argument post:1
|
|
Decoration conglomerate
|
|
LabelString "Interlinear Gloss"
|
|
MenuString "Interlinear Gloss"
|
|
Tooltip "Add the inter-linear gloss here"
|
|
AutoInsert true
|
|
Mandatory true
|
|
FreeSpacing true
|
|
InsertOnNewline true
|
|
EndArgument
|
|
Argument post:2
|
|
Decoration conglomerate
|
|
LabelString "Translation"
|
|
MenuString "Gloss Translation"
|
|
Tooltip "Add a free translation for the gloss"
|
|
AutoInsert true
|
|
Mandatory true
|
|
FreeSpacing true
|
|
InsertOnNewline true
|
|
EndArgument
|
|
End
|
|
|
|
|
|
# glosse (3 lines) with covington.sty
|
|
InsetLayout Flex:Interlinear_Gloss_(3_Lines)
|
|
LyXType custom
|
|
LabelString Tri-Gloss
|
|
LatexType command
|
|
LatexName trigloss
|
|
Decoration minimalistic
|
|
LabelFont
|
|
Size Small
|
|
EndFont
|
|
MultiPar true
|
|
CustomPars false
|
|
ForcePlain true
|
|
ParbreakIgnored true
|
|
FreeSpacing true
|
|
InToc true
|
|
Requires covington,csquotes
|
|
ResetsFont true
|
|
Argument 1
|
|
LabelString "Gloss options"
|
|
MenuString "Gloss Options|s"
|
|
Tooltip "Add trigloss options here"
|
|
EndArgument
|
|
Argument post:1
|
|
Decoration conglomerate
|
|
LabelString "Interlinear Gloss (1)"
|
|
MenuString "Interlinear Gloss (Line 1)|1"
|
|
Tooltip "Add the first inter-linear gloss line here"
|
|
Mandatory true
|
|
AutoInsert true
|
|
FreeSpacing true
|
|
InsertOnNewline true
|
|
EndArgument
|
|
Argument post:2
|
|
Decoration conglomerate
|
|
LabelString "Interlinear Gloss (2)"
|
|
MenuString "Interlinear Gloss (Line 2)|2"
|
|
Tooltip "Add the first inter-linear gloss line here"
|
|
Mandatory true
|
|
AutoInsert true
|
|
FreeSpacing true
|
|
InsertOnNewline true
|
|
EndArgument
|
|
Argument post:3
|
|
Decoration conglomerate
|
|
LabelString "Translation"
|
|
MenuString "Gloss Translation"
|
|
Tooltip "Add a translation for the glosse"
|
|
Mandatory true
|
|
AutoInsert true
|
|
InsertOnNewline true
|
|
EndArgument
|
|
End
|
|
|
|
|
|
# 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
|
|
Requires forest
|
|
ResetsFont true
|
|
PassThruChars []
|
|
Preamble
|
|
% Load forest linguistics library, if available
|
|
\@ifpackagelater{forest}{2016/02/20}{%
|
|
\useforestlibrary*{linguistics}
|
|
}{}
|
|
EndPreamble
|
|
End
|
|
|
|
|
|
# Some semantik markup for Semantics
|
|
InsetLayout Flex:Expression
|
|
LyxType charstyle
|
|
LabelString expr.
|
|
LatexType command
|
|
LatexName lingexpr
|
|
Font
|
|
Shape Italic
|
|
EndFont
|
|
Preamble
|
|
\newcommand{\lingexpr}[1]{\emph{#1}}
|
|
EndPreamble
|
|
InToc true
|
|
ResetsFont true
|
|
End
|
|
|
|
|
|
InsetLayout Flex:Concepts
|
|
LyxType charstyle
|
|
LabelString concept
|
|
LatexType command
|
|
LatexName lingconcept
|
|
Font
|
|
Shape Smallcaps
|
|
EndFont
|
|
Preamble
|
|
\newcommand{\lingconcept}[1]{\textsc{#1}}
|
|
EndPreamble
|
|
InToc true
|
|
ResetsFont true
|
|
End
|
|
|
|
|
|
InsetLayout Flex:Meaning
|
|
LyxType charstyle
|
|
LabelString meaning
|
|
LatexType command
|
|
LatexName lingmeaning
|
|
Requires csquotes
|
|
Preamble
|
|
\newcommand{\lingmeaning}[1]{\enquote*{#1}}
|
|
EndPreamble
|
|
InToc true
|
|
ResetsFont true
|
|
End
|
|
|
|
|
|
# A helper to group words in Glosses
|
|
InsetLayout Flex:GroupGlossedWords
|
|
LyxType charstyle
|
|
LabelString Group
|
|
LeftDelim {
|
|
RightDelim }
|
|
ResetsFont true
|
|
End
|
|
|
|
|
|
# Tableaux for Optimality Theory
|
|
OutlinerName tableau "Tableaux" #no AddToToc
|
|
|
|
Float
|
|
Type tableau
|
|
GuiName Tableau
|
|
Placement tbp
|
|
Extension otl
|
|
NumberWithin none
|
|
Style plain
|
|
ListName "List of Tableaux"
|
|
IsPredefined false
|
|
UsesFloatPkg true
|
|
End
|
|
|