Skip to content

Instantly share code, notes, and snippets.

@rinx
Last active October 6, 2017 04:15
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rinx/8644437 to your computer and use it in GitHub Desktop.
Save rinx/8644437 to your computer and use it in GitHub Desktop.
markdownで書いた文書をbeamerに変換するときのメモ
\usepackage{luatexja}
\hypersetup{unicode=true}

% beamerをMarkdownで書く % Rintaro Okamura(Tohoku University) % Jan.27 2014

はじめに

きっかけ

ぼく「ohr先生のスライドかっこいい!」
ぼく「...beamerか、やってみよう」

概要

  • markdownで書いた文書を
  • pandocで
  • beamerスライド形式の
  • texに変換して
  • pdfに書き出す

pandocでの変換

やってみた

  1. markdownで書く
  2. pandocで変換

###実行 $ pandoc --latex-engine=lualatex
-H h-luatexja.tex
-t beamer
-V theme=Warsaw
-o output.pdf
input.md

注意点

日本語で書いている場合は、h-luatexja.texに

\usepackage{luatexja}
\hypersetup{unicode=true}

を追加しておかないと残念なことになる。

欠点

右上の'subsection'が生成されない
texソースを書き出して直接編集するのがよさそう

SLIDES demo

In the morning

  • Eat eggs
  • Drink coffee

In the evening

  • Eat spaghetti
  • Drink wine

Conclusion

  • And the answer is...
  • $f(x)-\sum_{n-0}^\infty\frac{f^{(n)}(a)}{n!}(x-a)^n$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment