-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvocabulary_study.tex
251 lines (200 loc) · 7.79 KB
/
vocabulary_study.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
\documentclass[a4paper,14pt]{memoir}
\twocoltocetc % two-column ToC
\usepackage{fontspec}
%\setmainfont[Ligatures=TeX]{Linux Libertine O}
\setmainfont[Ligatures=TeX]{Minion Pro}
%\setmainfont[Ligatures=TeX]{Linux Libertine}
%\setmainfont[Ligatures=TeX]{Palatino Linotype}
%\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{tgpagella} % Palatino-like
%\setmainfont[Mapping=Tex-text]{TeXGyrePagella} % not good
%\newfontfamily\tgp{TeXGyrePagella}
%\newfontfamily\tgp{Palatino Linotype}
%\newfontfamily\tgp{Gentium}
%%%% Define a font capable of rendering IPA (phonetic) symbols
%\newfontfamily{\phoneticfamily}[Scale=MatchLowercase]{Gentium}
%\newfontfamily{\phoneticfamily}[Scale=MatchLowercase]{Linux Libertine O}
\newfontfamily{\phoneticfamily}[Scale=MatchLowercase]{Cardo}
%\newfontfamily{\phoneticfamily}[Scale=MatchLowercase]{Calibri} % not good on Mac
%\newfontfamily{\phoneticfamily}[Scale=MatchLowercase]{Cambria} % not good on Mac
\DeclareTextFontCommand{\phonetic}{\phoneticfamily}
\newfontfamily{\cardofamily}[Scale=MatchLowercase]{Cardo}
\DeclareTextFontCommand{\cardo}{\cardofamily} % supports reversed pilcrow ÎõÎé
%\usepackage[showframe]{geometry}
\usepackage{imakeidx} % must be loaded before hyperref to make links work
\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{multicol}
\usepackage[columns=3]{idxlayout} % three-column index
%\usepackage{pgffor} % for \foreach
\usepackage{xinttools} % for \xintFor
%\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{endnotes}
\usepackage [english]{babel}
\usepackage [autostyle, english = american]{csquotes}
\MakeOuterQuote{"}
\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
%\chapterstyle{section}
\chapterstyle{crosshead}
%\chapterstyle{thatcher}
% 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}{Etymological Dictionary}{}
\makeevenhead{ocd}{\thepage}{English Vocabulary Study}{}
%\makeoddhead{ocd}{\rightmark}{\leftmark}{\thepage} % chapter in center
\makeoddhead{ocd}{}{\rightmark}{\thepage} % chapter in center
\makeevenfoot{ocd}{}{}{}
\makeoddfoot{ocd}{}{}{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 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
% 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{\myitem}[1]{\vspace{0.2cm}\item[\Large{\textbf{#1}}] \index{#1}} % with large label
%% need \phantomsection to make hyperref link work properly
\newcommand{\myitem}[1]{\vspace{0.2cm}\item[\Large{\textbf{#1}}] \index{#1} %
\phantomsection \addcontentsline{toc}{section}{#1}} % with large label
\newcommand{\itembf}[1]{\item[{\textbf{#1}}]} % with bold label
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% synonym item
%% need \phantomsection to make hyperref link work properly
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\synitem}[2] %
{ %
\vspace{0.2cm}\item[\Large{\textbf{#1}}] % with large label
{\xintFor ##1 in {#1} \do {\index{##1}}} % create index for all words
\phantomsection \addcontentsline{toc}{section}{#2} %
} %
% \newcommand{\mylist}[1]{%
% \begin{itemize}[leftmargin=*]
% \item #1
% \end{itemize}
% }
\newcommand{\mychapter}[1]{\chapter*{#1}%
\markright{#1}{}%
\addcontentsline{toc}{chapter}{#1}}%
% custom itemize list with vertical space removed and custom label
\newenvironment{myitemize}
{\begin{itemize}[leftmargin=*,label=$\blackdiamond$,nosep] \vspace{-0.2cm}}
{\end{itemize}}
% custom enumerate list with vertical space removed and custom label
\newenvironment{myenumerate}
%{\begin{enumerate}[leftmargin=*,label=$\blackdiamond$,nosep] \vspace{-0.2cm}}
{\begin{enumerate}[wide, labelwidth=!, labelindent=0pt] }
{\end{enumerate}}
\newenvironment{mynewitemize}
%{\begin{itemize}[leftmargin=*,label=$\blackdiamond$]
%{\begin{itemize}[noitemsep,leftmargin=0pt,label=$\blackdiamond$]
{\begin{itemize}[noitemsep,leftmargin=0pt,label=$\blacktriangleright$]
%{\begin{itemize}[noitemsep,leftmargin=0pt,label=$\mantriangleright$]
\setlength{\itemsep}{5pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt}
%\setlength{\itemindent}{-10pt}
}
{\end{itemize}}
%% remove first blank page
%\usepackage{atbegshi} % http://ctan.org/pkg/atbegshi
%\AtBeginDocument{\AtBeginShipoutNext{\AtBeginShipoutDiscard}}
% Generates the index
%\usepackage{makeidx}
%\makeindex
%\usepackage{imakeidx}
\makeindex[intoc] % added index to toc
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%
%% front matter
%%%%%%%%%%%%%%%%%%%%%%%%%%
\frontmatter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\cleardoublepage
\pagestyle{empty}
\null\vfil % use this will cause a blank page at the beginning
\begin{center}
\Huge\textsf{English Vocabulary Study} \par \vspace{0.5in}
\end{center}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\clearpage
\pagestyle{empty}
\null\vfil
\vfil
%%%%%%%%%%%%%%%%%%%%%%%%
\clearpage
\pagenumbering{roman}
\pagestyle{headings}
\tableofcontents* % no self-reference (in memoir class)
%%%%%%%%%%%%%%%%%%%%%%%%%%
%% main matter
%%%%%%%%%%%%%%%%%%%%%%%%%%
\mainmatter
\pagenumbering{arabic}
\pagestyle{ocd}
\include{text/synonym}
\include{text/a_c}
\include{text/d}
\include{text/webster}
%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 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 Adobe Minon Pro.
\end{center}
\end{adjustwidth}
\vfil
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%