summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlake Romero <blake@blkrom.com>2025-07-11 12:57:15 +0100
committerBlake Romero <blake@blkrom.com>2025-07-11 12:57:15 +0100
commitca948304ff6d64c81059e251712a744df67eab7a (patch)
treeb15d1e653a3bb7f39cf34a5e0b996ceb5bb68541
parent2fe716af2b4aa31b18c0c8dc67da2a8c9bb205e5 (diff)
Simplify org LaTeX doc class
-rw-r--r--emacs-config.org77
1 files changed, 38 insertions, 39 deletions
diff --git a/emacs-config.org b/emacs-config.org
index 0af7cd6..3e4f585 100644
--- a/emacs-config.org
+++ b/emacs-config.org
@@ -583,45 +583,44 @@ Set [[https://ctan.org/pkg/hyperref][hyperref]] LaTeX settings.
Add =doc= LaTeX class.
#+begin_src elisp
- (with-eval-after-load 'ox-latex
- (add-to-list 'org-latex-classes
- `("doc"
- ,(string-join
- '(
- "\\documentclass[11pt]{article}"
-
- ;; Geometry
- "\\usepackage[a4paper,margin=1in]{geometry}"
-
- ;; Paraskip
- "\\usepackage{parskip}"
- "\\setlength{\\parindent}{0em}"
- "\\setlength{\\parskip}{1em}"
-
- ;; Line height
- "\\renewcommand{\\baselinestretch}{1.2}"
-
- ;; Fancyhdr (header/footer)
- "\\usepackage{fancyhdr}"
- "\\pagestyle{fancy}"
- "\\fancyhead[LH,LH]{\\scriptsize\\leftmark}"
- "\\fancyhead[RH,RH]{\\scriptsize\\rightmark}"
- "\\fancyfoot[CF]{\\thepage}"
- "\\fancyfootoffset{\\pagewidth}"
- "\\renewcommand{\\headrulewidth}{0.5pt}" ; top line thickness
- "\\renewcommand{\\footrulewidth}{0.5pt}" ; bottom line thickness
- "\\renewcommand{\\headruleskip}{10pt}" ; top line padding
- "\\renewcommand{\\footruleskip}{10pt}" ; bottom line padding
- )
- "\n")
- ("\\section{%s}" . "\\section*{%s}")
- ("\\subsection{%s}" . "\\subsection*{%s}")
- ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
- ("\\paragraph{%s}" . "\\paragraph*{%s}")
- ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))))
-#+end_src
-
-*** Org Habit
+ (cl-pushnew
+ '("doc"
+ "
+ % Document Type
+ \\documentclass[11pt]{article}
+
+ % Geometry
+ \\usepackage[a4paper,margin=1in]{geometry}
+
+ % Paraskip
+ \\usepackage{parskip}
+ \\setlength{\\parindent}{0em}
+ \\setlength{\\parskip}{1em}
+
+ % Line height
+ \\renewcommand{\\baselinestretch}{1.2}
+
+ % Fancyhdr (header/footer)
+ \\usepackage{fancyhdr}
+ \\pagestyle{fancy}
+ \\fancyhead[LH,LH]{\\scriptsize\\leftmark}
+ \\fancyhead[RH,RH]{\\scriptsize\\rightmark}
+ \\fancyfoot[CF]{\\thepage}
+ \\fancyfootoffset{\\pagewidth}
+ \\renewcommand{\\headrulewidth}{0.5pt} % top line thickness
+ \\renewcommand{\\footrulewidth}{0.5pt} % bottom line thickness
+ \\renewcommand{\\headruleskip}{10pt} % top line padding
+ \\renewcommand{\\footruleskip}{10pt} % bottom line padding
+ "
+ ("\\section{%s}" . "\\section*{%s}")
+ ("\\subsection{%s}" . "\\subsection*{%s}")
+ ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
+ ("\\paragraph{%s}" . "\\paragraph*{%s}")
+ ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
+ org-latex-classes)
+#+end_src
+
+** Org Habit
#+begin_src elisp
(with-eval-after-load "org-habit"
(setq-default