diff options
| author | Craig Jennings <c@cjennings.net> | 2026-10-19 15:01:56 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-10-19 15:01:56 -0500 |
| commit | ec4638af410e0aa6c91880e0f61c835c53e633e7 (patch) | |
| tree | 092b919aadc7392407f245a483a616576a22e2b3 /modules | |
| parent | 1197d5ed95e244e88dfa4cd6f15f662707707147 (diff) | |
| download | dotemacs-ec4638af410e0aa6c91880e0f61c835c53e633e7.tar.gz dotemacs-ec4638af410e0aa6c91880e0f61c835c53e633e7.zip | |
reveal.js centers every slide, which reads fine for a title and badly for paragraphs and lists. I left-aligned section content in the head preamble and kept the title slide and standalone images centered, where centering still reads right.
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/org-reveal-config.el | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/org-reveal-config.el b/modules/org-reveal-config.el index e5358b13..ddb0803d 100644 --- a/modules/org-reveal-config.el +++ b/modules/org-reveal-config.el @@ -99,8 +99,10 @@ Reveal.initialize call." (defun cj/--reveal-head-preamble () "Return the <style> element for the document head. -Sets the house font sizes through the theme variables and stops the -theme from upper-casing headings." +Sets the house font sizes through the theme variables, stops the theme +from upper-casing headings, and left-aligns slide text (reveal centers +everything by default); the title slide and standalone images keep the +centering." (format "<style> :root { --r-main-font-size: %s; @@ -110,6 +112,9 @@ theme from upper-casing headings." --r-heading4-size: 1em; } .reveal h1, .reveal h2, .reveal h3, .reveal p { text-transform: none; } +.reveal .slides section { text-align: left; } +.reveal .slides #sec-title-slide { text-align: center; } +.reveal .slides section .figure { text-align: center; } </style>" cj/reveal-base-font-size)) |
