diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a0322db --- /dev/null +++ b/.gitignore @@ -0,0 +1,220 @@ +## Core latex/pdflatex auxiliary files: +*.aux +*.lof +*.log +*.lot +*.fls +*.out +*.toc +*.fmt +*.fot +*.cb +*.cb2 + +## Intermediate documents: +*.dvi +*-converted-to.* +# these rules might exclude image files for figures etc. +# *.ps +# *.eps +# *.pdf + +## Generated if empty string is given at "Please type another file name for output:" +.pdf + +## Bibliography auxiliary files (bibtex/biblatex/biber): +*.bbl +*.bcf +*.blg +*-blx.aux +*-blx.bib +*.run.xml + +## Build tool auxiliary files: +*.fdb_latexmk +*.synctex +*.synctex(busy) +*.synctex.gz +*.synctex.gz(busy) +*.pdfsync + +## Auxiliary and intermediate files from other packages: +# algorithms +*.alg +*.loa + +# achemso +acs-*.bib + +# amsthm +*.thm + +# beamer +*.nav +*.pre +*.snm +*.vrb + +# changes +*.soc + +# cprotect +*.cpt + +# elsarticle (documentclass of Elsevier journals) +*.spl + +# endnotes +*.ent + +# fixme +*.lox + +# feynmf/feynmp +*.mf +*.mp +*.t[1-9] +*.t[1-9][0-9] +*.tfm + +#(r)(e)ledmac/(r)(e)ledpar +*.end +*.?end +*.[1-9] +*.[1-9][0-9] +*.[1-9][0-9][0-9] +*.[1-9]R +*.[1-9][0-9]R +*.[1-9][0-9][0-9]R +*.eledsec[1-9] +*.eledsec[1-9]R +*.eledsec[1-9][0-9] +*.eledsec[1-9][0-9]R +*.eledsec[1-9][0-9][0-9] +*.eledsec[1-9][0-9][0-9]R + +# glossaries +*.acn +*.acr +*.glg +*.glo +*.gls +*.glsdefs + +# gnuplottex +*-gnuplottex-* + +# gregoriotex +*.gaux +*.gtex + +# hyperref +*.brf + +# knitr +*-concordance.tex +# TODO Comment the next line if you want to keep your tikz graphics files +*.tikz +*-tikzDictionary + +# listings +*.lol + +# makeidx +*.idx +*.ilg +*.ind +*.ist + +# minitoc +*.maf +*.mlf +*.mlt +*.mtc[0-9]* +*.slf[0-9]* +*.slt[0-9]* +*.stc[0-9]* + +# minted +_minted* +*.pyg + +# morewrites +*.mw + +# nomencl +*.nlo + +# pax +*.pax + +# pdfpcnotes +*.pdfpc + +# sagetex +*.sagetex.sage +*.sagetex.py +*.sagetex.scmd + +# scrwfile +*.wrt + +# sympy +*.sout +*.sympy +sympy-plots-for-*.tex/ + +# pdfcomment +*.upa +*.upb + +# pythontex +*.pytxcode +pythontex-files-*/ + +# thmtools +*.loe + +# TikZ & PGF +*.dpth +*.md5 +*.auxlock + +# todonotes +*.tdo + +# easy-todo +*.lod + +# xindy +*.xdy + +# xypic precompiled matrices +*.xyc + +# endfloat +*.ttt +*.fff + +# Latexian +TSWLatexianTemp* + +## Editors: +# WinEdt +*.bak +*.sav + +# Texpad +.texpadtmp + +# Kile +*.backup + +# KBibTeX +*~[0-9]* + +# auto folder when using emacs and auctex +/auto/* + +# expex forward references with \gathertags +*-tags.tex diff --git a/chapters/introduction.tex b/chapters/introduction.tex new file mode 100644 index 0000000..2f5aa08 --- /dev/null +++ b/chapters/introduction.tex @@ -0,0 +1,2 @@ +% generate random text to fill the page :) +\lipsum[1] \ No newline at end of file diff --git a/chapters/testChapter.tex b/chapters/testChapter.tex new file mode 100644 index 0000000..93b2443 --- /dev/null +++ b/chapters/testChapter.tex @@ -0,0 +1,13 @@ +% generate random text to fill the page :) +\lipsum[1] + +\section{First section} +The introduction can be found on page \pageref{sec:introduction}. +\subsection{First subsection} +\lipsum[1-3] + +\subsection{Second subsection} +\lipsum[1] + +\subsubsection{first subsubsection} +\lipsum[1] \ No newline at end of file diff --git a/includes/titlePage.tex b/includes/titlePage.tex new file mode 100644 index 0000000..5f5037e --- /dev/null +++ b/includes/titlePage.tex @@ -0,0 +1,33 @@ +\newcommand{\HRule}[1]{\rule{\linewidth}{#1}} % Horizontal rule +\newcommand{\printTitlePage}{ + \thispagestyle{empty} % Remove page numbering on this page + \printtitle % Print the title data as defined above + \vfill % Variable fill + \printauthor % Print the author data as defined above + \newpage +} + +\makeatletter % Title +\def\printtitle{% + {\centering \@title\par}} +\makeatother + +\makeatletter % Author +\def\printauthor{% + {\flushright \large \@author}} +\makeatother + +\title{ \normalsize \textsc{\SubTitleVar} % Subtitle + \\[2.0cm] % 2cm spacing + \HRule{0.5pt} \\ % Top line + \LARGE \textbf{\uppercase{\TitleVar}} % Title + \HRule{2pt} \\ [0.5cm] % Lower line + 0.5cm spacing + \normalsize \DateVar % Todays date +} + +\author{ + \AuthorVar\\ + \AuthorTitleVar\\ + \url{\AuthorURLVar}\\ + \href{mailto:\AuthorEmailVar}{\AuthorEmailVar}\\ +} diff --git a/latex-quickstart.pdf b/latex-quickstart.pdf new file mode 100644 index 0000000..390d9ed Binary files /dev/null and b/latex-quickstart.pdf differ diff --git a/latex-quickstart.tex b/latex-quickstart.tex new file mode 100644 index 0000000..141a6c1 --- /dev/null +++ b/latex-quickstart.tex @@ -0,0 +1,84 @@ +% -------------------------------------------------------------------- +% 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} \ No newline at end of file