Skip to content

Instantly share code, notes, and snippets.

@yoshihiro503
Last active August 29, 2015 14:27
Show Gist options
  • Save yoshihiro503/5c2b7093ed9140f43fd8 to your computer and use it in GitHub Desktop.
Save yoshihiro503/5c2b7093ed9140f43fd8 to your computer and use it in GitHub Desktop.
coqdocで日本語を含むPDFを生成する ref: http://qiita.com/yoshihiro503/items/2e3035cc602301c7c9fc
$ coq_makefile -f Make -o Makefile
$ export COQDOCFLAGS="-interpolate -utf8 --body-only"
$ make Proof.pdf
$ unset COQDOCFLAGS
$ make html
-R src JapaneseCoqdocSampleProject
src/Hoge.v
src/Piyo.v
-custom "platex Proof.tex; platex Proof.tex" "Proof.tex $(VOFILES) $(VFILES:.v=.tex)" "Proof.dvi"
-custom "dvipdfmx Proof.dvi" "Proof.dvi" Proof.pdf
\documentclass[12pt]{jreport}
\usepackage[]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fullpage}
\usepackage{coqdoc}
\usepackage{amsmath,amssymb}
\begin{document}
\title{証明報告書}
\author{有限会社 ITプランニング\\システム検証部 証明支援系課\\今井宜洋}
\date{\today}
\maketitle
\tableofcontents{}
%% Coqソースコードを追加削除変更したときはこちらも変更してください
\include{src/Hoge}
\include{src/Piyo}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment