diff options
| author | Steve Lee <me@xiangyangli.com> | 2017-12-13 04:33:00 +0800 |
|---|---|---|
| committer | Steve Lee <me@xiangyangli.com> | 2017-12-13 04:33:00 +0800 |
| commit | 5f98cf9ac6e71ac84a7394a89748662d9c4f793d (patch) | |
| tree | d2044af1f9921c11c3a3e142062a5cb11d2e7a52 /.emacs.d/lisp/init-org.el~ | |
| parent | 6b910746e4b588c68a52caa8afaf73ccbf0586e0 (diff) | |
| download | dotfiles-5f98cf9ac6e71ac84a7394a89748662d9c4f793d.tar.xz dotfiles-5f98cf9ac6e71ac84a7394a89748662d9c4f793d.zip | |
add some basic
Diffstat (limited to '.emacs.d/lisp/init-org.el~')
| -rw-r--r-- | .emacs.d/lisp/init-org.el~ | 35 |
1 files changed, 35 insertions, 0 deletions
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")) |
