Skip to content

Instantly share code, notes, and snippets.

@ShigekiKarita
Last active August 26, 2023 20:16
Show Gist options
  • Select an option

  • Save ShigekiKarita/ec7217fb4731f22962afe60423b952cb to your computer and use it in GitHub Desktop.

Select an option

Save ShigekiKarita/ec7217fb4731f22962afe60423b952cb to your computer and use it in GitHub Desktop.
how to use lualatex in emacs org-mode
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(setq org-latex-classes '(("ltjsarticle"
"\\documentclass{ltjsarticle}
\\usepackage{url}
\\usepackage{amsmath}
\\usepackage{newtxtext,newtxmath}
\\usepackage{graphicx}
\\usepackage{luatexja}
\\usepackage[unicode]{hyperref}
[NO-DEFAULT-PACKAGES]
[PACKAGES]
[EXTRA]"
("\\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
'("latexmk -gg -lualatex %f"
))
(setq org-latex-default-class "ltjsarticle")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment