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

University theme ignores section name if title is not set #169

Open
2xsaiko opened this issue May 22, 2024 · 0 comments · May be fixed by #170
Open

University theme ignores section name if title is not set #169

2xsaiko opened this issue May 22, 2024 · 0 comments · May be fixed by #170

Comments

@2xsaiko
Copy link

2xsaiko commented May 22, 2024

Take e.g.

#slide(title: [Title 1], new-section: [Section 1])[
  #lorem(20)
]

#slide(new-section: [Section 2])[
  #lorem(20)
]

#slide(title: [Title 2])[
  #lorem(20)
]

Only the first and third slides will display section name, and the third slide will show up as Section 1.

Looking at the code, I can see that the new-section argument is entirely ignored if title is not set.

} else if title != none {
if new-section != none {
utils.register-section(new-section)
}

2xsaiko added a commit to 2xsaiko/polylux that referenced this issue May 22, 2024
2xsaiko added a commit to 2xsaiko/polylux that referenced this issue May 22, 2024
Now always register new section if new-section argument is set,
and display the header additionally if there is a current section
but no title.

Closes andreasKroepelin#169.
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

Successfully merging a pull request may close this issue.

1 participant