mirror of
https://github.com/Mastermindzh/latex-quickstart.git
synced 2024-10-22 16:49:16 +02:00
84 lines
2.1 KiB
TeX
84 lines
2.1 KiB
TeX
|
% --------------------------------------------------------------------
|
||
|
% Document structure
|
||
|
% --------------------------------------------------------------------
|
||
|
\documentclass[paper=a4, fontsize=12pt]{report}
|
||
|
|
||
|
|
||
|
% --------------------------------------------------------------------
|
||
|
% Packages
|
||
|
% --------------------------------------------------------------------
|
||
|
\usepackage[a4paper]{geometry}
|
||
|
%\usepackage[margin=1in, left=1.5in]{geometry}
|
||
|
\usepackage[hidelinks]{hyperref}
|
||
|
\usepackage[utf8]{inputenc}
|
||
|
\usepackage[T1]{fontenc}
|
||
|
\usepackage{lipsum}
|
||
|
|
||
|
|
||
|
\usepackage{graphicx}
|
||
|
\graphicspath{ images/}
|
||
|
|
||
|
\usepackage{titlesec}
|
||
|
\titleformat{\chapter}{\normalfont\huge\bfseries}{\thechapter. }{0pt}{\Huge}
|
||
|
\titlespacing{\chapter} {0pt}{0pt}{10pt}
|
||
|
|
||
|
\usepackage{lastpage}
|
||
|
\usepackage{fancyhdr}
|
||
|
\fancypagestyle{plain}{
|
||
|
\fancyfoot[R]{Page \thepage\ of \pageref{LastPage}}}
|
||
|
\cfoot{}
|
||
|
|
||
|
|
||
|
|
||
|
% --------------------------------------------------------------------
|
||
|
% Variables
|
||
|
% --------------------------------------------------------------------
|
||
|
% Title page variables
|
||
|
\def \SubTitleVar {A LaTeX report starting point}
|
||
|
\def \DateVar {\today}
|
||
|
\def \TitleVar {\LaTeX-quickstart}
|
||
|
\def \AuthorVar {Rick van Lieshout}
|
||
|
\def \AuthorTitleVar {Software Engineer}
|
||
|
\def \AuthorURLVar {http://mastermindzh.com}
|
||
|
\def \AuthorEmailVar {info@rickvanlieshout.com}
|
||
|
|
||
|
% General variables
|
||
|
|
||
|
|
||
|
% --------------------------------------------------------------------
|
||
|
% Includes
|
||
|
% --------------------------------------------------------------------
|
||
|
\include{includes/titlePage}
|
||
|
|
||
|
\begin{document}
|
||
|
\begin{titlepage}
|
||
|
\printTitlePage
|
||
|
\end{titlepage}
|
||
|
|
||
|
% --------------------------
|
||
|
% Front matter
|
||
|
% --------------------------
|
||
|
\pagenumbering{roman}
|
||
|
\chapter*{Abstract}\label{sec:abstract}
|
||
|
|
||
|
% Table of Contents
|
||
|
\tableofcontents
|
||
|
\thispagestyle{empty}
|
||
|
|
||
|
% --------------------------
|
||
|
% Main matter
|
||
|
% --------------------------
|
||
|
\pagenumbering{arabic}
|
||
|
\chapter{Introduction}\label{sec:introduction}
|
||
|
\input{chapters/introduction}
|
||
|
\setcounter{page}{1}
|
||
|
|
||
|
\chapter{First Chapter}\label{sec:first}
|
||
|
\input{chapters/testChapter}
|
||
|
|
||
|
|
||
|
\chapter{Second Chapter}\label{sec:second}
|
||
|
\input{chapters/testChapter}
|
||
|
|
||
|
|
||
|
\end{document}
|