(when (locate-library "ox-latex")
(require 'ox-latex))
(when (locate-library "ox-bibtex")
(require 'ox-bibtex))
;;; LaTeX 形式のファイル PDF に変換するためのコマンド
(setq org-latex-pdf-process
'("platex %f"
"platex %f"
"bibtex %b"
"platex %f"
"platex %f"
"dvipdfmx %b.dvi"))
;;; ¥hypersetup{...} を出力しない
(setq org-latex-with-hyperref nil)
(add-to-list 'org-latex-classes
'("thesis"
"¥¥documentclass{jarticle}
[NO-PACKAGES]
[NO-DEFAULT-PACKAGES]
¥¥usepackage[dvipdfmx]{graphicx}"
("¥¥section{%s}" . "¥¥section*{%s}")
("¥¥subsection{%s}" . "¥¥subsection*{%s}")
("¥¥subsubsection{%s}" . "¥¥subsubsection*{%s}")
("¥¥paragraph{%s}" . "¥¥paragraph*{%s}")
("¥¥subparagraph{%s}" . "¥¥subparagraph*{%s}")))