Tidy snippets, make template for work LaTeX export

This commit is contained in:
mez 2025-07-22 11:25:15 +01:00
parent 49fbc8e7dc
commit 5f3bfbef59
35 changed files with 47 additions and 330 deletions

View file

@ -477,7 +477,7 @@ Add a couple of classes for LaTeX export.
'("article-std"
"\\documentclass{article}
[NO-DEFAULT-PACKAGES]
\\input{$HOME/.emacs.d/header.tex} %$\n% latexbib"
\\input{$HOME/.emacs.d/header.tex} %$"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")))
@ -507,11 +507,31 @@ General export settings:
(if (string-equal user-login-name "3055822")
(progn
(setq org-export-with-author nil)
(setq org-latex-default-class "article-std"))
(setq org-latex-default-class "article-std")
(defun my/org-export-add-lines (output backend info)
"Add custom lines to the exported output."
(when (org-export-derived-backend-p backend 'latex)
(concat output "\n\n"
"%%% Local Variables: \n"
"%%% mode: latex\n"
"%%% TeX-master: t\n"
"%%% End: \n")))
(add-to-list 'org-export-filter-final-output-functions
'my/org-export-add-lines))
(if workhours
(progn
(setq org-export-with-author nil)
(setq org-latex-default-class "article-std"))
(setq org-latex-default-class "article-std")
(defun my/org-export-add-lines (output backend info)
"Add custom lines to the exported output."
(when (org-export-derived-backend-p backend 'latex)
(concat output "\n\n"
"%%% Local Variables: \n"
"%%% mode: latex\n"
"%%% TeX-master: t\n"
"%%% End: \n")))
(add-to-list 'org-export-filter-final-output-functions
'my/org-export-add-lines))
(setq org-latex-default-class "memoir")))
(setq org-latex-compiler "xelatex"))
(setq org-html-validation-link nil)