Better exporting of Org sections

This commit is contained in:
Howard Abrams 2023-03-13 10:54:51 -07:00
parent 12d7b0f68e
commit 8289a9d31f

View file

@ -35,6 +35,7 @@ Org is a /large/ complex beast with a gazillion settings, so I discuss these lat
<<org-todo>>
<<org-todo-clock>>
<<ob-configuration>>
<<html-exporting>>
:config
<<ha-org-leader>>
@ -76,7 +77,7 @@ Begin by initializing these org variables:
sentence-end-double-space nil ; I jump around by sentences, but seldom have two spaces.
org-export-with-sub-superscripts nil
org-html-validation-link nil
org-directory "~/personal"
org-default-notes-file "~/personal/general-notes.txt"
@ -604,6 +605,22 @@ And Graphviz configuration using [[https://github.com/ppareit/graphviz-dot-mode]
graphviz-dot-auto-indent-on-braces t
graphviz-dot-auto-indent-on-semi t))
#+end_src
*** HTML Style
Splitting out HTML snippets is often a way that I can transfer org-formatted content to other applications.
#+name: html-exporting
#+begin_src emacs-lisp
(setq org-html-head-extra
(string-join '( "<style>"
"@import url('https://fonts.googleapis.com/css2?family=Overpass:ital,wght@0,300;0,600;1,300;1,600&display=swap');"
"html { font-family: 'Overpass', sans-serif; color: #333; }"
"pre.src { background-color: #eee; }"
;; "@importmedia (prefers-color-scheme: dark) {"
" html { background-color: #1d1f21; color: white; }"
" pre.src { background-color: black; }"
;; "}"
"</style>")
hard-newline))
#+end_src
** Focused Work
:LOGBOOK:
CLOCK: [2022-02-11 Fri 11:05]--[2022-02-11 Fri 11:21] => 0:16
@ -1039,7 +1056,7 @@ Trying out [[https://protesilaos.com/][Protesilaos Stavrou]]s [[https://prote
"g [" 'logos-backward-page-dwim
"g ]" 'logos-forward-page-dwim))
#+end_src
* Technical Artifacts :noexport:
* Technical Artifacts :noexport:
Let's provide a name, to allow =require= to work:
#+begin_src emacs-lisp :exports none
(provide 'ha-org)