-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdarconville.tex
284 lines (239 loc) · 8.75 KB
/
darconville.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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
\documentclass[a4paper,14pt]{memoir}
\usepackage{fontspec}
\setmainfont[Ligatures=TeX]{Linux Libertine O}
%\setmainfont[Ligatures=TeX]{Minion Pro}
%\setmainfont[Ligatures=TeX]{Linux Libertine}
%\setmainfont[Ligatures=TeX]{EB Garamond}
%\setmainfont[Ligatures=TeX]{Garamond}
%\setmainfont[Ligatures=TeX]{Garamond Premier Pro}
%\setmainfont[Ligatures=TeX]{GaramondNo8}
%\usepackage{devanagari} % sanskrit, does not work too well
\usepackage{xeCJK}
%\setCJKmainfont{SimSun}
\newfontfamily{\cardofamily}[Scale=MatchLowercase]{Cardo}
\DeclareTextFontCommand{\cardo}{\cardofamily} % supports reversed pilcrow ÎõÎé
%\usepackage[showframe]{geometry}
\usepackage[plainpages=false,pdfpagelabels,bookmarksnumbered]{hyperref}
\usepackage{memhfixc} % adjustment for using hyperref in memoir class
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mathabx} % for \blackdiamond
\usepackage{parskip}
\usepackage{enumitem} % for list indentation etc.
\usepackage[columns=3]{idxlayout} % three-column index
\usepackage{footnotebackref}
%% from https://tex.stackexchange.com/questions/116016/package-footnotebackref-conflict-with-memoir
\makeatletter
\renewcommand\@makefntext[1]{%
\let\BHFN@thefnmark\@thefnmark
\renewcommand\@thefnmark{\hyperref[\BackrefFootnoteTag]{\BHFN@thefnmark}}%
\BHFN@OldMakefntext{#1}}%
\makeatother
%\usepackage{arabxetex}
%\newfontfamily{\arabicfont}[Script=Arabic,Scale=1.5]{Traditional Arabic}
%\newcommand{\myarabic}[1]{{\arabicfont\RL{#1}}}
%\newfontfamily\sanskritfont[Script=Devanagari,Mapping=velthuis-sanskrit]{nakula.ttf}
%\newcommand{\mysanskrit}[1]{{\sanskritfont{#1}}}
%\usepackage[protrusion=true,expansion=true]{microtype} % after loading fonts
\usepackage [english]{babel}
\usepackage [autostyle, english = american]{csquotes}
\MakeOuterQuote{"}
%% to increase the width of Roman chapter number in ToC
\setlength\cftchapternumwidth{4.7em}
\settrimmedsize{11in}{210mm}{*}
\setlength{\trimtop}{0pt}
\setlength{\trimedge}{\stockwidth}
\addtolength{\trimedge}{-\paperwidth}
\settypeblocksize{9.25in}{33pc}{*}
\setulmargins{3cm}{*}{0.5}
%\setulmargins{*}{0.5in}{*}
%\setlrmargins{0.5in}{*}{0.5}
%\setulmarginsandblock{1.0in}{*}{1.0}
\setlrmarginsandblock{1.2in}{*}{1.5}
\setmarginnotes{0pt}{0pt}{\onelineskip} % changed by Pengcheng, no margin
%\setheadfoot{\onelineskip}{2\onelineskip}
\setheadfoot{\onelineskip}{\onelineskip}
%\setheaderspaces{*}{2\onelineskip}{*}
\setheaderspaces{*}{\onelineskip}{*} % changed by Pengcheng
\addtolength{\textwidth}{60pt} % increase text width
\addtolength{\foremargin}{-60pt}
%\addtolength{\textheight}{60pt}
\checkandfixthelayout
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% chapter style VZ23 by Vincent Zoonekynd
%% code adapted from Lars Madsen, Various Chapter Styles
%% for the Memoir Class, pp.44-45
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setlength\midchapskip{10pt}
\makechapterstyle{VZ23} {
\renewcommand\chapternamenum{}
\renewcommand\printchaptername{}
\renewcommand\chapnumfont{\Huge\bfseries\centering}
\renewcommand\chaptitlefont{\Huge\scshape\centering}
\renewcommand\afterchapternum{%
%\par\nobreak\vskip\midchapskip\hrule\vskip\midchapskip}
\par\nobreak\vskip\midchapskip\vskip\midchapskip}
\renewcommand\printchapternonum{%
\vphantom{\chapnumfont \thechapter}
%\par\nobreak\vskip\midchapskip\hrule\vskip\midchapskip}
\par\nobreak\vskip\midchapskip\vskip\midchapskip}
}
% %\chapterstyle{section}
% \chapterstyle{crosshead}
% %\chapterstyle{culver}
% %\chapterstyle{thatcher}
\chapterstyle{VZ23}
\renewcommand \thechapter{\Roman{chapter}} % chapter numbering in Roman
\newcommand{\mynote}[2]{\footnote{\textit{#1} #2} \index{#1}} % with large label
% % page style of Oxford Classical Texts
% % \makepagestyle{ocd}
% % \makeevenhead{ocd}{\rightmark}{Etymological Dictionary}{}
% % \makeoddhead{ocd}{\rightmark}{\leftmark}{} % chapter in center
% % \makeevenfoot{ocd}{}{\thepage}{}
% % \makeoddfoot{ocd}{}{\thepage}{}
% \makepagestyle{ocd}
% \makeevenhead{ocd}{\thepage}{English Vocabulary Study}{}
% \makeoddhead{ocd}{\rightmark}{\leftmark}{\thepage} % chapter in center
% \makeevenfoot{ocd}{}{}{}
% \makeoddfoot{ocd}{}{}{}
\makepagestyle{ocd}
\makeevenhead{ocd}{\thepage}{DARCONVILLE'S CAT}{}
\makeoddhead{ocd}{}{\rightmark}{\thepage} % chapter in center
\makeevenfoot{ocd}{}{}{}
\makeoddfoot{ocd}{}{}{}
% set \rightmark to chapter name
\makepsmarks{ocd}{%
\nouppercaseheads
% \createmark{part}{left}{nonumber}{}{. \space}
\createmark{chapter}{right}{shownumber}{}{. \ }
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Set \vin which is a short hand of \hspace{\vgap}, default value
%% of \vgap is 1.5em
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setlength{\vgap}{1em}
\setlength{\vrightskip}{-2em} % distance of line number from right margin
\usepackage{indentfirst} % add indentation to first line of each chapter
\usepackage{manfnt} % for Bourbaki \dbend
% custom item
\newcommand{\sep}{\blackdiamond} % seperator
\newcommand{\nl}{\newline$\sep\,$} % newline + seperator + a little space
\newcommand{\myitem}[1]{\item[\large{\textbf{#1}}] \index{#1}} % with large label
\newcommand{\mylist}[1]{%
\begin{itemize}[leftmargin=*]
\item #1
\end{itemize}
}
% custom itemize list with vertical space removed and custom label
\newenvironment{myitemize}
{\begin{itemize}[leftmargin=*,label=$\blackdiamond$,nosep] \vspace{-0.2cm}}
{\end{itemize}}
%% remove first blank page
%\usepackage{atbegshi} % http://ctan.org/pkg/atbegshi
%\AtBeginDocument{\AtBeginShipoutNext{\AtBeginShipoutDiscard}}
% Generates the index
\usepackage{makeidx}
\makeindex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%
%% front matter
%%%%%%%%%%%%%%%%%%%%%%%%%%
\frontmatter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\cleardoublepage
\pagestyle{empty}
\null\vfil % use this will cause a blank page at the beginning
\begin{center}
\Huge\textsf{Notes on Darconville's Cat} \par \vspace{0.5in}
\end{center}
%\begin{center}
% \normalsize\textsf{AN} \par \vspace{0.5in}
% \Huge\textsf{ETYMOLOGICAL DICTIONARY} \par \vspace{0.5in}
% \normalsize\textsf{OF THE} \par \vspace{0.5in}
% \Huge\textsf{ENGLISH LANGUAGE} \vspace{0.75in}
%
% \normalsize{By THE} \par
% \large{REV. WALTER W. SKEAT, LITT.D., D.C.L., LL.D., PH.D., F.B.A.} \par \vspace{0.25in}
% \tiny{ELRINGTON AND BOSWORTH PROFESSOR OF ANGLO-SAXON IN THE UNIVERSITY OF CAMBRIDGE \par
% AND FELLOW OF CHRIST'S COLLEGE}
%
% \vspace{1in}
% \normalsize{NEW EDITION REVISED AND ENLARGED} \par
% \vspace{0.5in}
% \small{
% `Step after step the ladder is ascended.' \par
% GEORGE HERBERT, \textit{Jacula Prudentum}. \par
% `Labour with what zeal we will, \par
% Something still remains undone.' \par
% LONGFELLOW, \textit{Birds of Passage.}
% }
%
% \vspace{1in}
% \large{
% OXFORD \par
% AT THE CLARENDON PRESS \par
% 1910
% }
%\end{center}
%%\vfil
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\clearpage
\pagestyle{empty}
\null\vfil
%\begin{center}
% OXFORD \par
% PRINTED AT THE CLARENDON PRESS \par
% BY HORACE HART, M.A. \par
% PRINTER TO THE UNIVERSITY
%\end{center}
\vfil
%%%%%%%%%%%%%%%%%%%%%%%%
\clearpage
\pagenumbering{roman}
\pagestyle{headings}
\include{text/explicitur}
\tableofcontents* % no self-reference (in memoir class)
%\include{front_matter}
%%%%%%%%%%%%%%%%%%%%%%%%%%
%% main matter
%%%%%%%%%%%%%%%%%%%%%%%%%%
\mainmatter
\pagenumbering{arabic}
\pagestyle{ocd}
\include{text/chap01}
\include{text/chap02}
\include{text/chap03}
\include{text/chap04}
\include{text/chap05}
\include{text/chap06}
\include{text/chap07}
\include{text/chap08}
\include{text/chap09}
\include{text/chap10}
\include{text/chap11}
\include{text/chap12}
%%%%%%%%%%%%%%%%%%%%%%%%%%
%% back matter
%%%%%%%%%%%%%%%%%%%%%%%%%%
\backmatter
\printindex
\cleardoublepage
\pagestyle{empty}
\null\vfil
\begin{adjustwidth}{1in}{1in}
\begin{center}
{\Large\textsf{Colophon}}
\end{center}
\begin{center}
This document was typeset using the xeTeX typesetting system
and the memoir class. The body text is set to 14pt on a
33pc measure with Linux Libertine. Arabic text was typeset using Arabxetex
package and Traditional Arabic font. Sanskrit text was typeset using
Devanagari package and Nakula font developted by John Smith.
Greek text was typed using Tavultesoft Keyman Desktop 9.0.
\end{center}
\end{adjustwidth}
\vfil
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%