Skip to content

Adding bibliography with empty title breaks slide titles in university theme #234

@joschakrug

Description

@joschakrug

Hi all,

when trying to include a bibliography into a presentation using the university theme, subsequent slide headings are breaking once I set the bibliography title to none. (This does not occur when using the simple theme.)

In the PDF generated from the minimum working example below, the second appendix slide still gets the title 'Appendix slide 1':

#import "@preview/touying:0.6.1": *

// no problem when using the simple theme
// #import themes.simple: *
// #show: simple-theme

// ... but subsequent slide headings break in university theme
#import themes.university: *
#show: university-theme

== Main body

#slide[
  Cite something to have a non-empty bibliography @Asterix-2025
]

== References

#slide[
  #bibliography(
    bytes(
      "@book{Asterix-2025,
        title = {Magic Potions for Great Slides},
        author = {Asterix and Obelix},
        date = {2025},
      }"
    ),
    title: none
  )
]

== Appendix slide 1

#slide[
  This should have title 'Appendix slide 1'
]

== Appendix slide 2

#slide[
  This should have title 'Appendix slide 2'
]

My current workaround is to include a title and use a show rule to set its size to .01pt and its fill colour to white, but that is obviously a quick hack rather than an actual solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions