Guest User

Untitled

a guest
Jan 21st, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.16 KB | None | 0 0
  1. %\listfiles
  2. % !TEX TS-program = xelatex
  3. % !TEX encoding = UTF-8
  4.  
  5. \documentclass{scrreprt}
  6. % I use KOMA-script as I find it gives much easier control than a mishmash of different packages.
  7. %% KOMA options
  8. \KOMAoptions{
  9. appendixprefix=false,
  10. chapterprefix=false,
  11. cleardoublepage=empty,
  12. DIV=13,
  13. draft=false,
  14. fontsize=12pt,
  15. headings=big,
  16. open=right,
  17. paper=a4,
  18. parskip=half,
  19. toc=flat,
  20. twoside=semi
  21. }
  22.  
  23. %% Metadata
  24. \title{Qevesa Grammar}
  25. \author{Robbie Smith}
  26. \date{Working Draft: \today}
  27. \usepackage{hyperref}
  28. \hypersetup{
  29. pdfauthor={Robbie Smith},
  30. pdftitle={Qevesa Grammar},
  31. pdfkeywords={},
  32. pdfsubject={Constructed Linguistics},
  33. pdfcreator={XeLaTeX},
  34. colorlinks=false,
  35. pdfborder={0 0 0 0}}
  36. \usepackage[all]{hypcap}
  37.  
  38. %% Language settings
  39. \usepackage{polyglossia}
  40. \setdefaultlanguage[variant=australian]{english}
  41.  
  42. %% This is meant to be a DRAFT
  43. %\usepackage{draftwatermark}
  44. %\SetWatermarkText{\textsf{DRAFT}}
  45. \providecommand{\ToBeWritten}{\emph{To be written\dots}}
  46.  
  47. % Grab the title of the document
  48. \makeatletter
  49. \let\mytitle\@title
  50. \let\myauthor\@author
  51. \let\mydate\@date
  52. \makeatother
  53.  
  54. \usepackage[automark,nouppercase]{scrpage2}
  55. \pagestyle{scrheadings}
  56. \clearscrheadfoot
  57. \lehead[]{\mytitle}
  58. \rohead[]{\leftmark}
  59. \cfoot[\pagemark]{\pagemark}
  60. \renewcommand*{\headfont}{\itshape\scshape}% Will equal \scshape for most fonts
  61. \renewcommand*{\chaptermarkformat}{\chapapp~\thechapter\autodot\enskip}
  62.  
  63. % Numbering and ... stuff
  64. \usepackage{titlesec}
  65. \setcounter{secnumdepth}{4}
  66. \setcounter{tocdepth}{4}
  67. \titlespacing{\section}{0pt}{1.25ex + 0.5ex - 0.25ex}{0.875ex + 0.25ex}
  68. \titlespacing{\subsection}{0pt}{1.125ex + 0.375ex - 0.125ex}{0.875ex + 0.125ex}
  69. \titlespacing{\subsubsection}{0pt}{1.0ex + 0.25ex - 0.125ex}{0.75ex + 0.125ex}
  70. %\titlespacing{\paragraph}{0pt}{1.0ex + 0.125ex - 0.125ex}{0.75ex + 0.125ex}
  71. \makeatletter
  72. \renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
  73. {1.0ex \@plus 0.125ex \@minus 0.125ex}%
  74. {0.75ex \@plus 0.125ex}%
  75. {\normalfont\normalsize\bfseries}}
  76. \makeatother
  77.  
  78. \newenvironment{itemize*}
  79. {\begin{itemize}
  80. \setlength{\itemindent}{0pt}
  81. \setlength{\itemsep}{1.25pt}
  82. \setlength{\parskip}{0.5pt}
  83. \setlength{\parsep}{0.5pt}}
  84. %\setlength{\leftmargin}{1.5em}
  85. {\end{itemize}}
  86.  
  87. \renewcommand*{\appendixmore}{
  88. \renewcommand*{\chapterformat}{\appendixname~\thechapter\autodot\enskip}
  89. \renewcommand*{\chaptermarkformat}{\appendixname~\thechapter\autodot\enskip}
  90. }
  91.  
  92. \renewcommand*{\tableformat}{\tablename~\thetable\autodot}
  93. \renewcommand*{\captionformat}{~}
  94.  
  95. \usepackage{subfiles}
  96.  
  97. %% Font settings
  98. % If I want to use mathematics fonts I can use mathspec instead of fontspec and it will probably work.
  99. \usepackage{fontspec}
  100. \defaultfontfeatures{Mapping=tex-text}
  101. \usepackage{xunicode}
  102. \usepackage{xltxtra}
  103. \setmainfont{Linux Libertine O}
  104. \setromanfont{Linux Libertine O}
  105. \setsansfont{Linux Biolinum O}
  106. \setmonofont[Scale=MatchLowercase]{DejaVu Sans Mono}
  107. %\setmathfont{Linux Libertine O}
  108.  
  109. %% Underline capable (but not needed here
  110. %\usepackage[normalem]{ulem}
  111.  
  112. \usepackage{enumitem}
  113.  
  114. %% Table tricks
  115. \usepackage{array}
  116. \usepackage{multirow}
  117. \usepackage{multicol}
  118. \usepackage{tabularx}
  119. \usepackage{xtab}
  120. \usepackage[font=small,textfont=it,labelfont=up,format=hang,parskip=5pt]{caption,subfig}
  121.  
  122. \newcommand{\SetRowStyle}[1]{\gdef\RowStyle{#1}#1\ignorespaces}
  123. \newcolumntype{f}{>{\global\let\RowStyle\relax}}
  124. \newcolumntype{-}{>{\RowStyle}}
  125. \newcolumntype{C}{>{\centering\arraybackslash}X}
  126. \renewcommand{\arraystretch}{1.25}
  127. \renewcommand{\tabcolsep}{3pt}
  128.  
  129. %% Other settings
  130. \hyphenpenalty=5000
  131. \tolerance=500
  132. \widowpenalty=1500
  133. \clubpenalty=1500
  134.  
  135. \usepackage{gb4e} % gb4e might be obsolete, not sure whether to replace with ExPex
  136. \noautomath
  137. \let\eachwordone=\textit
  138.  
  139. \renewcommand{\sup}[1]{\textsuperscript{#1}}
  140. \providecommand{\sub}[1]{\textsubscript{#1}}
  141.  
  142. \providecommand{\dec}{\textsubscript{10}}
  143. \providecommand{\subdec}{\textsubscript{10}}
  144. \providecommand{\duo}{\textsubscript{12}}
  145. \providecommand{\subduo}{\textsubscript{12}}
  146.  
  147. \providecommand{\bs}{\textbackslash}
  148.  
  149. % Shortcuts for IPA symbols
  150. \providecommand{\superh}{\textsuperscript{h}}
  151. \providecommand{\superj}{\textsuperscript{j}}
  152. \providecommand{\superw}{\textsuperscript{w}}
  153.  
  154. %%% END PREAMBLE
  155.  
  156. \begin{document}
  157.  
  158. \maketitle
  159. %\frontmatter
  160. %\subfile{titlepage}
  161.  
  162. \setcounter{secnumdepth}{-1}% Unnumbered chapters
  163. \pagenumbering{roman}
  164.  
  165. \tableofcontents
  166.  
  167. % Uncomment when you add some figures
  168. %\listoffigures
  169.  
  170. \listoftables
  171.  
  172. \subfile{preface}
  173.  
  174. % \pagestyle{fancy}
  175. %\mainmatter
  176. \setcounter{secnumdepth}{4}
  177. % Uncomment this when finished to place chapters on right pages.
  178. %\KOMAoptions{open=right}
  179.  
  180. \subfile{background}
  181.  
  182. \subfile{phonology}
  183.  
  184. \subfile{morphological-typology}
  185.  
  186. \subfile{derivational-morphology}
  187.  
  188. \subfile{verbal-morphology}
  189.  
  190. \subfile{nominal-morphology}
  191.  
  192. \subfile{adjectival-morphology}
  193.  
  194. \subfile{numerals}
  195.  
  196. %\subfile{postpositions}
  197.  
  198. \subfile{constituent-order-typology}
  199.  
  200. %\subfile{verbal-syntax}
  201.  
  202. %\subfile{nominal-syntax}
  203.  
  204. %\subfile{registers}
  205.  
  206. %\subfile{valency}
  207.  
  208. %\subfile{verbphrases}
  209.  
  210. %\subfile{pragmatics}
  211.  
  212. %\subfile{clauses}
  213.  
  214. % APPENDICES
  215. \appendix
  216. %\renewcommand{\thechapter}{\Alph{chapter}}
  217. \subfile{abbreviations}
  218. %\backmatter
  219.  
  220. \end{document}
Add Comment
Please, Sign In to add comment