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

PDF --theme: Support Part/Chapter styling in bookmaps #70

Open
infotexture opened this issue Oct 15, 2022 · 0 comments
Open

PDF --theme: Support Part/Chapter styling in bookmaps #70

infotexture opened this issue Oct 15, 2022 · 0 comments
Labels
enhancement theme Related to theme DSL

Comments

@infotexture
Copy link
Collaborator

Currently, when publishing PDF with the --theme option, bookmap Part and Chapter references are styled with h1 like first-level topic titles.

Many authors who publish PDF choose bookmap for the Part and Chapter constructs, so a PDF theme should at least provide basic styling support for these elements.

If labels, numbers, and titles are rendered on separate lines (like in PDF2), it would be convenient to them independently:

style:
  part:
    label:
      color: $brand-color-secondary
      font-size: 18pt
    number:
      color: $brand-color-primary
      font-size: 36pt
    title:
      border-after: solid 2pt $brand-color-inverse
      color: $brand-color-primary
      font-size: 18pt

If this plug-in renders all 3 on one line instead, the title content could be defined with a dedicated key like in #68, and styled separately from first-level topic titles:

style:
  chapter:
    title:
      color: $brand-color-primary
      content: "Chapter {number}: {title}"
      font-size: 18pt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement theme Related to theme DSL
Projects
None yet
Development

No branches or pull requests

1 participant