Better exporting of Org sections
This commit is contained in:
		
							parent
							
								
									12d7b0f68e
								
							
						
					
					
						commit
						8289a9d31f
					
				
					 1 changed files with 19 additions and 2 deletions
				
			
		
							
								
								
									
										19
									
								
								ha-org.org
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								ha-org.org
									
									
									
									
									
								
							|  | @ -35,6 +35,7 @@ Org is a /large/ complex beast with a gazillion settings, so I discuss these lat | ||||||
|     <<org-todo>> |     <<org-todo>> | ||||||
|     <<org-todo-clock>> |     <<org-todo-clock>> | ||||||
|     <<ob-configuration>> |     <<ob-configuration>> | ||||||
|  |     <<html-exporting>> | ||||||
| 
 | 
 | ||||||
|     :config |     :config | ||||||
|     <<ha-org-leader>> |     <<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. |         sentence-end-double-space nil   ; I jump around by sentences, but seldom have two spaces. | ||||||
| 
 | 
 | ||||||
|         org-export-with-sub-superscripts nil |         org-export-with-sub-superscripts nil | ||||||
| 
 |         org-html-validation-link nil | ||||||
|         org-directory "~/personal" |         org-directory "~/personal" | ||||||
|         org-default-notes-file "~/personal/general-notes.txt" |         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-braces t | ||||||
|           graphviz-dot-auto-indent-on-semi t)) |           graphviz-dot-auto-indent-on-semi t)) | ||||||
| #+end_src | #+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 | ** Focused Work | ||||||
| :LOGBOOK: | :LOGBOOK: | ||||||
| CLOCK: [2022-02-11 Fri 11:05]--[2022-02-11 Fri 11:21] =>  0:16 | CLOCK: [2022-02-11 Fri 11:05]--[2022-02-11 Fri 11:21] =>  0:16 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue