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

theme: add rectangles #131

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

felsenhower
Copy link

This PR adds the rectangles theme which is inspired by LaTeX beamer presentations using the outer theme miniframes and inner frame rectangles.

It is somewhat similar to the university theme but designed to be a bit easier to use.

In contrast, all the meta-data like title are part of the theme initialization and new-section() is a dedicated function.

Note: There remains a bug where the first slide after a new-section() is missing the header and footer, with the exception of the first section / slide after #title-slide(). This seems rather obscure, so I'm not entirely sure if this isn't a bug in polylux' section handling?

The example in book/src/themes/gallery/rectangles.typ looks fine, but this does not:

#import "polylux.typ": *
#import themes.rectangles: *

#set text(font: "Fira Sans", weight: "regular")

#show: rectangles-theme.with(
  authors: ("Author A", "Author B"),
  title: "Title",
  subtitle: "Subtitle",
  date: "Date",
)

#title-slide()

#new-section("First section")

#slide[
  = First slide

  #lorem(20)
]

#new-section("First section")

#slide[
  = Second slide

  - Bullet points...
  - They are using the accent color!
]

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 this pull request may close these issues.

1 participant