Last active
August 26, 2023 20:16
-
-
Save ShigekiKarita/ec7217fb4731f22962afe60423b952cb to your computer and use it in GitHub Desktop.
how to use lualatex in emacs org-mode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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