uploading initial files

This commit is contained in:
Mastermindzh 2017-05-28 20:11:28 +02:00
parent 909b530617
commit 4281da6cda
6 changed files with 352 additions and 0 deletions

220
.gitignore vendored Normal file
View File

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

View File

@ -0,0 +1,2 @@
% generate random text to fill the page :)
\lipsum[1]

13
chapters/testChapter.tex Normal file
View File

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

33
includes/titlePage.tex Normal file
View File

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

BIN
latex-quickstart.pdf Normal file

Binary file not shown.

84
latex-quickstart.tex Normal file
View File

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