From 5f98cf9ac6e71ac84a7394a89748662d9c4f793d Mon Sep 17 00:00:00 2001 From: Steve Lee Date: Wed, 13 Dec 2017 04:33:00 +0800 Subject: add some basic --- .emacs.d/lisp/init-org.el~ | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .emacs.d/lisp/init-org.el~ (limited to '.emacs.d/lisp/init-org.el~') diff --git a/.emacs.d/lisp/init-org.el~ b/.emacs.d/lisp/init-org.el~ new file mode 100644 index 0000000..6409de9 --- /dev/null +++ b/.emacs.d/lisp/init-org.el~ @@ -0,0 +1,35 @@ +;; org-mode pdf outpuf +(setq org-latex-classes + '(("article" + " + \\documentclass[11pt]{article} + \\usepackage{xeCJK} + \\usepackage{indentfirst} + \\usepackage{amsmath} + \\setlength{\\parindent}{2em} + \\setCJKmainfont{SimSun} + \\numberwithin{equation}{section} + \\newtheorem{Theorem}{定理}[section] + \\newtheorem{Definition}[Theorem]{定义} + \\newtheorem{Lemma}[Theorem]{引理} + \\newtheorem{Corollary}[Theorem]{推论} + \\topmargin=-0.45in + \\evensidemargin=0in + \\oddsidemargin=0in + \\textwidth=6.5in + \\textheight=9.0in + \\headsep=0.25in + + \\linespread{1.1} + " + ("\\section{%s}" . "\\section*{%s}") + ("\\subsection{%s}" . "\\subsection*{%s}") + ("\\subsubsection{%s}" . "\\subsubsection*{%s}") + ("\\paragraph{%s}" . "\\paragraph*{%s}") + ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) + )) +;; Use XeLaTex +(setq org-latex-pdf-process + '("xelatex -interaction nonstopmode -output-directory %o %f" + "xelatex -interaction nonstopmode -output-directory %o %f" + "xelatex -interaction nonstopmode -output-directory %o %f")) -- cgit v1.2.3