-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproust.tex
executable file
·153 lines (120 loc) · 4.27 KB
/
proust.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
\documentclass[a4paper,14pt,extrafontsizes]{memoir}
\usepackage{fontspec}
\setmainfont[Ligatures=TeX]{Linux Libertine O}
%\setmainfont[Ligatures=TeX]{LinLibertine_R.otf}
%\setmainfont[Ligatures=TeX]{EB Garamond}
%\usepackage{tgpagella}
%\usepackage{libertine}
%\usepackage{ebgaramond}
%\usepackage[showframe]{geometry}
\usepackage[plainpages=false,pdfpagelabels,bookmarksnumbered]{hyperref}
\usepackage{memhfixc} % adjustment for using hyperref in memoir class
\usepackage{amsmath}
\usepackage[french]{babel}
%\usepackage{etoolbox}
%\usepackage{amssymb}
\usepackage{graphicx,amssymb} % \blacklozenge
\DisemulatePackage{setspace}
\usepackage{setspace}
%\usepackage[protrusion=true,expansion=true]{microtype} % after loading fonts
\settrimmedsize{11in}{210mm}{*}
\setlength{\trimtop}{0pt}
\setlength{\trimedge}{\stockwidth}
\addtolength{\trimedge}{-\paperwidth}
\settypeblocksize{8.75in}{33pc}{*}
\setulmargins{3.6cm}{*}{*} % smaller value makes header higher
%\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}{15pt} % increase text width
\addtolength{\foremargin}{-15pt}
\checkandfixthelayout
%\renewcommand{\baselinestretch}{1.1}
\setstretch{1.1}
%\chapterstyle{section}
\chapterstyle{crosshead}
%\chapterstyle{thatcher}
% page style of Oxford Classical Texts
\makepagestyle{ocd}
\makeevenhead{ocd}{\thepage}{Du côté de chez Swann}{}
\makeoddhead{ocd}{}{\leftmark}{\thepage} % part name in center
\makeevenfoot{ocd}{}{}{}
\makeoddfoot{ocd}{}{}{}
% set \leftmark to part name and \rightmark to chapter name
\makepsmarks{ocd}{%
\nouppercaseheads
\createmark{part}{left}{nonumber}{}{. \space}
\createmark{chapter}{right}{nonumber}{}{}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 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
%% remove first blank page
%\usepackage{atbegshi} % http://ctan.org/pkg/atbegshi
%\AtBeginDocument{\AtBeginShipoutNext{\AtBeginShipoutDiscard}}
%% PRL style seperator between paragraphs
\newcommand{\PRLsep}
{\noindent\makebox[\linewidth]{\resizebox{0.3333\linewidth}{1pt}
{$\blacklozenge$}}\bigskip}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%
%% front matter
%%%%%%%%%%%%%%%%%%%%%%%%%%
\frontmatter
%\maketitle
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\cleardoublepage
\pagestyle{empty}
%\null\vfil % use this will cause a blank page at the beginning
\begin{center}
\LARGE{MARCEL PROUST} \par \vspace{1.2in}
\HUGE{À la recherche} \par \vspace{0.2in}
\HUGE{du temps perdu} \par \vspace{0.5in}
\LARGE{I} \par \vspace{0.5in}
\LARGE{Du côté de chez Swann} \par \vspace{2.7in}
%\LARGE{GALLIMARD}
\end{center}
%%%%%%%%%%%%%%%%%%%%%%%%
\cleardoublepage
\pagenumbering{roman}
\pagestyle{headings}
\tableofcontents* % no self-reference (in memoir class)
%%%%%%%%%%%%%%%%%%%%%%%%%%
%% main matter
%%%%%%%%%%%%%%%%%%%%%%%%%%
\mainmatter
\pagenumbering{arabic}
\pagestyle{ocd}
\include{swann}
%%%%%%%%%%%%%%%%%%%%%%%%%%
%% back matter
%%%%%%%%%%%%%%%%%%%%%%%%%%
\backmatter
\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. The text was taken from the
Adelaide Library
(\url{https://ebooks.adelaide.edu.au/p/proust/marcel/p96d/index.html}).
\end{center}
\end{adjustwidth}
\vfil
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%