Files
songbook/songbook.yaml
shahondin1624 6d67c051f0 fix: position reference footer below content to prevent overlap (Closes #25)
The reference footer was anchored to a fixed position near the bottom
margin, causing it to overlap with notes text on songs that had both
notes and references (e.g., "Die Gedanken sind frei").

Changed renderReferenceFooter to use flow-based positioning from the
current y-position after notes/metadata, ensuring the separator line,
abbreviation headers, and page numbers always render below the
preceding content without overlap.

Also updated calculateFooterReservation and MeasurementEngine to match
the simplified layout calculation, and added toc.highlight_column to
the example songbook.yaml to demonstrate column highlighting.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-17 14:59:20 +01:00

46 lines
1.1 KiB
YAML

book:
title: "Pfadfinder Liederbuch"
subtitle: "Beispiel-Ausgabe"
edition: "1. Auflage, 2026"
format: A5
songs:
directory: "./songs"
order: alphabetical
fonts:
lyrics: { family: "Helvetica", size: 10 }
chords: { family: "Helvetica", size: 9, color: "#333333" }
title: { family: "Helvetica", size: 14 }
metadata: { family: "Helvetica", size: 8 }
toc: { family: "Helvetica", size: 9 }
# To use a custom font file (e.g. Fraktur/Blackletter for titles):
# title: { file: "./fonts/FrakturFont.ttf", size: 16 }
# The file path is relative to the project directory.
# Supported formats: .ttf, .otf
# Custom fonts are embedded in the PDF and support Unicode (including umlauts).
layout:
margins: { top: 15, bottom: 15, inner: 20, outer: 12 }
chord_line_spacing: 1
verse_spacing: 6
page_number_position: bottom-outer
images:
directory: "./images"
reference_books:
- id: mundorgel
name: "Mundorgel"
abbreviation: "MO"
- id: pfadfinderliederbuch
name: "Pfadfinderliederbuch"
abbreviation: "PfLB"
toc:
highlight_column: "Seite"
output:
directory: "./output"
filename: "liederbuch.pdf"