Skip to content

Instantly share code, notes, and snippets.

@zmughal
Last active December 14, 2015 05:48
Show Gist options
  • Save zmughal/90bc69744c1f4a6914bc to your computer and use it in GitHub Desktop.
Save zmughal/90bc69744c1f4a6914bc to your computer and use it in GitHub Desktop.
\documentclass{article}
\usepackage{hyperref}
\usepackage{longtable,multirow,booktabs}
\begin{document}
\input{test} % test.md
\input{table} % table.md
\end{document}
MD_GLOB := $(wildcard *.md)
TEX_GLOB := $(subst .md,.tex,$(MD_GLOB))
all: file.pdf file.png
%.png: %.pdf
mudraw -o $@ $< 1
file.pdf: file.tex $(TEX_GLOB)
%.pdf: %.tex
latexmk -pdf -silent -diagnostics $<
%.tex: %.md
pandoc -t latex $< -o $@

Column 1 Column 2 Column 3


1 A Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

2 B Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.

3 C Test

4 D Multiple

5 E Lines


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment