-
Notifications
You must be signed in to change notification settings - Fork 1
/
localpackages.tex
81 lines (66 loc) · 2.83 KB
/
localpackages.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
% add all extra packages you need to load to this file
\usepackage{url}
% Math
\usepackage{amsmath}
\usepackage{unicode-math}
\setmathfont{Asana-Math.otf} % this looks much better for formulas
\usepackage[libertine]{newtxmath}
% \usepackage[no-math]{fontspec}
% % override defaults from langsci.cls
% % to get straight quotes in code-snippets
% \setmonofont[
% Ligatures={Common},Scale=MatchLowercase,Path=\fontpath,
% BoldFont = FreeMonoBold_B.otf ,
% SlantedFont = FreeMonoOblique_B.otf ,
% BoldSlantedFont = FreeMonoBoldOblique_B.otf
% ]{FreeMono_B.otf}
% override defaults from langsci.cls
% to get straight quotes in code-snippets
\newfontfamily\myfont[
Ligatures={Common},Scale=0.8,Path=\fontpath,
BoldFont = FreeMonoBold_B.otf ,
SlantedFont = FreeMonoOblique_B.otf ,
BoldSlantedFont = FreeMonoBoldOblique_B.otf
]{FreeMono_B.otf}
% some additional possibilities for enumerations
\usepackage{enumitem}
\setitemize{noitemsep}
\setenumerate{noitemsep}
% sizes
\usepackage{moresize}
% large tables
\usepackage{tabularx}
\usepackage{booktabs} % nice lines in tables
\usepackage{xtab} % xtabular for better multipage tables
\xentrystretch{-0.16} % squeeze more lines on a page
\usepackage{array} % for better handling of columns
\newcolumntype{L}[1]{>{\footnotesize\raggedright\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}
\widowpenalty=10000
\clubpenalty=10000
% I have tried to use monospaced numbers in the TOC, but this does not work...
%\settocstylefeature{\fontspec[Numbers=Monospaced]{LinLibertineO}}
%\settocfeature{\fontspec[Numbers=Monospaced]{LinLibertineO}}
% other ideas that also don't give the desired results
%\usepackage{tocloft}
%\renewcommand{\cftXpagefont}{\fontspec[Numbers=Monospaced]{LinLibertineO}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% %%%
%%% Examples %%%
%%% %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{lsp-gb4e}
%% to add additional information to the right of examples, uncomment the following line
% \usepackage{jambox}
%% if you want the source line of examples to be in italics, uncomment the following line
% \renewcommand{\exfont}{\itshape}
\usepackage{listings}
\lstset{ %
backgroundcolor=\color{white}, % choose the background color; you must add \usepackage{color} or \usepackage{xcolor}
basicstyle=\footnotesize\ttfamily, % the size of the fonts that are used for the code
% keywordstyle=\color{blue!60!black}, % keyword style
keywordstyle=\myfont, % keyword style
language=Python, % the language of the code
% stringstyle=\color{green!60!black}, % string literal style
stringstyle=\myfont, % string literal style
morekeywords={token,xlink:href, Action, Value, Cursor,LogEvent}
}