GeneralPackage songs - center songtitle with two columns - possible?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Manuela
Posts: 8
Joined: Thu Dec 16, 2021 7:19 pm

Package songs - center songtitle with two columns - possible?

Post by Manuela »

I would like to have the songitle centered above the verses. Is this even possible, if yes, how?

The code does not compile, sorry, I have no clue why

Code: Select all

Code, edit and compile here:
% !TEX lualatex
\documentclass[10pt,ngerman]{article}
\usepackage[T1]{fontenc}
\usepackage[a4paper,margin=2cm,top=2.5cm,nomarginpar,nofoot,nohead,headheight=0cm,headsep=0cm,footskip=0cm,bottom=3cm]{geometry}
\usepackage{polyglossia} % zerstört oldstylenumbers
\setdefaultlanguage[spelling=new,babelshorthands=true]{german}
\usepackage[lyric,noshading,nomeasures,noindexes]{songs}
\setlength{\sbarheight}{0pt}
\setlength{\cbarwidth}{0pt}
\versesep=2ex
\songcolumns{2}
\renewcommand\lyricfont{\normalfont\large}
\renewcommand\stitlefont{\normalfont\bfseries\huge}
\renewcommand{\versejustify}{\justifyleft}
\settowidth{\versenumwidth}{\it\LARGE 10\ }
\renewcommand{\printversenum}[1]{\lyricfont\makebox[\versenumwidth][r]
{\it\LARGE#1\ }}
\nosongnumbers
\pagenumbering{gobble}
\begin{document}
\begin{center}
\hrule
\end{center}
\begin{songs}{}
\beginsong{Großer Gott, wir loben dich\brk \phantom{text}}[
,sr={\Large Ignaz Franz}
,li={}
,cr={}]
\beginverse
Großer Gott wir loben dich,
Herr wir preisen deine Stärke;
vor dir neigt die Erde sich
und bewundert deine Stärke.
Wie du warst vor aller Zeit,
so bleibst du in Ewigkeit.
\endverse
\beginverse
Alles, was dich preisen kann
Cherubim und Seraphinen,
stimmen dir ein Loblied an;
alle Engel, die dir dienen,
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Thank you for your help,
greetings,
--Manuela

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Package songs - center songtitle with two columns - possible?

Post by Stefan Kottwitz »

Hello Manuela,

you just need to compile with LuaLaTeX, choose this option in your LaTeX editor.

I set the "lualatex" option here in your code in the first line for the online compiler, click on "Run LaTeX here" to see that it works.

Stefan
LaTeX.org admin
Manuela
Posts: 8
Joined: Thu Dec 16, 2021 7:19 pm

Package songs - center songtitle with two columns - possible?

Post by Manuela »

Thank you Stefan. The code is compiling on my computer, but did not here in this forum. Now it is compiling here, too.

And I am hoping for a solution for my problem now :)
Thank you for your help,
greetings,
--Manuela
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Package songs - center songtitle with two columns - possible?

Post by Stefan Kottwitz »

Perhaps make a section for each song as a quick workaround, if centered double-column song titles are not supported:

Code: Select all

Code, edit and compile here:
% !TEX lualatex
\documentclass[10pt,ngerman]{article}
\usepackage[T1]{fontenc}
\usepackage[a4paper,margin=2cm,top=2.5cm,nomarginpar,nofoot,nohead,headheight=0cm,headsep=0cm,footskip=0cm,bottom=3cm]{geometry}
\usepackage{polyglossia} % zerstört oldstylenumbers
\setdefaultlanguage[spelling=new,babelshorthands=true]{german}
\usepackage[lyric,noshading,nomeasures,noindexes]{songs}
\setlength{\sbarheight}{0pt}
\setlength{\cbarwidth}{0pt}
\versesep=2ex
\songcolumns{2}
\renewcommand\lyricfont{\normalfont\large}
\renewcommand\stitlefont{\normalfont\bfseries\huge}
\renewcommand{\versejustify}{\justifyleft}
\settowidth{\versenumwidth}{\it\LARGE 10\ }
\renewcommand{\printversenum}[1]{\lyricfont\makebox[\versenumwidth][r]
{\it\LARGE#1\ }}
\nosongnumbers
\pagenumbering{gobble}
\begin{document}
\begin{center}
\hrule
\end{center}
\songsection{Großer Gott, wir loben dich\\\mdseries\itshape Ignaz Franz\\[\baselineskip]}
\begin{songs}{}
\beginsong{\vspace{-0.5\baselineskip}}[
,sr={}
,li={}
,cr={}]
\beginverse
Großer Gott wir loben dich,
Herr wir preisen deine Stärke;
vor dir neigt die Erde sich
und bewundert deine Stärke.
Wie du warst vor aller Zeit,
so bleibst du in Ewigkeit.
\endverse
\beginverse
Alles, was dich preisen kann
Cherubim und Seraphinen,
stimmen dir ein Loblied an;
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Stefan
LaTeX.org admin
Manuela
Posts: 8
Joined: Thu Dec 16, 2021 7:19 pm

Package songs - center songtitle with two columns - possible?

Post by Manuela »

Thank you, that works for me. I have only to figure out how to adapt the fonts, I want that it looks like the ordinary song titles.
Thank you for your help,
greetings,
--Manuela
BrianFloyd
Posts: 2
Joined: Thu Jun 06, 2024 9:43 am

Re: Package songs - center songtitle with two columns - possible?

Post by BrianFloyd »

I also tried and still same issue.
Manuela
Posts: 8
Joined: Thu Dec 16, 2021 7:19 pm

Re: Package songs - center songtitle with two columns - possible?

Post by Manuela »

It's been a while, I have figured out the solution, just add

Code: Select all

\pagepreludes\afterpreludeskip=2mm
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Thank you for your help,
greetings,
--Manuela
Post Reply