Fix export for my use in writing

This commit is contained in:
JLP 2025-09-08 18:06:56 -04:00
parent a3693b9c89
commit a6d91b14a3
Signed by: jleechpe
GPG key ID: 414E00D1FF7519DC

View file

@ -187,7 +187,7 @@ are defining or executing a macro."
(set-fontset-font t nil emoji-font) (set-fontset-font t nil emoji-font)
(set-face-attribute 'default nil (set-face-attribute 'default nil
:family "SauceCode Pro Nerd Font";emacs-font :family "SauceCode Pro Nerd Font";emacs-font
:height 120 :height 100
:weight 'normal :weight 'normal
:width 'normal) :width 'normal)
@ -1238,6 +1238,36 @@ methods the save hook cannot detect, like file synchronization."
("S-<f5>" #'org-agenda) ("S-<f5>" #'org-agenda)
("<f6>" #'org-capture)) ("<f6>" #'org-capture))
;; ***** ox-odt
(use-package ox-odt
:ensure nil
:config
(defun org-odt-verse-block (_verse-block contents _info)
"Transcode a VERSE-BLOCK element from Org to ODT.
CONTENTS is verse block contents. INFO is a plist holding
contextual information."
(format "\n<text:p text:style-name=\"OrgVerse\">%s</text:p>"
(replace-regexp-in-string
;; Replace leading tabs and spaces.
"^[ \t]+" #'org-odt--encode-tabs-and-spaces
;; Add line breaks to each line of verse.
(replace-regexp-in-string
"^\\(<text:line-break/>\n\\)" "<text:line-break/>"
(replace-regexp-in-string
"\\(<text:line-break/>\\)?[ \t]*$" "<text:line-break/>" contents))))))
;; ***** ox-latex
(use-package ox-latex
:ensure nil
:config
(add-to-list 'org-latex-classes
'("memoir" "\\documentclass[11pt]{memoir}"
("\\part{%s}" . "\\part*{%s}")
("\\chapter{%s}" . "\\chapter*{%s}")
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))))
;; ***** doct ;; ***** doct
(use-package doct (use-package doct
:defer t) :defer t)