Skip to content

Instantly share code, notes, and snippets.

@supermomonga
Created December 9, 2012 10:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save supermomonga/4244229 to your computer and use it in GitHub Desktop.
Save supermomonga/4244229 to your computer and use it in GitHub Desktop.
org-modeでの法政大学論文LaTeX用エクスポートフォーマット
;;; Classes
;; LaTeX::法政大学卒論
(when (require 'org nil t)
;;(setq org-export-latex-date-format "%Y-%m-%d")
(setq org-export-latex-classes nil)
;; 抄録class
(add-to-list 'org-export-latex-classes
'("thesis"
"
\\documentclass[11pt,a4paper]{jarticle}
\\usepackage[dvipdfm]{graphicx}
\\usepackage{times} % Times Roman
\\usepackage{geometry} % 余白の調整パッケージ
\\usepackage{setspace} % 行間の倍率調整パッケージ
\\usepackage{slashbox} % 表の斜線パッケージ
\\usepackage{multirow} % 表縦連結パッケージ
\\usepackage{float}
\\usepackage{amsmath}
\\usepackage{color} % 文字色変更パッケージ
%\\usepackage[margin=2cm,nohead, nofoot] {geometry}
\\setlength{\\baselineskip}{30pt}
\\geometry{left=30mm,right=30mm,top=35mm,bottom=30mm} % 余白の微調整
\\setstretch{1.2} % ページ全体の行間を設定
\\setlength {\\textheight} {36\\baselineskip } % 1ページの行数調整
\\setlength {\\textwidth} {40zw } % 1行の文字数調整
\\usepackage{pifont}
\\bibliographystyle{jplain}
"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
;; 本論class
(add-to-list 'org-export-latex-classes
'("extract"
"
\\documentclass[9pt,twocolumn]{jsarticle}
%\\usepackage[dviout]{graphicx}
\\usepackage[dvipdfm]{graphicx}
\\usepackage{times} % Times Roman
\\usepackage{geometry} % 余白の調整パッケージ
\\usepackage{setspace} % 行間の倍率調整パッケージ
\\usepackage{slashbox} % 表の斜線パッケージ
\\usepackage{multirow} % 表縦連結パッケージ
\\usepackage{float}
\\usepackage{amsmath}
%\\usepackage[margin=2cm,nohead, nofoot] {geometry}
\\geometry{left=21.3mm,right=21.3mm,top=25.4mm,bottom=25.4mm} % 余白の微調整
\\setstretch{0.9} % ページ全体の行間を設定
%\\setlength {\textheight} {52\baselineskip } % 1ページの行数調整
%\\setlength {\textwidth} {50zw } % 1行の文字数調整
\\pagestyle{empty}
\\usepackage{pifont}
\\bibliographystyle{jplain}
"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment