|
|
|
@ -509,29 +509,27 @@ In =emacs27= and above, I can set certain headlines not to be exported. I haven
|
|
|
|
|
(ox-extras-activate '(ignore-headlines)))
|
|
|
|
|
#+END_SRC
|
|
|
|
|
|
|
|
|
|
Add the =memoir= class for LaTeX export.
|
|
|
|
|
Add a couple of classes for LaTeX export.
|
|
|
|
|
|
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
|
(if (version< emacs-version "27")
|
|
|
|
|
(with-eval-after-load 'ox-latex
|
|
|
|
|
(add-to-list 'org-latex-classes
|
|
|
|
|
'("article-std"
|
|
|
|
|
"\\documentclass{article}
|
|
|
|
|
(add-to-list 'org-latex-classes
|
|
|
|
|
'("article-std"
|
|
|
|
|
"\\documentclass{article}
|
|
|
|
|
[NO-DEFAULT-PACKAGES]
|
|
|
|
|
\\input{$HOME/.emacs.d/header.tex} %$"
|
|
|
|
|
("\\section{%s}" . "\\section*{%s}")
|
|
|
|
|
("\\subsection{%s}" . "\\subsection*{%s}")
|
|
|
|
|
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))))
|
|
|
|
|
(add-to-list 'org-latex-classes
|
|
|
|
|
'("memoir"
|
|
|
|
|
"\\documentclass[9pt,b6paper]{memoir}
|
|
|
|
|
("\\section{%s}" . "\\section*{%s}")
|
|
|
|
|
("\\subsection{%s}" . "\\subsection*{%s}")
|
|
|
|
|
("\\subsubsection{%s}" . "\\subsubsection*{%s}")))
|
|
|
|
|
(add-to-list 'org-latex-classes
|
|
|
|
|
'("memoir"
|
|
|
|
|
"\\documentclass[9pt,b6paper]{memoir}
|
|
|
|
|
[NO-DEFAULT-PACKAGES]
|
|
|
|
|
\\usepackage[namechapters]{optional}
|
|
|
|
|
\\input{$HOME/.emacs.d/fic-export-files/header.tex} %$"
|
|
|
|
|
("\\chapter{%s}" . "\\chapter*{%s}")
|
|
|
|
|
("\\section{%s}" . "\\section*{%s}")
|
|
|
|
|
("\\subsection{%s}" . "\\subsection*{%s}")
|
|
|
|
|
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))))
|
|
|
|
|
("\\chapter{%s}" . "\\chapter*{%s}")
|
|
|
|
|
("\\section{%s}" . "\\section*{%s}")
|
|
|
|
|
("\\subsection{%s}" . "\\subsection*{%s}")
|
|
|
|
|
("\\subsubsection{%s}" . "\\subsubsection*{%s}")))
|
|
|
|
|
#+END_SRC
|
|
|
|
|
|
|
|
|
|
Settings for export, mostly for DW post previews but also fic?? And work I guess, I do that sometimes.
|
|
|
|
@ -548,8 +546,7 @@ Settings for export, mostly for DW post previews but also fic?? And work I guess
|
|
|
|
|
(progn
|
|
|
|
|
(setq org-export-with-author nil)
|
|
|
|
|
(setq org-latex-default-class "article-std"))
|
|
|
|
|
(unless (version< emacs-version "27")
|
|
|
|
|
(setq org-latex-default-class "memoir")))
|
|
|
|
|
(setq org-latex-default-class "memoir"))
|
|
|
|
|
(setq org-latex-compiler "xelatex")
|
|
|
|
|
(setq org-html-validation-link nil)
|
|
|
|
|
(setq org-html-doctype "html5")
|
|
|
|
|