gregorio icon indicating copy to clipboard operation
gregorio copied to clipboard

Above-Lines-Text color "leaking" to staff breaks on small widths

Open lbssousa opened this issue 3 years ago • 5 comments

I'm typesetting a bilingual (latin-portuguese) set of chants from Graduale Simplex in a two-column A4-size document. I've setup my document to colorize the Above-Lines-Text with default gregoriocolor, as follows:

\grechangestyle{abovelinestext}{\color{gregoriocolor}\scshape\fontsize{9}{9}\selectfont}

I'm noticing that, depending on column width, the ALT color is leaking to the next staff line, as shown in the attached image:

image

I'm using TeXLive 2020, with GregorioTeX 5.2.1.

Is there something I could do to avoid this error?

UPDATE: It seems I can circumvent this error by forcing a staff break via GABC (z) code.

lbssousa avatar Oct 06 '20 14:10 lbssousa

Can you provide a complete MWE that recreates the error?

rpspringuel avatar Oct 07 '20 18:10 rpspringuel

It's not fully reproducible, but I'm able to reproduce this error with the following snippet:

% !TeX program = lualatex
\documentclass[a4paper]{article}

\usepackage[margin=13mm]{geometry}
\usepackage{ebgaramond}
\usepackage[autocompile]{gregoriotex}
\usepackage{paracol}

\grechangedim{baselineskip}{66pt plus 6pt minus 6pt}{scalable}
\grechangestyle{abovelinestext}{\color{gregoriocolor}\fontsize{9}{9}\selectfont}

\setlength{\columnseprule}{0.4pt}

\begin{document}

\section{Glória Patri}

\gresetinitiallines{0}

\subsection{Modo VII}

\begin{paracol}{2}
  \gabcsnippet{(c3)

  <i>Glór</i><e>ia</e>(hg) <i>ao</i>(hi) Pai(i) e(i) ao(i) Fi(i)lho(i) e(i) ao(i) Es(i)<b>pí</b>(kr1)ri(jr)to(j) <b>San</b>(ir1 jr)to.(j) *(:) <i>Co</i>(ig)<i>mo</i>(hi) e(i)ra(i) no(i) prin(i)cí(i)pio,(i) a(i)<b>go</b>(kr1)ra(jr) e(j) <b>sem</b>(ir1 jr)pre,(j) *(:) pe(i)los(i) sé(i)cu(i)los(i) dos(i)
  
  <eu>sé<alt>VII d</alt>(i)cu(i)<b>los</b>.(jr1 ir) A(i)<b>mém</b>!</eu>(hr1gi)
  
  (::)
  
  <eu>sé<alt>VII c</alt>(i)cu(i)<b>los</b>.(jr1 ir) A(i)<b>mém</b>!</eu>(hr1gh)
  
  (::)
  
  <eu>sé<alt>VII c 2</alt>(i)cu(i)<b>los</b>.(jr1 ir) A(i)<b>mém</b>!</eu>(hr1ih)
  
  (::)
  
  <eu>sé<alt>VII a</alt>(i)cu(i)<b>los</b>.(jr1 ir) A(i)<b>mém</b>!</eu>(hvr1GF)
  
  (::)}

  \switchcolumn%

  \gabcsnippet{(c3)

  <i>Glór</i><e>ia</e>(hg) <i>ao</i>(hi) Pai(i) e(i) ao(i) Fi(i)lho(i) e(i) ao(i) Es(i)<b>pí</b>(kr1)ri(jr)to(j) <b>San</b>(ir1 jr)to.(j) *(:) <i>Co</i>(ig)<i>mo</i>(hi) e(i)ra(i) no(i) prin(i)cí(i)pio,(i) a(i)<b>go</b>(kr1)ra(jr) e(j) <b>sem</b>(ir1 jr)pre,(j) *(:) pe(i)los(i) sé(i)cu(i)los(i) dos(i)
  
  <eu>sé<alt>VII d</alt>(i)cu(i)<b>los</b>.(jr1 ir) A(i)<b>mém</b>!</eu>(hr1gi)
  
  (::)
  
  <eu>sé<alt>VII c</alt>(i)cu(i)<b>los</b>.(jr1 ir) A(i)<b>mém</b>!</eu>(hr1gh)
  
  (::)
  
  <eu>sé<alt>VII c 2</alt>(i)cu(i)<b>los</b>.(jr1 ir) A(i)<b>mém</b>!</eu>(hr1ih)
  
  (::)
  
  <eu>sé<alt>VII a</alt>(i)cu(i)<b>los</b>.(jr1 ir) A(i)<b>mém</b>!</eu>(hvr1GF)
  
  (::)}
\end{paracol}

\end{document}

Result: image

lbssousa avatar Oct 19 '20 13:10 lbssousa

I can't reproduce the problem on my machine with that sample. Please run system-setup.command (or system-setup.bat if on Windows) and post the results so that I can try to duplicate your setup in a VM. Depending on your installation method, you may also be able to find these scripts in Gregorio's contrib folder already on your computer.

rpspringuel avatar Oct 28 '20 14:10 rpspringuel

This is the contents of my system-setup.log:

###	Gregorio Unix Setup Results
####	Created: qua 28 out 2020 21:48:00 -03
-----------------------------------------------------------------------------


###	OS Version
#27-Ubuntu SMP Wed Oct 21 22:29:16 UTC 2020


-----------------------------------------------------------------------------


###	LuaTeX Setup
####	Version

This is LuaTeX, Version 1.12.0 (TeX Live 2020)

Execute  'luatex --credits'  for credits and version details.

There is NO warranty. Redistribution of this software is covered by
the terms of the GNU General Public License, version 2 or (at your option)
any later version. For more information about these matters, see the file
named COPYING and the LuaTeX source.

LuaTeX is Copyright 2020 Taco Hoekwater and the LuaTeX Team.


####	Location

/usr/local/bin/luatex
/usr/bin/luatex
/bin/luatex


#### 	TEXMFLOCAL

/usr/local/texlive/texmf-local

#### TEXINPUTS.lualatex
.:{{}/home/laercio/.texlive2020/texmf-config,/home/laercio/.texlive2020/texmf-var,/home/laercio/texmf,!!/usr/local/texlive/texmf-local,!!/usr/local/texlive/2020/texmf-config,!!/usr/local/texlive/2020/texmf-var,!!/usr/local/texlive/2020/texmf-dist}/tex/{lualatex,latex,luatex,generic,}//

#### LUAINPUTS.lualatex
.:{{}/home/laercio/.texlive2020/texmf-config,/home/laercio/.texlive2020/texmf-var,/home/laercio/texmf,!!/usr/local/texlive/texmf-local,!!/usr/local/texlive/2020/texmf-config,!!/usr/local/texlive/2020/texmf-var,!!/usr/local/texlive/2020/texmf-dist}/scripts/{kpsewhich,unsetengine,}/{lua,}//:{{}/home/laercio/.texlive2020/texmf-config,/home/laercio/.texlive2020/texmf-var,/home/laercio/texmf,!!/usr/local/texlive/texmf-local,!!/usr/local/texlive/2020/texmf-config,!!/usr/local/texlive/2020/texmf-var,!!/usr/local/texlive/2020/texmf-dist}/tex/{lualatex,latex,luatex,generic,}//

#### shell_escape
p

#### Shell Escape Commands
bibtex,bibtex8,extractbb,gregorio,kpsewhich,makeindex,repstopdf,r-mpost,texosquery-jre8,

#### openout_any
p

#### openin_any
a


-----------------------------------------------------------------------------


###	Gregorio Setup
####	Locations and Versions

/usr/local/bin/gregorio
/usr/bin/gregorio
/bin/gregorio
Gregorio 5.2.1 (kpathsea version 6.3.2).
Copyright (C) 2006-2019 Gregorio Project authors (see CONTRIBUTORS.md)
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

/usr/local/bin/gregorio
/usr/bin/gregorio
/bin/gregorio
Gregorio 5.2.1 (kpathsea version 6.3.2).
Copyright (C) 2006-2019 Gregorio Project authors (see CONTRIBUTORS.md)
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

/usr/local/bin/gregorio
/usr/bin/gregorio
/bin/gregorio
Gregorio 5.2.1 (kpathsea version 6.3.2).
Copyright (C) 2006-2019 Gregorio Project authors (see CONTRIBUTORS.md)
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

####	GregorioTeX Locations

##### gregoriosyms.sty
/usr/local/texlive/2020/texmf-dist/tex/lualatex/gregoriotex/gregoriosyms.sty
5.2.1
##### gregoriotex-chars.tex
/usr/local/texlive/2020/texmf-dist/tex/luatex/gregoriotex/gregoriotex-chars.tex
5.2.1
##### gregoriotex-main.tex
/usr/local/texlive/2020/texmf-dist/tex/luatex/gregoriotex/gregoriotex-main.tex
5.2.1
##### gregoriotex-nabc.lua
/usr/local/texlive/2020/texmf-dist/tex/luatex/gregoriotex/gregoriotex-nabc.lua
5.2.1
##### gregoriotex-nabc.tex
/usr/local/texlive/2020/texmf-dist/tex/luatex/gregoriotex/gregoriotex-nabc.tex
5.2.1
##### gregoriotex-signs.lua
/usr/local/texlive/2020/texmf-dist/tex/luatex/gregoriotex/gregoriotex-signs.lua
5.2.1
##### gregoriotex-signs.tex
/usr/local/texlive/2020/texmf-dist/tex/luatex/gregoriotex/gregoriotex-signs.tex
5.2.1
##### gregoriotex-spaces.tex
/usr/local/texlive/2020/texmf-dist/tex/luatex/gregoriotex/gregoriotex-spaces.tex
5.2.1
##### gregoriotex-syllable.tex
/usr/local/texlive/2020/texmf-dist/tex/luatex/gregoriotex/gregoriotex-syllable.tex
5.2.1
##### gregoriotex-symbols.lua
/usr/local/texlive/2020/texmf-dist/tex/luatex/gregoriotex/gregoriotex-symbols.lua
5.2.1
##### gregoriotex-symbols.tex
/usr/local/texlive/2020/texmf-dist/tex/luatex/gregoriotex/gregoriotex-symbols.tex
5.2.1
##### gregoriotex-common.tex
/usr/local/texlive/2020/texmf-dist/tex/luatex/gregoriotex/gregoriotex-common.tex
5.2.1
##### gregoriotex.lua
/usr/local/texlive/2020/texmf-dist/tex/luatex/gregoriotex/gregoriotex.lua
5.2.1
##### gregoriotex.sty
/usr/local/texlive/2020/texmf-dist/tex/lualatex/gregoriotex/gregoriotex.sty
5.2.1
##### gregoriotex.tex
/usr/local/texlive/2020/texmf-dist/tex/luatex/gregoriotex/gregoriotex.tex
5.2.1
##### greciliae.ttf
/usr/local/texlive/2020/texmf-dist/fonts/truetype/public/gregoriotex/greciliae.ttf
Version 5.2.1 
##### greciliae-hollow.ttf
/usr/local/texlive/2020/texmf-dist/fonts/truetype/public/gregoriotex/greciliae-hollow.ttf
Version 5.2.1 
##### greciliae-hole.ttf
/usr/local/texlive/2020/texmf-dist/fonts/truetype/public/gregoriotex/greciliae-hole.ttf
Version 5.2.1 
##### greciliae-op.ttf
/usr/local/texlive/2020/texmf-dist/fonts/truetype/public/gregoriotex/greciliae-op.ttf
Version 5.2.1 
##### greciliae-op-hollow.ttf
/usr/local/texlive/2020/texmf-dist/fonts/truetype/public/gregoriotex/greciliae-op-hollow.ttf
Version 5.2.1 
##### greciliae-op-hole.ttf
/usr/local/texlive/2020/texmf-dist/fonts/truetype/public/gregoriotex/greciliae-op-hole.ttf
Version 5.2.1 
##### greextra.ttf
/usr/local/texlive/2020/texmf-dist/fonts/truetype/public/gregoriotex/greextra.ttf
Version 1.0 
##### gregorio.ttf
##### gregorio-hollow.ttf
##### gregorio-hole.ttf
##### gregorio-op.ttf
##### gregorio-op-hollow.ttf
##### gregorio-op-hole.ttf
##### granapadano.ttf
##### granapadano-hollow.ttf
##### granapadano-hole.ttf
##### granapadano-op.ttf
##### granapadano-op-hollow.ttf
##### granapadano-op-hole.ttf
##### gregall.ttf
/usr/local/texlive/2020/texmf-dist/fonts/truetype/public/gregoriotex/gregall.ttf
Version 0.1 
##### gregorio-vowels.dat
/usr/local/texlive/2020/texmf-dist/tex/luatex/gregoriotex/gregorio-vowels.dat
##### gsp-default.tex
/usr/local/texlive/2020/texmf-dist/tex/luatex/gregoriotex/gsp-default.tex
##### gregoriotex-ictus.tex
##### gresym.ttf
##### parmesan.ttf
##### parmesan-op.ttf
##### gregsmodern.ttf

###	LuaTeX Double Checks
#### kpsewhich --all -engine luatex -progname lualatex gregoriotex.sty
/usr/local/texlive/2020/texmf-dist/tex/lualatex/gregoriotex/gregoriotex.sty

#### kpsewhich --all -engine luatex gregoriotex.tex
/usr/local/texlive/2020/texmf-dist/tex/luatex/gregoriotex/gregoriotex.tex

lbssousa avatar Oct 29 '20 00:10 lbssousa

Okay, I've been able to replicate the error, but only by stripping back to the TeXLive 2020 release. Installations from the current head of the develop branch don't exhibit the error. Do you have the ability to install from the repository directly?

rpspringuel avatar Nov 18 '20 16:11 rpspringuel