Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
121 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
""" | ||
Python script to build a dissertaion based on Markdown / Pandoc | ||
TODO: Options? | ||
""" | ||
|
||
import subprocess | ||
import os | ||
|
||
# --------------- CHANGE THESE TWO LINES ------------------------- | ||
OUTPUT_FILE = "Disso.pdf" | ||
|
||
#If you Reame the Header file you will need to let the script know. | ||
STU_HEADER_FILE = "Dissertation.md" #Students Header File | ||
|
||
#ENTER ALL THE SOURCE FILES THAT YOU HAVE IN THE DISSERTAION HERE. | ||
SOURCE_FILES = [] | ||
|
||
#Are you using the Recommended Submodule Approach | ||
SUBMODULE = True | ||
|
||
#If you rename the Templates repository, Let the script know. | ||
SUBMODULE_PATH="Template" | ||
# --------------- END OF STUFF THAT YOU NEED TO CHANGE ------------------------- | ||
|
||
def buildCommand(): | ||
"""Build the list that we send to pandoc""" | ||
HEADER_FILE = "Header.md" | ||
SUB_HEADER_FILE = "SubHeader.md" | ||
#Needed otherwise refs come on the same page | ||
FOOTER_FILE = "References.md" | ||
# Pandoc Template | ||
LATEX_TEMPLATE = "Template/disso.latex" | ||
|
||
if SUBMODULE: | ||
HEADER_FILE = os.path.join(SUBMODULE_PATH, SUB_HEADER_FILE) | ||
FOOTER_FILE = os.path.join(SUBMODULE_PATH, FOOTER_FILE) | ||
LATEX_TEMPLATE = os.path.join(SUBMODULE_PATH, LATEX_TEMPLATE) | ||
|
||
PANDOC_OPTS = ["--filter=pandoc-citeproc", | ||
"--template={0}".format(LATEX_TEMPLATE), | ||
"--top-level-division=chapter"] | ||
|
||
#Actually Build the list | ||
commandList = ["pandoc"] | ||
commandList.extend(PANDOC_OPTS) #Add the options | ||
commandList.append(STU_HEADER_FILE) #Students Headderfile | ||
commandList.append(HEADER_FILE) #Header File | ||
commandList.extend(SOURCE_FILES) #STUDENT source | ||
commandList.append(FOOTER_FILE) #FOOTER FILE | ||
commandList.append("-o") | ||
commandList.append(OUTPUT_FILE) | ||
subprocess.run(commandList) | ||
|
||
|
||
if __name__ == "__main__": | ||
#Build the damm thing | ||
buildCommand() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
# ----- THINGS THAT YOU NEED TO CHANGE ---- | ||
author: "Your Name" | ||
title: "Project Title" | ||
|
||
# Keywords associated with your project | ||
keywords: Comma, Seperated, Keywords | ||
|
||
degreetitle: 'BSc: Ethical Hacking and cybersecurity' | ||
|
||
#Ethics form, REPLACE THIS WITH YOUR ONE | ||
PDF-ethics: Supporting/ethics-certificate.pdf | ||
|
||
#Origianlity Statement: REPLACE THIS WITH YOURS | ||
PDF-declaration: Supporting/submission-declaration.pdf | ||
|
||
#Finally the Bibtex file for your references. | ||
bibliography: example-bib.bib | ||
|
||
#Font to use | ||
fontfamily: helvet | ||
|
||
# -------- LEAVE THE THINGS BELOW HERE ALONE ---- | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!-- Originality statement --> | ||
# Originality Statement: | ||
|
||
**First Name:** Dave | ||
|
||
**Last Name:** Lister | ||
|
||
**Ethics Application Number:** P66730 | ||
|
||
**1st Supervisor:** Daniel Goldsmith | ||
|
||
**2nd Supervisor:** Christo Panchev | ||
|
||
|
||
|
||
## 300COM / 303COM Declaration of originality: | ||
I Declare that This project is all my own work and has not been copied in part or in whole from any other source except where duly acknowledged. As such, all use of previously published work (from books, journals, magazines, internet etc.) has been acknowledged by citation within the main report to an item in the References or Bibliography lists. I also agree that an electronic copy of this project may be stored and used for the purposes of plagiarism prevention and detection. | ||
|
||
## Statement of copyright: | ||
I acknowledge that the copyright of this project report, and any product developed as part of the project, belong to Coventry University. Support, including funding, is available to commercialise products and services developed by staff and students. Any revenue that is generated is split with the inventor/s of the product or service. For further information please see www.coventry.ac.uk/ipr or contact ipr@coventry.ac.uk. | ||
|
||
## Statement of ethical engagement: | ||
I declare that a proposal for this project has been submitted to the Coventry University ethics monitoring website (https://ethics.coventry.ac.uk/) and that the application number is listed below. | ||
|
||
## Signed: | ||
<!--![](img/signature.jpg){ width=20% } --> | ||
|
||
## Date: | ||
|
||
28.1.2018 | ||
|
BIN
+63.8 KB
Supporting/ethics-certificate.pdf
Binary file not shown.
BIN
+82.2 KB
Supporting/submission-declaration.pdf
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@inproceedings{goldsmith2010spanish, | ||
title={The Spanish Inquisition Protocol—model based transmission reduction for wireless sensor networks}, | ||
author={Goldsmith, Daniel and Brusey, James}, | ||
booktitle={Sensors, 2010 IEEE}, | ||
pages={2043--2048}, | ||
year={2010}, | ||
organization={IEEE} | ||
} |