%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                   %
%      Made by Gabriel Ruprecht     %
%                                   %
% This work is published under the  %
% LaTeX project public license 1.3  %
%                                   %
%       Package version 1.1.0       %
%            2025-01-20             %
%                                   %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\documentclass[a5paper, 11pt]{scrartcl}
\documentclass[a5paper, 11pt]{article}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{lipsum}
\usepackage{scrlayer-scrpage}
\usepackage{liederbuch}

\usepackage{TestLiederbuch}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% If compilation with pdfLaTeX fails, try LuaLaTeX %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%% This is default %%%
%\pageBreakAllowedtrue
%%% but you can use also this %%%
%\pageBreakAllowedtrue
%%% try uncommenting the second one and see, what happens in the strophes %%%

%%% This is a nice head %%%
\LBHead{%
{\Large \textbf{\print{title}}}\hfill\mbox{}\vspace*{5pt}\\
\makebox[32pt]{Musik:\hfill} \print{composer} \\\makebox[32pt]{Text:\hfill} \print{lyricist}\vspace*{3pt}

}

%%% This is an okay foot. The text will be always on the left due to the hfill. %%%
\LBFoot{Herausgabedatum: \print{date}\hfill\mbox{}}

%%% You can change these throughout the document however you like %%%
\setSpaceBeforeStropheValue{15pt plus 5pt}
\setSpaceAfterStropheValue{0pt plus 5pt}
\setSpaceBeforeHeadValue{15pt plus 10pt minus 5pt}
\setSpaceBeforeFootValue{15pt plus 10pt minus 5pt}

\listofsongsstyle{simple with number}

\begin{document}

\LBsong{TestLiederbuch}{1}{nt}

\LBsong{TestLiederbuch}{1}{t}


\section{new section}
\lipsum[1]
\begin{center}
\LBsong{TestLiederbuch}{2}{nt}
\end{center}
\lipsum[1]

%%% If you delete the '%' at the beginnng of the next line, you can fix the meta data: %%%
%\tweakMetadata{t}{TestLiederbuch}{3}{source = Aschenbecher & title = Oh alte Wurstverkäuferherrlichkeit & composer = This doesn't make sense & unusedTag = we don't need that & writer = Now all tags are filled}

\LBsong{TestLiederbuch}{3}{t}

Text zum Testen \LBsong{TestLiederbuch}{80}{nt}

\listofsongs

\end{document}