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

Extra return before closing bracket for \gabcsnippet stops compilation #1497

Closed
adunning opened this issue Sep 5, 2020 · 1 comment · Fixed by #1509
Closed

Extra return before closing bracket for \gabcsnippet stops compilation #1497

adunning opened this issue Sep 5, 2020 · 1 comment · Fixed by #1509
Assignees

Comments

@adunning
Copy link
Contributor

adunning commented Sep 5, 2020

An extra return character before the closing bracket for \gabcsnippet prevents Gregorio from compiling the section, giving a 'shell-escape mode may not be activated' error.

This minimal example triggers the problem for me under LuaHBTeX 1.12.0/TeX Live 2020:

\documentclass{article}

\usepackage{gregoriotex}

\begin{document}

\gabcsnippet{(c3) Mi(f)se(f)ré(gv)re.(fe) (::)

} % Remove the space before this line to fix the error

\end{document}

This is the error message:

Module gregoriotex Error: 
(gregoriotex)             Something went wrong when executing
(gregoriotex)                 gregorio -W -o "%s" -l "test.gsniplog" "test.gsni
ppet"
(gregoriotex)             shell-escape mode may not be activated. Try
(gregoriotex)             
(gregoriotex)             lualatex --shell-escape test.tex
(gregoriotex)             
(gregoriotex)             See the documentation of Gregorio or your TeX
(gregoriotex)             distribution to automatize it. on input line 9

stack traceback:
	[C]: in function 'error'
	...texlive/2020basic/texmf-dist/tex/latex/base/ltluatex.lua:109: in function <
...texlive/2020basic/texmf-dist/tex/latex/base/ltluatex.lua:108>
	(...tail calls...)
	...0basic/texmf-dist/tex/luatex/gregoriotex/gregoriotex.lua:939: in field 'dir
ect_gabc'
	[\directlua]:1: in main chunk.
\gabcsnippet ... \gre@allowdeprecated@asboolean )}
                                                  
l.9 }
@rpspringuel
Copy link
Contributor

The problem is that a \par finds its way into the snippet file.

@rpspringuel rpspringuel self-assigned this Feb 2, 2021
@rpspringuel rpspringuel mentioned this issue Feb 2, 2021
@rpspringuel rpspringuel linked a pull request Feb 4, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants