Skip to content

Instantly share code, notes, and snippets.

@nzw0301
Last active November 20, 2016 16:52
Show Gist options
  • Save nzw0301/735a7eba0777338e60670561dffcb63c to your computer and use it in GitHub Desktop.
Save nzw0301/735a7eba0777338e60670561dffcb63c to your computer and use it in GitHub Desktop.
(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/") t) ;; to install contrib
(scroll-bar-mode 0)
(require 'org)
(setq org-src-fontify-natively t)
(require 'ox-latex)
(require 'ox-bibtex)
(setq org-latex-listings t)
(setq org-latex-packages-alist
'(
("colorlinks=true" "hyperref")
("" "bm")
("" "listings")
("" "color")
("" "url")
("" "algpseudocode")
("" "algorithm")
))
(setq org-latex-classes
'(("ltjsarticle"
"\\documentclass{ltjsarticle}
[NO-DEFAULT-PACKAGES]
\\usepackage[utf8]{inputenc}
\\usepackage[T1]{fontenc}
\\usepackage{graphicx}
\\usepackage{grffile}
\\usepackage{longtable}
\\usepackage{wrapfig}
\\usepackage{rotating}
\\usepackage[normalem]{ulem}
\\usepackage{amsmath}
\\usepackage{textcomp}
\\usepackage{amssymb}
\\usepackage{capt-of}"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
("ltjsarticle_two"
"\\documentclass[twocolumn]{ltjsarticle}"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
("beamer"
"\\documentclass[presentation]{beamer}
\\usefonttheme{professionalfonts}"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
("ltjbook"
"\\documentclass{ltjbook}"
("\\part{%s}" . "\\part{%s}")
("\\chapter{%s}" . "\\chapter{%s}")
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))))
(setq org-latex-pdf-process '("lualatex %b" "lualatex %b"))
(setq org-latex-default-class "ltjsarticle")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment