gregorio-project / gregorio

The Gregorio Project
http://gregorio-project.github.io
Other
155 stars 43 forks source link

Wrapfig or similar solution for standalone translations #1583

Closed wfblatzheim closed 6 months ago

wfblatzheim commented 6 months ago

Hello,

I am fairly new (like, within the last week!) to learning both TeX and GregorioTeX, although I have lurked around the project for a long time and dabbled a bunch with gabc, etc.

I am looking to create a version of a score that is formatted with a translation in a box set next to the score, similar to how they appear in the 1957 Solesmes Mass & Vespers book. I played around with some configurations using the paracol package to some success, but was looking to have the score "wrap" around the translation rather than having the translation be a full column that extends down the page.

I did some research and thought that maybe wrapfig would be the answer - and behold, it kind of is? That is, the neumes and lyrics seem to respect the wrapfig box, but the staff lines (and some of the lower down neumes) do not...

I'm trying to include my TeX code below, but I've never submitted an issue on GitHub before and I apologize if it's not correct.

\documentclass[letterpaper]{report}

\usepackage{wrapfig}

\usepackage{fontspec}
\usepackage{libertine}

\usepackage[autocompile]{gregoriotex}

\begin{document}
%Hymn Translation Goes here
\begin{wrapfigure}{r}{0.3\textwidth}
\begin{sloppypar}
1. Born from the heart of the Father,
Before the beginning of the world,
Named Alpha and Omega,
He is the source and end,
Of all that is and was,
And of whatever will be afterwards.

2. He was clothed with the form of a frail body,
With members exposed to death,
Lest the people perish,
Whom, [born] from the root of our first parent,
A baneful law had plunged,
Into the depths of an abyss.

5. Let us ring out glory to the Father
With sweet-sounding voices;
We sing glory to Christ,
Born of the Virgin Mother,
And everlasting glory
To the splendid Paraclete. Amen.
\end{sloppypar}
\end{wrapfigure}
%Hymn Score GABC File Goes here
\gregorioscore{hy--corde_natus_ex_parentis--verses1,2,5--solesmes_1983.gabc}
\end{document}

Is there some sort of staffwidth or linewidth argument I can adjust to help get the staff lines to respect the wrapfig box? Screenshot 2023-12-31 005348

wfblatzheim commented 6 months ago

I apologize, I now see someone asked a very similar question on the Google Group back in 2018 and that it might just not be possible. I am sorry if I used this page incorrectly.