summaryrefslogtreecommitdiff
path: root/.config/emacs/modules/bd--org.el
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2024-12-02 00:26:23 -0500
committerbd <bdunahu@operationnull.com>2024-12-02 00:26:23 -0500
commit59c898ea14d841864bde19da65b8498d9b0f0a39 (patch)
tree13462bfe334b6494b3976b4df2c79fde03a675a1 /.config/emacs/modules/bd--org.el
parent116fc2b156a08932a182319220efdab497b270d0 (diff)
pad modeline, change org latex headers
Diffstat (limited to '.config/emacs/modules/bd--org.el')
-rw-r--r--.config/emacs/modules/bd--org.el56
1 files changed, 55 insertions, 1 deletions
diff --git a/.config/emacs/modules/bd--org.el b/.config/emacs/modules/bd--org.el
index b2ee2a5..6d3c862 100644
--- a/.config/emacs/modules/bd--org.el
+++ b/.config/emacs/modules/bd--org.el
@@ -37,10 +37,64 @@ each org file open."
(python . t))))
(use-package ox
+ :config
+ (add-to-list 'org-latex-packages-alist '("" "listings"))
:custom
(org-latex-toc-command "\\tableofcontents \\clearpage")
+ (org-latex-src-block-backend 'listings)
(org-export-with-toc nil)
- (org-export-preserve-breaks t))
+ (org-export-preserve-breaks t)
+ (org-latex-classes
+ '(("article"
+ "\\PassOptionsToPackage{svgnames}{xcolor}
+\\documentclass[11pt]{article}
+\\usepackage{listings}
+\\lstset{frame=single,aboveskip=1em,
+ framesep=.5em,backgroundcolor=\\color{AliceBlue},
+ rulecolor=\\color{Black},framerule=1pt}
+\\usepackage{xcolor}
+\\newcommand\\basicdefault[1]{\\scriptsize\\color{Black}\\fontfamily{pcr}\\selectfont}
+\\lstset{basicstyle=\\basicdefault{\\spaceskip1em}}
+\\lstset{keywordstyle=\\color{DarkGreen}\\bfseries,
+ identifierstyle=\\color{DarkRed},
+ commentstyle=\\color{DimGray}\\upshape,
+ stringstyle=\\color{DarkBlue}\\upshape,
+ emphstyle=\\color{Chocolate}\\upshape,
+ showstringspaces=false,
+ columns=fullflexible,
+ keepspaces=true}
+\\usepackage{parskip}
+\\makeatletter
+\\renewcommand{\\maketitle}{%
+ \\begingroup\\parindent0pt
+ \\sffamily
+ \\begin{center}
+ \\Large{\\bfseries\\@title}\\par\\bigskip
+ \\large{\\bfseries\\@author}\\par\\medskip
+ \\normalsize\\@date\\par\\bigskip
+ \\end{center}
+ \\endgroup\\@afterindentfalse\\@afterheading}
+\\makeatother
+[DEFAULT-PACKAGES]
+\\hypersetup{linkcolor=Blue,urlcolor=DarkBlue,
+ citecolor=DarkRed,colorlinks=true}
+[PACKAGES]
+[EXTRA]"
+ ("\\section{%s}" . "\\section*{%s}")
+ ("\\subsection{%s}" . "\\subsection*{%s}")
+ ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
+ ("\\paragraph{%s}" . "\\paragraph*{%s}")
+ ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
+ ("report" "\\documentclass[11pt]{report}"
+ ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}")
+ ("\\section{%s}" . "\\section*{%s}")
+ ("\\subsection{%s}" . "\\subsection*{%s}")
+ ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
+ ("book" "\\documentclass[11pt]{book}" ("\\part{%s}" . "\\part*{%s}")
+ ("\\chapter{%s}" . "\\chapter*{%s}")
+ ("\\section{%s}" . "\\section*{%s}")
+ ("\\subsection{%s}" . "\\subsection*{%s}")
+ ("\\subsubsection{%s}" . "\\subsubsection*{%s}")))))
(use-package org-agenda
:bind