Init tex from testing repo
This commit is contained in:
parent
24e263c76a
commit
707b0d4645
5 changed files with 68 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -331,3 +331,5 @@ venv.bak/
|
|||
|
||||
|
||||
# End of https://www.gitignore.io/api/latex,python
|
||||
|
||||
*.pdf
|
||||
|
|
9
header-footer.tex
Normal file
9
header-footer.tex
Normal 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
32
main.tex
Normal 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
16
packages.tex
Normal 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
9
title.tex
Normal 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}
|
Reference in a new issue