|
| 1 | +% see http://info.semprag.org/basics for a full description of this template |
| 2 | +\documentclass[$for(classoption)$$classoption$$sep$,$endfor$]{glossa} |
| 3 | + |
| 4 | +% possible options: |
| 5 | +% [times] for Times font (default if no option is chosen) |
| 6 | +% [cm] for Computer Modern font |
| 7 | +% [lucida] for Lucida font (not freely available) |
| 8 | +% [brill] open type font, freely downloadable for non-commercial use from http://www.brill.com/about/brill-fonts; requires xetex |
| 9 | +% [charis] for CharisSIL font, freely downloadable from http://software.sil.org/charis/ |
| 10 | +% for the Brill an CharisSIL fonts, you have to use the XeLatex typesetting engine (not pdfLatex) |
| 11 | +% for headings, tables, captions, etc., Fira Sans is used: https://www.fontsquirrel.com/fonts/fira-sans |
| 12 | +% [biblatex] for using biblatex (the default is natbib, do not load the natbib package in this file, it is loaded automatically via the document class glossa.cls) |
| 13 | +% [linguex] loads the linguex example package |
| 14 | +% !! a note on the use of linguex: in glossed examples, the third line of the example (the translation) needs to be prefixed with \glt. This is to allow a first line with the name of the language and the source of the example. See example (2) in the text for an illustration. |
| 15 | +% !! a note on the use of bibtex: for PhD dissertations to typeset correctly in the references list, the Address field needs to contain the city (for US cities in the format "Santa Cruz, CA") |
| 16 | + |
| 17 | +%\addbibresource{sample.bib} |
| 18 | +% the above line is for use with biblatex |
| 19 | +% replace this by the name of your bib-file (extension .bib is required) |
| 20 | +% comment out if you use natbib/bibtex |
| 21 | + |
| 22 | +\let\B\relax %to resolve a conflict in the definition of these commands between xyling and xunicode (the latter called by fontspec, called by charis) |
| 23 | +\let\T\relax |
| 24 | +\usepackage{xyling} %for trees; the use of xyling with the CharisSIL font produces poor results in the branches. This problem does not arise with the packages qtree or forest. |
| 25 | +\usepackage[linguistics]{forest} %for nice trees! |
| 26 | +\usepackage{longtable} |
| 27 | + |
| 28 | +\providecommand{\tightlist}{% |
| 29 | + \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} |
| 30 | + |
| 31 | +\title[$if(shorttitle)$$shorttitle$$endif$]{$title$$if(wordcount)$\\ \bigskip \large Word count: $wordcount$$endif$} |
| 32 | +% Optional short title inside square brackets, for the running headers. |
| 33 | + |
| 34 | +% \author[Paul \& Vanden Wyngaerd]% short form of the author names for the running header. If no short author is given, no authors print in the headers. |
| 35 | +% {%as many authors as you like, each separated by \AND. |
| 36 | +% \spauthor{Waltraud Paul\\ |
| 37 | +% \institute{CNRS, CRLAO}\\ |
| 38 | +% \small{105, Bd. Raspail, 75005 Paris\\ |
| 39 | +% waltraud.paul@ehess.fr} |
| 40 | +% } |
| 41 | +% \AND |
| 42 | +% \spauthor{Guido Vanden Wyngaerd \\ |
| 43 | +% \institute{KU Leuven}\\ |
| 44 | +% \small{Warmoesberg 26, 1000 Brussel\\ |
| 45 | +% guido.vandenwyngaerd@kuleuven.be} |
| 46 | +% }% |
| 47 | +% } |
| 48 | + |
| 49 | +\author[$if(shortauthors)$$shortauthors$$endif$]{ |
| 50 | + $for(author)$ |
| 51 | + \spauthor{$author.name$\\ |
| 52 | + \institute{$author.affiliation$}\\ |
| 53 | + \small{$author.address$} |
| 54 | + }% |
| 55 | + $sep$\AND$endfor$ |
| 56 | +} |
| 57 | + |
| 58 | +$if(natbib)$ |
| 59 | +\usepackage{natbib} |
| 60 | +$endif$ |
| 61 | +$if(biblatex)$ |
| 62 | +\usepackage[$for(biblatexoptions)$$biblatexoptions$$sep$,$endfor$]{biblatex} |
| 63 | +$for(bibliography)$ |
| 64 | +\addbibresource{$bibliography$} |
| 65 | +$endfor$ |
| 66 | +$endif$ |
| 67 | + |
| 68 | +% Pandoc syntax highlighting |
| 69 | +$if(highlighting-macros)$ |
| 70 | +$highlighting-macros$ |
| 71 | +$endif$ |
| 72 | + |
| 73 | +% Note that pandoc citeproc is not supported by the template |
| 74 | +% and we added the following code here just in case it will be supported in |
| 75 | +% the future |
| 76 | +$if(csl-refs)$ |
| 77 | +\newlength{\csllabelwidth} |
| 78 | +\setlength{\csllabelwidth}{3em} |
| 79 | +\newlength{\cslhangindent} |
| 80 | +\setlength{\cslhangindent}{1.5em} |
| 81 | +% for Pandoc 2.8 to 2.10.1 |
| 82 | +\newenvironment{cslreferences}% |
| 83 | + {$if(csl-hanging-indent)$\setlength{\parindent}{0pt}% |
| 84 | + \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}% |
| 85 | + {\par} |
| 86 | +% For Pandoc 2.11+ |
| 87 | +\newenvironment{CSLReferences}[2] % #1 hanging-ident, #2 entry spacing |
| 88 | + {% don't indent paragraphs |
| 89 | + \setlength{\parindent}{0pt} |
| 90 | + % turn on hanging indent if param 1 is 1 |
| 91 | + \ifodd #1 \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces\fi |
| 92 | + % set entry spacing |
| 93 | + \ifnum #2 > 0 |
| 94 | + \setlength{\parskip}{#2\baselineskip} |
| 95 | + \fi |
| 96 | + }% |
| 97 | + {} |
| 98 | +\usepackage{calc} % for calculating minipage widths |
| 99 | +\newcommand{\CSLBlock}[1]{#1\hfill\break} |
| 100 | +\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{#1}} |
| 101 | +\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}\break} |
| 102 | +\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1} |
| 103 | +$endif$ |
| 104 | + |
| 105 | +$if(listings)$ |
| 106 | +\usepackage{listings} |
| 107 | +$endif$ |
| 108 | +$if(lhs)$ |
| 109 | +\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{} |
| 110 | +$endif$ |
| 111 | + |
| 112 | +$if(verbatim-in-note)$ |
| 113 | +\usepackage{fancyvrb} |
| 114 | +\VerbatimFootnotes % allows verbatim text in footnotes |
| 115 | +$endif$ |
| 116 | + |
| 117 | +$for(header-includes)$ |
| 118 | +$header-includes$ |
| 119 | +$endfor$ |
| 120 | + |
| 121 | +\begin{document} |
| 122 | + |
| 123 | +$for(include-before)$ |
| 124 | +$include-before$ |
| 125 | +$endfor$ |
| 126 | + |
| 127 | +\sffamily |
| 128 | +\maketitle |
| 129 | + |
| 130 | +$if(abstract)$ |
| 131 | +\begin{abstract} |
| 132 | +$abstract$ |
| 133 | +\end{abstract} |
| 134 | +$endif$ |
| 135 | + |
| 136 | +$if(keywords)$ |
| 137 | +\begin{keywords} |
| 138 | + $keywords$ |
| 139 | +\end{keywords} |
| 140 | +$endif$ |
| 141 | + |
| 142 | +\rmfamily |
| 143 | + |
| 144 | +% Body of the article |
| 145 | +$body$ |
| 146 | + |
| 147 | +$if(natbib)$ |
| 148 | +$if(bibliography)$ |
| 149 | +$if(biblio-title)$ |
| 150 | +$if(book-class)$ |
| 151 | +\renewcommand\bibname{$biblio-title$} |
| 152 | +$else$ |
| 153 | +\renewcommand\refname{$biblio-title$} |
| 154 | +$endif$ |
| 155 | +$endif$ |
| 156 | +\bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$} |
| 157 | +$endif$ |
| 158 | +$endif$ |
| 159 | +$if(biblatex)$ |
| 160 | +\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$ |
| 161 | +$endif$ |
| 162 | + |
| 163 | +$for(include-after)$ |
| 164 | +$include-after$ |
| 165 | + |
| 166 | +$endfor$ |
| 167 | + |
| 168 | +\end{document} |
0 commit comments