1
Fork 0

Init tex from testing repo

This commit is contained in:
Jake Howard 2018-03-25 21:50:04 +01:00
parent 24e263c76a
commit 707b0d4645
Signed by: jake
GPG key ID: 57AFB45680EDD477
5 changed files with 68 additions and 0 deletions

2
.gitignore vendored
View file

@ -331,3 +331,5 @@ venv.bak/
# End of https://www.gitignore.io/api/latex,python # End of https://www.gitignore.io/api/latex,python
*.pdf

9
header-footer.tex Normal file
View file

@ -0,0 +1,9 @@
\pagestyle{fancy}
\rfoot{$wordcount$ words}
\cfoot{\thepage\ of \pageref{LastPage}}
\lhead{\thetitle}
\rhead{\date}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}

32
main.tex Normal file
View file

@ -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}

16
packages.tex Normal file
View file

@ -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}

9
title.tex Normal file
View file

@ -0,0 +1,9 @@
\begin{titlepage}
\begin{center}
\huge{\bfseries \thetitle}
\line(1,0){300}\\[0.2in]
\large{\bfseries \subtitle}
\end{center}
\end{titlepage}