-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tex
More file actions
58 lines (50 loc) · 1.36 KB
/
main.tex
File metadata and controls
58 lines (50 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{titlesec}
\usepackage{parskip}
\usepackage{multicol}
\usepackage{geometry}
\usepackage{tocloft}
\usepackage{needspace}
\geometry{margin=1.5cm}
\renewcommand{\cftdot}{.}
\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}
\newenvironment{song}{
\par\nopagebreak[4]
\begin{flushleft}
}{
\end{flushleft}
\par
}
\newenvironment{chorus}
{\begin{verse}\itshape}
{\end{verse}}
% Command for song title (numbering will be added by Python)
\newcommand{\songtitle}[1]{%
\needspace{6\baselineskip}% Ensure at least 6 lines on current page
\vspace*{1\baselineskip}% space BEFORE the title (kept even at top of page)
{\centering\fontsize{12}{14}\selectfont\bfseries #1\par}%
\vspace{0.5\baselineskip}% small space AFTER the title before lyrics
\addcontentsline{toc}{section}{#1}%
\markboth{#1}{#1}%
}
\begin{document}
% Cover page
\begin{titlepage}
\centering
\vspace*{3cm}
{\Huge\bfseries St. Albani Church\\[1cm]}
{\Large\itshape A Collection of Songs for Worship\\[1cm]}
{\Large\bfseries Odense, Danmark\\[1cm]}
{\large Compiled 23 February, 2026}
\vfill
\end{titlepage}
% Table of contents
\begin{multicols}{2}
\setlength{\parskip}{0pt}
\tableofcontents
\end{multicols}
\clearpage
% Include songs from the generated file
\input{songs_sorted.tex}
\end{document}