/
main.tex
158 lines (126 loc) · 4.06 KB
/
main.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% %%%
%%% Language Science Press Master File %%%
%%% follow the instructions below %%%
%%% %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% please fill in some information in the following lines as soon
% as you have it
% Everything following a % is ignored
% Some lines start with %. Remove the % to include them
\documentclass[output=book
,modfonts
,nonflat
% ,colorlinks
% ,showindex
% ,draft,draftmode
]{langsci/langscibook}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% %%%
%%% additional packages %%%
%%% %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% put all additional commands you need in the
% following files. If you do not know what this might
% mean, you can safely ignore this section
\usepackage{localmetadata}
\usepackage{localpackages}
\usepackage{localhyphenation}
\usepackage{localcommands}
\usepackage{authorindex}
\usepackage{scrpage2}
\bibliography{JABbib-merge}
% \bibliography{sorted}
\begin{document}
\maketitle
\frontmatter
\tableofcontents
% \lsPageStyleEmpty
\include{chapters/lsp-cli-preface}
\include{chapters/lsp-cli-acknowledgement}
\ohead{Abbreviations}
\include{chapters/lsp-cli-abbreviations-part1}
\include{chapters/lsp-cli-abbreviations}
\mainmatter
\ohead{\headmark}
\part{Introduction}
\include{chapters/lsp-cli-introduction}
% set page headers
\lohead{}
\rohead{}
\ohead{}
\ihead{}
\chead{\rightmark\hfill\leftmark}
{\sloppy
\newpage
\part{Chakali-English dictionary}
\label{part:part1}
\newcommand{\headrulewidth}{0pt}
\setlength{\columnsep}{3em}
\setlength{\parindent}{0pt}
\input{chapters/a-l}
\input{chapters/m-z}
\renewcommand{\lsgloss}[1]{\textbf{#1}\markboth{#1}{#1}}
\renewcommand{\definition}[1]{\textbf{#1}\markboth{#1}{#1}}
\renewcommand{\headword}[1]{{#1}}
\renewcommand{\homograph}[1]{\textsuperscript{#1}}
\renewcommand{\sensenr}[1]{\textsubscript{#1}}
\newpage
\part{English-Chakali reversal index}
\label{part:index}
\include{chapters/invertdictionary}
}
\chead{}
\ohead{\headmark}
%
\newpage
\part{Grammatical outlines}
\label{part:gram-part}
\chead{}
\ohead{\headmark}
\renewcommand\thechapter{\hspace*{-3.8mm}}
\renewcommand\thesection{\arabic{section}}
\renewcommand\thetable{\arabic{table}}
\renewcommand\thefigure{\arabic{figure}}
\begingroup %remove pagebreaks in chapters
\renewcommand{\cleardoublepage}{}
\let\myclearpage\clearpage
\renewcommand{\clearpage}{}
\lehead{Grammatical outlines}
\include{chapters/lsp-cli-phonology}
\newpage
\include{chapters/lsp-cli-sketchgrammar}
\endgroup%close removal of pagebreaks in chapters
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% %%%
%%% Backmatter %%%
%%% %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\backmatter
\sloppy
\ohead{References}
% \addcontentsline{toc}{chapter}{List of references}
\printbibliography[heading=references]
\clearpage
\ohead{\headmark}
\phantomsection%this allows hyperlink in ToC to work
\addcontentsline{toc}{part}{Index}
\phantomsection%this allows hyperlink in ToC to work
\addcontentsline{toc}{chapter}{Name index}
\ohead{Name index}
\printindex
\phantomsection%this allows hyperlink in ToC to workmake
\addcontentsline{toc}{chapter}{Language index}
\ohead{Language index}
\printindex[lan]
\phantomsection%this allows hyperlink in ToC to workmake
\addcontentsline{toc}{chapter}{Subject index}
\ohead{Subject index}
\printindex[sbj]
\end{document}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% %%%
%%% END %%%
%%% %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%