1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
tex-template-builder/main.tex

44 lines
919 B
TeX
Raw Permalink Normal View History

2018-03-25 21:50:04 +01:00
\documentclass[12pt,titlepage,a4paper,twoside]{article}
2018-04-29 21:21:10 +01:00
\include{packages}
\graphicspath{{$inputDir$/img/}}
\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$}
\newcommand{\wordcount}{$wordcount$ \xspace}
\author{Some Author}
\date{2018-01-01}
$if(wordcount)$
2018-03-28 19:47:06 +01:00
\include{header-footer}
2018-04-29 21:21:10 +01:00
$endif$
2018-03-25 21:50:04 +01:00
2018-04-29 21:21:10 +01:00
\begin{document}
2018-03-25 21:50:04 +01:00
2018-04-29 21:21:10 +01:00
$if(wordcount)$
2018-03-26 09:42:13 +01:00
\input{title}
2018-03-25 21:50:04 +01:00
\tableofcontents
2018-04-29 21:21:10 +01:00
$endif$
2018-04-29 21:21:10 +01:00
\thispagestyle{empty}
\cleardoublepage
\setcounter{page}{1}
2018-03-25 21:50:04 +01:00
2018-04-29 21:21:10 +01:00
\setlength{\parskip}{1em}
2018-04-29 21:12:48 +01:00
2018-04-29 21:21:10 +01:00
\titlespacing*{\section}{0px}{0px}{0px}
\titlespacing*{\subsection}{0px}{0px}{0px}
2018-04-29 21:12:48 +01:00
2018-04-29 21:21:10 +01:00
$body$
2018-03-25 21:50:04 +01:00
2018-04-29 21:21:10 +01:00
\end{document}