commit a7d32c3b98fcb595d0d9ad52e2410034a8828342 Author: zool Date: Wed Oct 21 15:21:43 2015 +0200 First commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..7666a6d --- /dev/null +++ b/README.md @@ -0,0 +1,33 @@ +# Clean LaTeX Vita + +This is a modified version of Dario Taborelli's [cvtex](https://github.com/dartar/cvtex) template. The original is targeted to academics and scientist, this one is suited for everyone else. + +Since I find writing LaTeX tedious, I've ported the whole thing to [pandoc](http://pandoc.org/), abstracted the layout into a TeX file, and moved the content to a yaml file. + +## Dependencies + +1. LaTeX +2. pandoc + +To install LaTeX on Mac OS X, I recommend getting the smaller version BasicTeX from [here](https://tug.org/mactex/morepackages.html) and installing additional packages with `tlmgr` as needed. Same goes for Linux: install `texlive-base` with your package manager and add extra packages later when needed. + +To install pandoc on Mac OS X, run `brew install pandoc`. To install it on Linux, refer to the [official docs](http://pandoc.org/installing.html). + +## Getting started + +Edit `content.yml` with your personal details, work experience, education, and desired settings. Run `make` to compile the PDF. Tweak on `template.tex` until you're satisfied with the result. + +Refer to [pandoc's documentation](http://pandoc.org/demo/example9/templates.html) to learn more about how templates work. + +Note: this template needs to be compiled with XeTeX. + +## Recommended reading + +- [Résumé advices](http://practicaltypography.com/resumes.html) from Butterick's Practical Typography +- [Why I do my résumé in LaTeX](http://www.toofishes.net/blog/why-i-do-my-resume-latex/) +- [What are the benefits of writing resumes in TeX/LaTeX?](http://tex.stackexchange.com/questions/11955/what-are-the-benefits-of-writing-resumes-in-tex-latex) +- [Typesetting your academic CV in LaTeX](http://nitens.org/taraborelli/cvtex) + +## License + +[CC BY-SA 3.0](http://creativecommons.org/licenses/by-sa/3.0/) diff --git a/TODO.md b/TODO.md new file mode 100644 index 0000000..b582873 --- /dev/null +++ b/TODO.md @@ -0,0 +1,7 @@ +### To do + +1. Add support for `microtype` +2. Add icons for the links +3. Add ability to expand on the single jobs +4. Add support for different languages +5. Add single packages dependencies diff --git a/content.yml b/content.yml new file mode 100644 index 0000000..ef6ea81 --- /dev/null +++ b/content.yml @@ -0,0 +1,53 @@ +--- +# Personal details +name: Friedrich Nietzsche +address: | + | Humboldtstraße 36 + | 99425 Weimar + | Prussia +phone: "+49 03643 545400" +email: friedrich@thevoid.de +# Insert URLs without http:// +urls: +- wki.pe/friedrich_nietzsche +- twitter.com/tinynietzsche + +# Sections + +intro: "I know my fate. One day my name will be associated with the memory of something tremendous --- a crisis without equal on earth, the most profound collision of conscience, a decision that was conjured up against everything that had been believed, demanded, hallowed so far. I am no man, I am dynamite." + +skills: +- Aesthetics, Ethics, Metaphysics, Nihilism +- Psychology, Ontology, Poetry, Value theory +- Voluntarism, Tragedy, Fact–value distinction +- Anti-foundationalism, Philosophy of history + +experience: +- years: 1879--1889 + employer: Freiberufler + mansion: Freier Philisoph + city: Sils-Maria +- years: 1869–-1879 + employer: Universität Basel + mansion: Professor für klassische Philologie + city: Basel +- years: 1867--1868 + employer: Preußischen Artillerie + mansion: Kanonier + city: Naumburg + +education: +- year: 1867 + degree: Philology + institute: Leipzig Universität + city: Leipzig +- year: 1864 + degree: Abitur + institute: Schulpforta + city: Naumburg + +# Settings +mainfont: Hoefler Text # Any font installed on your system should work +fontsize: 10pt # possible values: 10pt, 11pt, 12pt +geometry: a4paper, textwidth=5.5in, textheight=8.5in, marginparsep=7pt, marginparwidth=.6in # See how the package geometry works at https://www.sharelatex.com/learn/Page_size_and_margins +--- diff --git a/makefile b/makefile new file mode 100644 index 0000000..5db2fc3 --- /dev/null +++ b/makefile @@ -0,0 +1,5 @@ +output.pdf : template.tex content.yml + pandoc $(filter-out $<,$^ ) -o $@ --latex-engine=xelatex --template=$< + +clean : + rm output.pdf diff --git a/output.pdf b/output.pdf new file mode 100644 index 0000000..e54ce1e Binary files /dev/null and b/output.pdf differ diff --git a/template.tex b/template.tex new file mode 100644 index 0000000..03c5649 --- /dev/null +++ b/template.tex @@ -0,0 +1,112 @@ +%!TEX TS-program = xelatex +%!TEX encoding = UTF-8 Unicode + +\documentclass[$fontsize$, a4paper]{article} +\usepackage{fontspec} + +% LAYOUT +%-------------------------------- +\usepackage{geometry} +\geometry{$geometry$} +\setlength\parindent{0in} + +\usepackage{multicol} +\setlength{\columnsep}{-3.5cm} +% No page numbers +\pagenumbering{gobble} + +% TYPOGRAPHY +%-------------------------------- +\usepackage{xunicode} +\usepackage{xltxtra} + +% converts LaTeX specials (quotes, dashes etc.) to Unicode +\defaultfontfeatures{Mapping=tex-text} +\setromanfont [Ligatures={Common}, Numbers={OldStyle}]{$mainfont$} +% \setmonofont[Scale=0.8]{$monofont$} +% \setsansfont[Scale=0.9]{$sansfont$} + +% Custom ampersand +\newcommand{\amper}{{\fontspec[Scale=.95]{$mainfont$}\selectfont\itshape\&}} + +% MARGIN NOTES +%-------------------------------- +\usepackage{marginnote} +\newcommand{\note}[1]{\marginnote{\scriptsize #1}} +\renewcommand*{\raggedleftmarginnote}{} +\setlength{\marginparsep}{7pt} +\reversemarginpar + +% HEADINGS +%-------------------------------- +\usepackage{sectsty} +\usepackage[normalem]{ulem} +\sectionfont{\rmfamily\mdseries} +\subsectionfont{\rmfamily\mdseries\scshape\normalsize} +\subsubsectionfont{\rmfamily\bfseries\upshape\normalsize} + +% PDF SETUP +%-------------------------------- +\usepackage[xetex, bookmarks, colorlinks, breaklinks, pdftitle={$name$'s Vita},pdfauthor={$name$}]{hyperref} +\hypersetup{linkcolor=blue,citecolor=blue,filecolor=black,urlcolor=blue} + + +% DOCUMENT +%-------------------------------- +\begin{document} + +{\LARGE $name$}\\[.5cm] + +\begin{multicols}{2} + +$address$\\[.2cm] +$phone$\\ +\href{mailto:$email$}{$email$}\\ + +\columnbreak + +$for(urls)$ +\href{http://$urls$}{$urls$}\\ +$endfor$ +\end{multicols} + +\vfill +% \bigskip + + +% \hrule +$intro$ + +\subsection*{Areas of Interest} +\begin{itemize} +$for(skills)$ +\item $skills$ +$endfor$ +\end{itemize} + +\vfill +%%\hrule +\section*{Previous Experience} +\noindent +$for(experience)$ +\note{$experience.years$}\textsc{$experience.employer$}\\ +\emph{$experience.mansion$}\\ +$experience.city$\\[.2cm] +$endfor$ + +%\hrule +\section*{Education} +\noindent +$for(education)$ +\note{$education.year$}$education.degree$\\ +\emph{$education.institute$}$if(education.city)$, $education.city$$endif$\\[.2cm] + +$endfor$ + +%\hrule + +%\vspace{1cm} +\vfill{} +%\hrulefill + +\end{document}