diff --git a/Makefile b/Makefile index d70f448c..9bb57f83 100755 --- a/Makefile +++ b/Makefile @@ -1,4 +1,9 @@ -all: clean resume.html resume.pdf +SRC = $(wildcard *.md) + +PDFS=$(SRC:.md=.pdf) +HTML=$(SRC:.md=.html) + +all: clean $(PDFS) $(HTML) %.html: %.md pandoc -t html -c resume.css -o $@ $< diff --git a/README.md b/README.markdown similarity index 100% rename from README.md rename to README.markdown diff --git a/header.tex b/header.tex index a39a2ceb..0d830325 100644 --- a/header.tex +++ b/header.tex @@ -10,7 +10,7 @@ \hyphenation{Media-Wiki} \renewcommand{\labelitemi}{} -%\renewcommand{\labelitemii}{\scale[scale=700]{•}} +\renewcommand{\labelitemii}{\raise .5ex\hbox{\tiny$\blacktriangleright$}} % from http://tex.stackexchange.com/a/29796/16139 \newsavebox{\zerobox} diff --git a/process.py b/process.py index 41b7dbb3..07784c55 100644 --- a/process.py +++ b/process.py @@ -5,14 +5,13 @@ lines = sys.stdin.readlines() -name = lines[0] -contact = [x.strip() for x in lines[3].split("•")] +for i, line in enumerate(list(lines[3:])): + stripped = line.strip() + if not stripped: + break + lines[3 + i] = "\n%s\n" % stripped -if len(contact) > 1: - lines.pop(3) - lines.pop(3) - lines.insert(0, "\\begin{nospace}\\begin{flushright}\n" + - "\n\n".join(contact) + - "\\end{flushright}\\end{nospace}\n") +lines.insert(3, "\\begin{nospace}\\begin{flushright}") +lines.insert(4 + i, "\\end{flushright}\\end{nospace}\n") print "".join(lines)