% -*- Mode:TeX -*-
%% Stefan Negru -- blankdots.com -- Adaptation of MIT Thesis format for
%% Faculty of Computer Science, Alexandru Ioan Cuza University of Iasi, Romania
%%
%% Based on the MIT thesis template (mitthesis) from:
%% https://ctan.org/pkg/mitthesis
%% http://web.mit.edu/thesis/tex/
%% Document metadata (optional; enables PDF/A-2b when using pdflatex/lualatex)
\DocumentMetadata
{
lang = en-US,
pdfversion = 1.7,
pdfstandard = a-2b,
}
\documentclass[twoside]{mitthesis}
\usepackage{lgrind}
%%%%%%%%%% Custom settings (adapt to your needs) %%%%%%%%%%
\usepackage[pagestyles]{titlesec}
\usepackage{titletoc}
\usepackage[update=false]{epstopdf}
\usepackage{array}
\usepackage{url}
\usepackage[hypcap]{caption}
\usepackage{amsthm, amsfonts, amsmath, amssymb}
\usepackage[nottoc]{tocbibind}
\usepackage{listings}
\usepackage{enumitem}
\usepackage{emptypage}
\usepackage{wrapfig}
\usepackage{setspace}
\RequirePackage[absolute]{textpos}
\hypersetup{colorlinks=true, urlcolor=blue, linkcolor=blue, citecolor=red, pdfborder={0 0 0}}
% Theorems, definitions, examples
\theoremstyle{definition}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{example}{Example}[section]
\newtheorem{definition}{Definition}[section]
\newtheorem{exercise}[theorem]{Exercise}
% Autoref names
\renewcommand*{\chapterautorefname}{Chapter}
\renewcommand*{\sectionautorefname}{Section}%
\providecommand*{\lstnumberautorefname}{Listing}
\newcommand{\exampleautorefname}{Example}
\newcommand{\definitionautorefname}{Definition}
% Chapter title format (custom)
\titleformat{\chapter}[display]
{\normalfont\Large\raggedleft}
{\MakeUppercase{\chaptertitlename}%
\rlap{ \resizebox{!}{1.2cm}{\thechapter} \rule{15cm}{1.2cm}}}
{7pt}{\Huge}
\titlespacing*{\chapter}{0pt}{30pt}{20pt}
\AtBeginDocument{\renewcommand\contentsname{Table of Contents}}
% Page style with header (chapter title and page number)
\newpagestyle{special}{
\headrule
\sethead[\small{\usepage}][\small{\chaptertitle}]
[]{}{\small{\chaptertitle}}{\small{\usepage}}
}
\newcommand{\PartialToc}{\vspace*{1pc}\vbox{\bf\Large Contents\vspace*{1pc}}%
\startcontents[chapters]\hrule\vspace*{1pc}
\printcontents[chapters]{}{1}{\setcounter{tocdepth}{1}}\vspace*{1pc}\hrule\vspace*{1pc}}
\lstset{basicstyle=\small\ttfamily, breaklines=true}
%%%%%%%%%% End custom settings %%%%%%%%%%
\def\all{all}
\begin{document}
\pagestyle{plain}
\pagenumbering{roman}
\include{cover}
\begin{abstract}
\input{abstract.tex}
\end{abstract}
\include{contents}
\include{articles}
\include{declarations}
% Optional: include acknowledgments after abstract (create or edit acknowledgments.tex)
% \include{acknowledgments}
\cleardoublepage
\pagenumbering{arabic}
\pagestyle{special}
\include{chap1}
\include{chap2}
\pagestyle{plain}
\appendix
\include{appa}
\include{biblio}
\end{document}

PDF Preview
Create an account to compile and preview