Add foreword page and image placement commands

- Introductory page with quote, horizontal rule, and foreword text
- \fillerpage{path} for full-page centered filler images
- \songimage{path} for inline images within song pages
- \fullpageimage{path} for borderless full-page images
- Added graphicx and csquotes packages

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
shahondin1624
2026-04-02 10:54:21 +02:00
parent cae0c52b67
commit 5a63067b93
2 changed files with 68 additions and 0 deletions

View File

@@ -18,6 +18,8 @@
\RequirePackage{array}
\RequirePackage{colortbl}
\RequirePackage{rotating}
\RequirePackage{graphicx}
\RequirePackage{csquotes}
\RequirePackage[minimal]{leadsheets}
\ExplSyntaxOn
\cs_new:cpn {leadsheets-library-musicsymbols-loaded} {}
@@ -202,3 +204,39 @@
\writesongtoc
\vspace{4mm}%
}
% ==========================================================================
% Image placement
% ==========================================================================
% Full-page filler image (centered, scaled to fit, own page)
% Usage: \fillerpage{images/drawing.png}
\newcommand{\fillerpage}[1]{%
\clearpage
\thispagestyle{empty}%
\vspace*{\fill}%
\begin{center}%
\includegraphics[width=0.85\textwidth,height=0.85\textheight,keepaspectratio]{#1}%
\end{center}%
\vspace*{\fill}%
\clearpage
}
% Inline image within a page (e.g., at end of a song with remaining space)
% Usage: \songimage{images/landscape.png}
\newcommand{\songimage}[1]{%
\begin{center}%
\includegraphics[width=0.8\textwidth,keepaspectratio]{#1}%
\end{center}%
}
% Full-page image with no margins (bleeds to edges)
% Usage: \fullpageimage{images/cover.png}
\newcommand{\fullpageimage}[1]{%
\clearpage
\thispagestyle{empty}%
\newgeometry{margin=0pt}%
\noindent\includegraphics[width=\paperwidth,height=\paperheight]{#1}%
\restoregeometry
\clearpage
}