Skip to content

Instantly share code, notes, and snippets.

@add20

add20/README.md Secret

Last active December 19, 2015 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save add20/a4ea9b143c41552e72f5 to your computer and use it in GitHub Desktop.
Save add20/a4ea9b143c41552e72f5 to your computer and use it in GitHub Desktop.
pandocでlatexをpdfに変換

pandocでlatexをpdfに変換

lualatexを使用。

$ alias pandoc-pdf='pandoc -V mainfont=OsakaMono -V documentclass=ltjarticle --latex-engine=lualatex --tab-stop=2 --toc'
$ pandoc-pdf sample1.tex -o sample1.pdf -V fontsize=10pt && open sample1.pdf

参考

LaTeX 入門

\documentclass[12pt,a4j]{jarticle}
\begin{document}
\noindent
{\bf b) Farey 数列}
\medskip
Farey 数列を格子点を用いて証明をしよう.
\medskip
\noindent
{\bf 定義 2.3} 正の整数 $n$ を一つとる.分母, 分子ともに $n$ を
越えない自然数によって与えられる既約分数に $0$ を合わせ, これを大きさの
順に並べる.これを $n$ に対する Farey 数列という.
\bigskip
\noindent
例 2.6. $n = 5$ とすれば, 区間 $[0,1]$ の上に, $5$ に対する Farey
数列は
\[ \frac{0}{1}, \frac{1}{5}, \frac{1}{4}, ... \]
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment