Created
November 3, 2019 16:44
-
-
Save gryan11/f546b5c96fadd5075343de56d70963b3 to your computer and use it in GitHub Desktop.
Toolkit for compiling markdown files to nicely formatted pdfs with pandoc
This file contains hidden or 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
| \usepackage{fancyvrb,newverbs,xcolor} | |
| \usepackage[top=2cm, bottom=1.5cm, left=2cm, right=2cm]{geometry} | |
| \definecolor{bgcolor}{gray}{0.95} | |
| \let\oldtexttt\texttt | |
| \renewcommand{\texttt}[1]{ | |
| \colorbox{bgcolor}{\small\oldtexttt{#1}} | |
| } | |
| \hypersetup{ | |
| bookmarksopen=true, | |
| linkcolor=blue, | |
| filecolor=magenta, | |
| urlcolor=RoyalBlue, | |
| } |
This file contains hidden or 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
| MD_FILES := $(wildcard *.md) | |
| PDF_TARGETS = $(MD_FILES:.md=.pdf) | |
| .PHONY: all | |
| all: $(PDF_TARGETS) | |
| %.pdf : %.md | |
| pandoc -s $< -o $@ -t latex --highlight-style=tango -H head.tex |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment