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

Align doesn't work in university theme #148

Open
vringar opened this issue Jan 28, 2024 · 2 comments
Open

Align doesn't work in university theme #148

vringar opened this issue Jan 28, 2024 · 2 comments

Comments

@vringar
Copy link

vringar commented Jan 28, 2024

Hey,
when trying to use #align in the university theme like this:

#import "@preview/polylux:0.3.1": *
#import themes.university: *

#show: university-theme.with()

#slide(title: [Title])[
#align(bottom)[
Demo text
]
]

The text would continue to stick to the top of the slides like this:
image

However, when using the simple theme, this would work.
Unfortunately, I don't understand enough Typst to debug, why this doesn't work. Can someone help?

@andreasKroepelin
Copy link
Owner

That's quite strange indeed. In the meantime, maybe try putting #v(1fr) at the top of your slide's content.

@Andrew-Schwartz
Copy link

I've found that the cause of this bug is that, in slide, body is wrapped in pad(x, y, ...) rather than block(inset: (x, y), ...). I'm planning to figure out how to make a PR for that in a couple days, but just changing that isn't too big a deal for now.

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

3 participants