Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attribution changes title position #3

Open
wiesehahn opened this issue Aug 3, 2023 · 1 comment
Open

Attribution changes title position #3

wiesehahn opened this issue Aug 3, 2023 · 1 comment

Comments

@wiesehahn
Copy link

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
Copy link
Contributor

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
:::

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants