-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheca2019proceedings-vol-2.tex
79 lines (61 loc) · 1.98 KB
/
eca2019proceedings-vol-2.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
\documentclass[a4paper,twoside]{book}
\usepackage[utf8x,utf8]{inputenc}
\usepackage[top=4.5cm,bottom=4.5cm,left=4.5cm,right=4.5cm,asymmetric]{geometry}
\usepackage{pdfpages}
\usepackage{fancyhdr}
\usepackage{paralist}
\usepackage{tocloft}
\usepackage{imakeidx}
\usepackage[hidelinks]{hyperref}
\usepackage[open,openlevel=1]{bookmark}
\usepackage{fontspec}
\setmainfont{Cambria}
\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}}
\cftsetpnumwidth{2em}
%\usepackage[colorlinks]{hyperref}
\makeindex[name=authors,title=Index of Authors]
\makeatletter
\let\origps@plain\ps@plain
\newcommand\MakePlainPagestyleEmpty{\let\ps@plain\ps@empty}
\newcommand\MakePlainPagestylePlain{\let\ps@plain\origps@plain}
\renewcommand{\@tocrmarg}{\@pnumwidth plus1fil} % <-- Revised
\makeatother
\pagestyle{fancy}
\fancyhf{}% Clear page header/footer
\renewcommand{\headrulewidth}{0pt}% No header rule
\fancyfoot[LE,RO]{\thepage} % Page at left on even and right on odd pages
\newcommand{\insertmydocument}[5]%
{ % Syntax: \insertmydocument{Toc level}{Title}{Subtitle}{File}
% Requires: tocloft hyperref pdfpages
\cleardoublepage%
\phantomsection%
{#5}%
\cftaddtitleline{toc}{#1}{#2}{\thepage}%
\cftchapterprecistoc{#3}%
\includepdf[pages=-,pagecommand={\pagestyle{fancy}}]{#4}%
}
\makeindex
\begin{document}
\frontmatter
\includepdf[pages=1-,pagecommand={\thispagestyle{empty}}]{layout/cover-vol-2}
\renewcommand{\thepage}{\roman{page}}
\setcounter{page}{5}
\include{prep}
\cleardoublepage
\include{preface}
\cleardoublepage
\include{keynotes}
\cleardoublepage
\pdfbookmark[chapter]{Table of Contents}{toc}
\tableofcontents
\cleardoublepage
\mainmatter
\MakePlainPagestyleEmpty
\renewcommand{\thepage}{\arabic{page}}
\setcounter{page}{1}
\cleardoublepage
\include{papers-vol-2-with-names}
\cleardoublepage
\printindex[authors]
\includepdf[pages=1-,pagecommand={\thispagestyle{empty}}]{layout/back}
\end{document}