typst-orange-template icon indicating copy to clipboard operation
typst-orange-template copied to clipboard

Overlapping text in book title due to `par` usage instead of `heading` in Orange Book

Open ldegiorgi opened this issue 3 weeks ago • 1 comments

Hi, and thank you for the great Orange Book template.

While using the template in Typst, I noticed that the book title lines slightly overlap.
After some investigation (and a suggestion on the Typst Forum), it seems that the issue is caused by the vertical spacing defined around line 521 of the template.

Currently, the title is implemented using par, but this appears to be the reason for the overlapping.
From a typographical perspective, using a heading would make more sense for a book title, and would also allow users to override spacing more cleanly.

For example, with heading, one could easily apply:

#show heading: set par(leading: 0.4em)

This would enable custom spacing without modifying the template’s internal code.

Request:

Would it be possible to:

  1. Adjust the spacing value at line 521, or
  2. (Preferred) Switch the implementation of the book title from par to heading?

This would improve the typography and make the template more customizable for end users.

Thanks again for your work!

Luca

Image

ldegiorgi avatar Nov 29 '25 14:11 ldegiorgi

Hi, thanks for the report and the suggestion. I will do both things and release in the next version. Thanks again

flavio20002 avatar Nov 29 '25 14:11 flavio20002

Heading had a lot of conflicts, so i just adjusted the space:

https://github.com/typst/packages/pull/3612

flavio20002 avatar Dec 08 '25 10:12 flavio20002

Fixed in orange-book:0.6.2

flavio20002 avatar Dec 12 '25 14:12 flavio20002