Skip to content

Instantly share code, notes, and snippets.

@rinx
Created April 20, 2014 11:33
Show Gist options
  • Select an option

  • Save rinx/11111868 to your computer and use it in GitHub Desktop.

Select an option

Save rinx/11111868 to your computer and use it in GitHub Desktop.
convert markdown to tex-beamer via pandoc
output.pdf: input.md h-luatexja.tex
pandoc --latex-engine=lualatex \
-H h-luatexja.tex \
-t beamer \
-V theme=Madrid \
-o output.pdf \
input.md
input.md:
touch input.md
echo "% Title" >> input.md
echo "% Author" >> input.md
echo "% Date" >> input.md
h-luatexja.tex:
touch h-luatexja.tex
echo "\usepackage{luatexja}" >> h-luatexja.tex
echo "\hypersetup{unicode=true}" >> h-luatexja.tex
clean:
rm -f h-luatexja.tex output.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment