Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<eu> environment causing problem with index #1550

Open
smpklimach opened this issue Jul 18, 2021 · 6 comments
Open

<eu> environment causing problem with index #1550

smpklimach opened this issue Jul 18, 2021 · 6 comments

Comments

@smpklimach
Copy link

smpklimach commented Jul 18, 2021

We wanted to make an alphabetical index of all antiphones at the end of our liturgical book. But we stumbled upon the following problem:
The layout gets totally messed up, if there is any <eu> environment in the scores. It doesn't cause problems if the index is one-columned and the problem in the 2-columned version disappears as soon as we delete all <eu>-tags. But neither is an option.
Any idea how to fix this?

Example files:

beatiquipersecutionem.gabc:

name: beati qui persecutionem;
office-part: laudes;
occasion: commune apostolorum;
date: ;
transcriber: Kloster Helfta;
transcription-date: 2013;
style: modern;
annotation: {\textcolor{red}{Ant.}};
annotation: viij. T.;
commentary: Mt 5,10 ;

%%

\textcolor{red}{B}e(c4h)á(fg)ti,(g) \textcolor{red}{*}()
qui(f) per(h)se(g)cu(j)ti(i)ó(hjg)nem(g) pa(g)ti(g)ún(fe)tur(f) (,) prop(d)ter(e) iu(f)stí(gh)ti(h)am.(g)
(::) E(j) u(j) o(i) u(j) a(h) e.(g) (::)

Tex-file:
\documentclass[fontsize=13pt,twoside]{scrreprt}
\usepackage{graphicx}
\usepackage[paperwidth=155mm, paperheight=220mm]{geometry}
\usepackage{gregoriotex}
\usepackage{color}
\usepackage{parallel}
\usepackage[latin, german,francais]{babel}
\usepackage[utf8]{luainputenc}
\usepackage{fancyhdr}
\usepackage{verse}
\usepackage{imakeidx}

\makeindex[columns=2]

\begin{document}

\index{Beati qui persecutionem}
\index{Test Nr. 2}
\gregorioscore[a]{beatiquipersecutionem}
\index{Noch eins}

\printindex

\end{document}

@rpspringuel
Copy link
Contributor

I think your problem doesn't have anything to do with the <eu> tags, but rather with some of your other constructions that are less than idiomatic. Try the following:

gab file:

name: beati qui persecutionem;
office-part: laudes;
occasion: commune apostolorum;
date: ;
transcriber: Kloster Helfta;
transcription-date: 2013;
style: modern;
annotation: {\textcolor{red}{Ant.}};
annotation: viij. T.;
commentary: Mt 5,10 ;

%%

Be(c4h)á(fg)ti,(g) *()
qui(f) per(h)se(g)cu(j)ti(i)ó(hjg)nem(g) pa(g)ti(g)ún(fe)tur(f) (,) prop(d)ter(e) iu(f)stí(gh)ti(h)am.(g)
(::) <eu>E(j) u(j) o(i) u(j) a(h) e.</eu>(g) (::)

TeX file:

\documentclass[fontsize=13pt,twoside]{scrreprt}
\usepackage{graphicx}
\usepackage[paperwidth=155mm, paperheight=220mm]{geometry}
\usepackage{gregoriotex}
\usepackage{color}
\usepackage{parallel}
\usepackage[latin, german,francais]{babel}
\usepackage[utf8]{luainputenc}
\usepackage{fancyhdr}
\usepackage{verse}
\usepackage{imakeidx}

\makeindex[columns=2]

\let\GreStarold\GreStar
\def\GreStar{{\textcolor{red}\GreStarold}}
\grechangestyle{initial}
  {\begingroup\fontsize{40}{40}\selectfont\color{red}}%
  [\endgroup]%


\begin{document}

\index{Beati qui persecutionem}
\index{Test Nr. 2}
\gregorioscore[a]{beatiquipersecutionem}
\index{Noch eins}

\printindex

\end{document}

@smpklimach
Copy link
Author

Thank you for your answer and the hint about the far more elegant way to get initial and star coloured. But unfortunately it doesn't change the look of the index at all. Even with your new files - with eu tags the 2-columned index looks horrible, without the eu-environment the index seems to be fine.

@rpspringuel
Copy link
Contributor

I get the same results for the index regardless of the presence or absence of the <eu> tags using the files I provided. If you're getting something different, then I'm going to need more information about your setup.

@smpklimach
Copy link
Author

What kind of information do you need?
I use Gregorio 5.1.1 (kpathsea version 6.3.0) and TeX Live 2018. My OS is Solus, but on another computer with Ubuntu we had the same issue.

@rpspringuel
Copy link
Contributor

I recommend updating to TeX Live 2021 and Gregorio 6.0.

Sent with GitHawk

@smpklimach
Copy link
Author

This did indeed solve the problem with the index, but now I have the problem with the superscript numbers (#1537) on this computer as well. With the old version of TexLive and Gregorio the superscript numbers were shown, with the new versions I get error messages and the commentary is not printed out at all.
So now I can print my book either with superscript numbers or with a nice index...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants