This repository has been archived by the owner on Apr 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
main-matter.tex
73 lines (62 loc) · 2.02 KB
/
main-matter.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
\documentclass[twoside,12pt]{article}
\usepackage{fancyhdr}
\usepackage[margin=1in]{geometry}
\usepackage{hyperref}
\usepackage{minitoc}
\usepackage{pdfpages}
\usepackage{stmaryrd}
\usepackage{textcomp}
\usepackage[normalem]{ulem}
\newcommand{\setfootershift}[1]{\lhead{} \rhead{} \cfoot{\vspace{#1} \colorbox{white}{\ \thepage\ }}}
% USAGE: \addproceedings{intro}
\newcommand{\addproceedings}[1]{
\renewcommand{\contentsname}{#1}
\tableofcontents
\pagebreak}
% USAGE: \addtrack{number}{name}
\newcommand{\addtrack}[3][]{
\cleardoublepage
\begin{center}
#1
#2
\section*{#3}
\addcontentsline{toc}{section}{#2: #3}
#1
\end{center}
\secttoc}
% USAGE: \addpaper{title}{author}{the field formerly known as keywords}{filename}{page number vertical shift}
\newcommand{\addpaper}[7][fancy]{
\cfoot{\vspace{-#6}\quad\colorbox{white}{\parbox[t][#6][b]{3em}{\center{\thepage}}}}
\rhead{#7}
\includepdf[pages=-,pagecommand={\thispagestyle{#1}},addtotoc={1,subsection,1,{#2},{title:#5},1,subsubsection,4,{#3},{author:#5},1,paragraph,4,{#4},{#5}},picturecommand={\rhead{}}]{./papers/#5}}
% USAGE: \addreview{filename}{page number vertical shift}
\newcommand{\addreview}[2]{
\setfootershift{#2}
\includepdf[pages=-,pagecommand={\thispagestyle{fancy}}]{./reviews/#1}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\stctitle}{}
\renewcommand{\thepage}{\roman{page}}
\renewcommand{\thesection}{}
\renewcommand{\thesubsection}{\arabic{subsection}}
\setcounter{tocdepth}{2}
\mtcsetdepth{secttoc}{4}
\mtcsetpagenumbers{*}{off}
\mtcsetrules{*}{off}
\dosecttoc
\setfootershift{0cm}
\setlength{\footskip}{1.8cm}
\IfFileExists{plugin.tex}{
\input{plugin}
}{}
\begin{document}
\pagestyle{fancy}
\includepdf[pagecommand={\thispagestyle{fancy}}]{titlepage}
\includepdf[pagecommand={\thispagestyle{fancy}}]{copyright-page}
\IfFileExists{message-from-committee.pdf}{
\includepdf[pages=-,pagecommand={\thispagestyle{fancy}}]{message-from-committee}
}{}
\cleardoublepage
\renewcommand{\thepage}{\arabic{page}}
\setcounter{page}{1}
\include{papers}
\end{document}