quarto-ext / attribution

Display attribution text sideways along the right edge of Revealjs slides.
MIT License
16 stars 0 forks source link

Attribution changes title position #3

Open wiesehahn opened 1 year ago

wiesehahn commented 1 year ago

Thanks for this extension!

I discovered, that the adding of an attribution (even without content) changes the placement of H1 headings (for H2 nothing changes), until now I could not find the reason. Do you know where to fix this?

E.g.

# Slide1

without attribution heading is in center

# Slide2

with attribution heading is top

::: {.attribution}
:::
dragonstyle commented 1 year ago

It looks to me like RevealJS is allocating space for the attributiondiv on the slide, even though it will displayed off to the right.

Here is a workaround, though I can't vouch for how well it will generally work:

---
format: revealjs
revealjs-plugins:
  - attribution
include-in-header:
  text: |
    <style>
    section.title-slide {
        top: 252px !important;
    }
    </style>

---

# Slide1

without attribution heading is in center

# Slide2

with attribution heading is top

::: {.attribution}
Hello World
:::