فهرست منبع

Add template file improve master

JoostSijm 6 سال پیش
والد
کامیت
629aad61da
5فایلهای تغییر یافته به همراه31 افزوده شده و 37 حذف شده
  1. 1 0
      .gitignore
  2. 3 0
      deploy.sh
  3. 1 26
      master.tex
  4. 17 11
      preamble.tex
  5. 9 0
      template_config.tex

+ 1 - 0
.gitignore

@@ -28,3 +28,4 @@
 *.swp
 // Compiled document
 master.pdf
+config.tex

+ 3 - 0
deploy.sh

@@ -0,0 +1,3 @@
+#!/bin/bash
+
+cp template_config.tex config.tex

+ 1 - 26
master.tex

@@ -14,16 +14,7 @@
 \input{preamble}
 \begin{document}
 
-%------------------- META ----------------------
-\title{Example}
-\author{Joost Sijm}
-\date{\today}
-
 %================ COVER PAGE ===================
-\newpage
-\pagestyle{fancy}
-
-%------------------ TITLE ----------------------
 \begin{titlepage}
 	\centering
 	\vspace*{0.5 cm}
@@ -47,26 +38,10 @@
 			\thestudentnumber
 		\end{flushright}
 	\end{minipage} \\ [2 cm]	
-	{\large \thedate} \\ [2 cm] 
+	{\large \thedate} \\ [2 cm]
 	\vfill	
 \end{titlepage}
 
-%============= HEADER & FOOTER =================
-\newpage
-\fancyhf{}
-
-%HEADER
-\fancyhead[L]{\small\rm\textit{\rightmark}}
-\fancyhead[R]{\small\rm\textbf{\thepage}}
-
-%FOOTER
-\fancyfoot[L]{\small\rm\textit{\thetitle}}
-\fancyfoot[R]{\small\rm\textit{\theauthor– \theschool}}
-
-\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}
-\renewcommand{\headrulewidth}{0.5pt}
-\renewcommand{\footrulewidth}{0.5pt}
-
 %================== INDEX ======================
 \tableofcontents
 \listoffigures

+ 17 - 11
preamble.tex

@@ -20,22 +20,28 @@
 \usepackage{listings} %Codigo
 \lstset{language=C, tabsize=4,framexleftmargin=5mm,breaklines=true}
 
-\title{Implementatie van Gecontaineriseerde Applicaties}
-\author{Joost Sijm}
-\date{\today}
+% get settings
+\input{config}
 
 \makeatletter
 \let\thetitle\@title
 \let\theauthor\@author
 \let\thedate\@date
-\newcommand{\thestudentnumber}{500784234}
-\newcommand{\theschool}{Hogeschool van Amsterdam}
-\newcommand{\thesecondtitle}{1000RSK\_17}
-\newcommand{\thethirdtitle}{Research Skills}
 \makeatother
 
-\pagestyle{fancy}
+% header and footer
 \fancyhf{}
-\rhead{\theauthor}
-\lhead{\thetitle}
-\cfoot{\thepage}
+\pagestyle{fancy}
+
+% header
+\fancyhead[L]{\small\rm\textit{\rightmark}}
+\fancyhead[R]{\small\rm\textbf{\thepage}}
+\renewcommand{\headrulewidth}{0.5pt}
+
+% footer
+\fancyfoot[L]{\small\rm\textit{\thetitle}}
+\fancyfoot[R]{\small\rm\textit{\theauthor– \theschool}}
+\renewcommand{\footrulewidth}{0.5pt}
+
+\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}
+

+ 9 - 0
template_config.tex

@@ -0,0 +1,9 @@
+\title{Template document voor HVA}
+\newcommand{\thesecondtitle}{secondtitle}
+\newcommand{\thethirdtitle}{thirdtitle}
+
+\date{\today}
+
+\author{Autheur}
+\newcommand{\thestudentnumber}{tudentnumber}
+\newcommand{\theschool}{schoolvan Amsterdam}