Skip to content
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.

Commit

Permalink
Added thesis template in Markdown.
Browse files Browse the repository at this point in the history
  • Loading branch information
szarnyasg committed Aug 11, 2014
1 parent 8c564a6 commit e1a1076
Show file tree
Hide file tree
Showing 20 changed files with 1,985 additions and 0 deletions.
104 changes: 104 additions & 0 deletions thesis-template-markdown/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
*.html
*.mobi

thesis.pdf

*.tex

## Core latex/pdflatex auxiliary files:
*.aux
*.lof
*.log
*.lot
*.fls
*.out
*.toc

## Intermediate documents:
*.dvi

## Bibliography auxiliary files (bibtex/biblatex/biber):
*.bbl
*.bcf
*.blg
*-blx.aux
*-blx.bib
*.run.xml

## Build tool auxiliary files:
*.fdb_latexmk
*.synctex.gz
*.synctex.gz(busy)
*.pdfsync

## Auxiliary and intermediate files from other packages:

# algorithms
*.alg
*.loa

# amsthm
*.thm

# beamer
*.nav
*.snm
*.vrb

#(e)ledmac/(e)ledpar
*.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

# glossaries
*.acn
*.acr
*.glg
*.glo
*.gls

# hyperref
*.brf

# listings
*.lol

# makeidx
*.idx
*.ilg
*.ind
*.ist

# minitoc
*.maf
*.mtc
*.mtc0

# minted
*.pyg

# morewrites
*.mw

# nomencl
*.nlo

# sagetex
*.sagetex.sage
*.sagetex.py
*.sagetex.scmd

# sympy
*.sout
*.sympy
sympy-plots-for-*.tex/

# todonotes
*.tdo

# xindy
*.xdy
146 changes: 146 additions & 0 deletions thesis-template-markdown/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
# constants for defining the author, title, etc.
FILENAME = thesis
TITLE = Diplomaterv sablon Markdown leírónyelven
AUTHOR = Szárnyas Gábor
ADVISOR = Konzulens Elemér
UNIVERSITY = Budapesti Műszaki és Gazdaságtudományi Egyetem
DEPARTMENT = Méréstechnika és Információs Rendszerek Tanszék
RESEARCH_GROUP = Hibatűrő Rendszerek Kutatócsoport
THESIS_TYPE = Diplomaterv
DOCUMENT_LANG = magyar
BEFORE_FILE = guideline.md
SOURCE_FILES = abstract.md chapter1.md chapter2.md chapter3.md chapter4.md summary.md acknowledgements.md bibliography.md
APPENDIX_FILE = appendix.md

# variables for the PDF/HTML compiler
ARGS = \
$(SOURCE_FILES) \
--from=markdown \
--variable=lang:"$(DOCUMENT_LANG)" \
--variable=title:"$(TITLE)" \
--variable=author:"$(AUTHOR)" \
--variable=advisor:"$(ADVISOR)" \
--variable=university:"$(UNIVERSITY)" \
--variable=department:"$(DEPARTMENT)" \
--variable=research-group:"$(RESEARCH_GROUP)" \
--variable=thesis-type:"$(THESIS_TYPE)" \
--variable=lof \
--variable=lot \
--standalone \
--table-of-contents \
--bibliography=bibliography.bib \

LATEX_ARGS = \
$(ARGS) \
--include-before-body=$(BEFORE_FILE).tex \
--include-after-body=$(APPENDIX_FILE).tex \
--template=template.latex \
--variable=documentclass:report \
--variable=fontsize:11pt \
--variable=papersize:a4paper \
--variable=sides:oneside \
--variable=numbersections \
--natbib \
--variable=biblio-files:"bibliography" \
--variable=biblio-style:"plain" \

HTML_ARGS = \
--mathjax \
--filter pandoc-citeproc \
--csl=ieee.csl \

# rules

## rules for compiling the document

pdf: latex build-latex


latex: compile-guideline-tex compile-appendix-tex
pandoc \
$(LATEX_ARGS) \
--to=latex \
--output=$(FILENAME).tex \

html: compile-guideline-html compile-appendix-html
pandoc \
$(FILES) \
$(ARGS) \
$(HTML_ARGS) \
--include-before-body=$(BEFORE_FILE).html \
--include-after-body=$(APPENDIX_FILE).html \
--to=html \
--output=$(FILENAME).html \
--css=buttondown.css \

mobi: compile-guideline-mobi compile-appendix-mobi
pandoc \
$(FILES) \
$(ARGS) \
--output=$(FILENAME).mobi \
--css=buttondown.css \
--mimetex \

build-latex:
pdflatex $(FILENAME).tex
bibtex $(FILENAME).aux
pdflatex $(FILENAME).tex
pdflatex $(FILENAME).tex

## rules for compiling the guideline

compile-guideline-tex:
pandoc \
$(BEFORE_FILE) \
--from=markdown \
--to=latex \
--variable=documentclass:report \
--output=$(BEFORE_FILE).tex \

compile-guideline-html:
pandoc \
$(BEFORE_FILE) \
--from=markdown \
--to=html \
--output=$(BEFORE_FILE).html \

compile-guideline-mobi:
pandoc \
$(BEFORE_FILE) \
--from=markdown \
--output=$(BEFORE_FILE).mobi \


## rules for compiling the appendix

compile-appendix-tex:
pandoc \
$(APPENDIX_FILE) \
--from=markdown \
--to=latex \
--variable=documentclass:report \
--output=$(APPENDIX_FILE).tex \

compile-appendix-html:
pandoc \
$(APPENDIX_FILE) \
$(HTML_ARGS) \
--from=markdown \
--to=html \
--output=$(APPENDIX_FILE).html \

compile-appendix-mobi:
pandoc \
$(APPENDIX_FILE) \
$(HTML_ARGS) \
--from=markdown \
--output=$(APPENDIX_FILE).mobi \

## misc rules

open:
gnome-open \
$(FILENAME).pdf \

clean:
rm -f *.tex *.aux *.dvi *.log *.pdf *.html *.mobi *.out
9 changes: 9 additions & 0 deletions thesis-template-markdown/abstract.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Kivonat {.unnumbered}
=======

Jelen dokumentum egy diplomaterv sablon, amely formai keretet ad a BME Villamosmérnöki és Informatikai Karán végző hallgatók által elkészítendő szakdolgozatnak és diplomatervnek. A sablon használata opcionális. Ez a sablon Markdown leírónyelven készült, Pandoc rendszerrel fordítható le \TeX\ Live vagy MiK\TeX\ \LaTeX\ disztribúciókkal.

Abstract {.unnumbered}
========

This document is a skeleton for BSc/MSc\ theses of students at the Electrical Engineering and Informatics Faculty, Budapest University of Technology and Economics. The usage of this skeleton is optional. The skeleton was implemented in Markdown and can be compiled with Pandoc, using the \TeX\ Live and or the MiK\TeX\ \LaTeX\ compiler.
6 changes: 6 additions & 0 deletions thesis-template-markdown/acknowledgements.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Köszönetnyilvánítás {.unnumbered}
===================

A köszönetnyilvánítás nem kötelező, akár törölhető is. Ha a szerző szükségét érzi, itt lehet köszönetet nyilvánítani azoknak, akik hozzájárultak munkájukkal ahhoz, hogy a hallgató a szakdolgozatban
vagy diplomamunkában leírt feladatokat sikeresen elvégezze. A konzulensnek való köszönetnyilvánítás sem kötelező, a konzulensnek hivatalosan is dolga, hogy a hallgatót konzultálja.

15 changes: 15 additions & 0 deletions thesis-template-markdown/appendix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
\appendix

Függelék
========

Válasz az ,,Élet, a világmindenség, meg minden'' kérdésére
----------------------------------------------------------

A Pitagorasz-tételből levezetve

$$c^2=a^2+b^2=42.$$

A Faraday-indukciós törvényből levezetve

$$\mathrm{rot} E=-\frac{dB}{dt} \quad \longrightarrow \quad U_i=\oint\limits_\mathbf{L}{\mathbf{E}\mathbf{dl}}=-\frac{d}{dt}\int\limits_A{\mathbf{B}\mathbf{da}}=42.$$
46 changes: 46 additions & 0 deletions thesis-template-markdown/bibliography.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
@BOOK{Wettl04,
author = "Ferenc Wettl and Gyula Mayer and Péter Szabó",
title = "\LaTeX~kézikönyv",
publisher = "Panem Könyvkiadó",
year = 2004
}
@ARTICLE{Candy86,
author = "James C. Candy",
title = "Decimation for Sigma Delta Modulation",
journal = "{IEEE} Trans.\ on Communications",
volume = 34,
number = 1,
pages = "72--76",
month = jan,
year = 1986,
}
@INPROCEEDINGS{Lee87,
author = "Wai L. Lee and Charles G. Sodini",
title = "A Topology for Higher Order Interpolative Coders",
booktitle = "Proc.\ of the IEEE International Symposium on Circuits and Systems",
year = 1987,
vol = 2,
month = may # "~4--7",
address = "Philadelphia, PA, USA",
pages = "459--462"
}
@PHDTHESIS{KissPhD,
author = "Peter Kiss",
title = "Adaptive Digital Compensation of Analog Circuit Imperfections for Cascaded Delta-Sigma Analog-to-Digital Converters",
school = "Technical University of Timi\c{s}oara, Romania",
month = apr,
year = 2000
}
@MANUAL{Schreier00,
author = "Richard Schreier",
title = "The Delta-Sigma Toolbox v5.2",
organization = "Oregon State University",
year = 2000,
month = jan,
note = "\newline URL: http://www.mathworks.com/matlabcentral/fileexchange/"
}
@MISC{DipPortal,
author = "Budapesti {M}űszaki és {G}azdaságtudományi {E}gyetem, {V}illamosmérnöki és {I}nformatikai {K}ar",
title = "{D}iplomaterv portál (2011 február 26.)",
howpublished = "\url{http://diplomaterv.vik.bme.hu/}",
}
2 changes: 2 additions & 0 deletions thesis-template-markdown/bibliography.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Irodalomjegyzék {.unnumbered}
===============
Loading

0 comments on commit e1a1076

Please sign in to comment.