Skip to content

Instantly share code, notes, and snippets.

@coldnew
Created October 9, 2012 13:51
Show Gist options
  • Save coldnew/3858948 to your computer and use it in GitHub Desktop.
Save coldnew/3858948 to your computer and use it in GitHub Desktop.
my org-mode latex class
(add-to-list 'org-export-latex-classes
'("coldnew-article"
"\\documentclass[12pt,a4paper]{article}
\\usepackage[T1]{fontenc}
\\usepackage{fontspec}
\\usepackage{xeCJK}
\\setCJKmainfont{Hiragino Sans GB W3}
\\XeTeXlinebreaklocale \"zh\"
\\XeTeXlinebreakskip = 0pt plus 1pt
\\usepackage{graphicx}
\\usepackage{tikz}
\\usepackage[bookmarks=true,colorlinks,linkcolor=black]{hyperref}
\\defaultfontfeatures{Mapping=tex-text}
\\setmonofont[Scale=0.8]{DejaVu Sans Mono}
\\usepackage{geometry}
\\geometry{a4paper, textwidth=6.5in, textheight=8in,
marginparsep=10pt, marginparwidth=.6in}
\\pagestyle{plain}
\\linespread{1.5}
\\title{}
[NO-DEFAULT-PACKAGES]
[NO-PACKAGES]"
("\\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