aboutsummaryrefslogtreecommitdiff
path: root/tests/test-org-reveal-config-sizing.el
Commit message (Collapse)AuthorAgeFilesLines
* feat(reveal): left-align slide content by defaultHEADmainCraig Jennings14 hours1-0/+7
| | | | 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.
* feat(reveal): fit dense slides to the canvas instead of clipping themCraig Jennings15 hours1-0/+239
reveal.js lays each slide out on a fixed canvas and clips whatever runs past the bottom. At the stock 42px font a slide held about six lines. Anything past that vanished with no sign it was missing. I made three changes in org-reveal-config.el. The canvas is now 16:9 (1280x720), so lines wrap later. The head preamble sets a 30px base font and smaller headings through the theme's CSS variables, so any reveal 4+ theme picks them up. A script spliced in after Reveal.initialize measures every slide once reveal is ready and shrinks any that still overflows, down to a floor of half size. A slide that overflows even there gets a console warning. A slide that fits stays at full size. The script stays out of overview and print view, where reveal lays slides out differently and a measurement means nothing. The header template now emits the same init options as the global default and turns off ^ markup, so snake_case identifiers in slide text stop exporting as subscripts. A file that already carries its own #+REVEAL_INIT_OPTIONS keeps them. The preamble and the fit script apply to every export.