diff --git a/.gitignore b/.gitignore index d2dcdcb..2a486f0 100644 --- a/.gitignore +++ b/.gitignore @@ -331,3 +331,5 @@ venv.bak/ # End of https://www.gitignore.io/api/latex,python + +*.pdf diff --git a/header-footer.tex b/header-footer.tex new file mode 100644 index 0000000..be3e4f2 --- /dev/null +++ b/header-footer.tex @@ -0,0 +1,9 @@ +\pagestyle{fancy} + +\rfoot{$wordcount$ words} +\cfoot{\thepage\ of \pageref{LastPage}} +\lhead{\thetitle} +\rhead{\date} + +\renewcommand{\headrulewidth}{0pt} +\renewcommand{\footrulewidth}{0pt} diff --git a/main.tex b/main.tex new file mode 100644 index 0000000..f02d6a3 --- /dev/null +++ b/main.tex @@ -0,0 +1,32 @@ +\documentclass[12pt,titlepage,a4paper,twoside]{article} + \include{packages} + \include{header-footer} + + \renewcommand{\thesection}{} + \renewcommand{\thesubsection}{\arabic{section}.\arabic{subsection}} + \makeatletter + \def\@seccntformat#1{\csname #1ignore\expandafter\endcsname\csname the#1\endcsname\quad} + \let\sectionignore\@gobbletwo + \let\latex@numberline\numberline + \def\numberline#1{\if\relax#1\relax\else\latex@numberline{#1}\fi} + \makeatother + + \title{$title$} + \newcommand{\subtitle}{$subtitle$} + \author{Some Author} + \date{2018-01-01} + + + + \begin{document} + + \include{title} + + \tableofcontents + \thispagestyle{empty} + \cleardoublepage + \setcounter{page}{1} + + Some body content + + \end{document} diff --git a/packages.tex b/packages.tex new file mode 100644 index 0000000..e8e98d0 --- /dev/null +++ b/packages.tex @@ -0,0 +1,16 @@ +\usepackage[pdftex]{hyperref} +\usepackage{titling} +\usepackage{lipsum} +\usepackage{fancyhdr} +\usepackage{siunitx} +\usepackage[margin=1in,includefoot]{geometry} + +\hypersetup{ + hidelinks=true +} + +\usepackage{helvet} +\renewcommand{\familydefault}{\sfdefault} + +\usepackage[document]{ragged2e} +\usepackage{lastpage} diff --git a/title.tex b/title.tex new file mode 100644 index 0000000..19f71a9 --- /dev/null +++ b/title.tex @@ -0,0 +1,9 @@ + +\begin{titlepage} +\begin{center} +\huge{\bfseries \thetitle} +\line(1,0){300}\\[0.2in] +\large{\bfseries \subtitle} + +\end{center} +\end{titlepage}