Closed szollbrecht closed 1 year ago
There shouldn’t be any problem with 2.22 (and even with 2.23 if using latest release of lyluatex
).
The produced .ly
is good.
The problem comes from the fact I didn’t ever succeed to have lualatex
on MiKTeX
find lilypond
correctly. Please try with the program
option set; if it doesn’t work, the only workaround I know for now (till I find time to find a fix for this problem) would be to use TeXLive.
Thanks for the quick reply!
You're right, it's just working fine with TeXLive.
Still I kept debugging a bit and found out that it works with miktex
when I remove line 809 (without setting the program
option btw):
if lib.tex_engine.dist == 'MiKTeX' then cmd = '"'..cmd..'"' end
Strangely enough, it only works in debug mode. When I remove debug=true
it gets stuck compiling (at least the last log entry says so).
So just guessing I commented out the if
condition in lines 791 and 797. I don't understand what you're doing there to input
, but it seems to help ;)
-- if self.debug then
local f = io.open(self.output..'.ly', 'w')
f:write(self.complete_ly_code)
f:close()
input = self.output..".ly 2>&1"
mode = 'r'
-- end
That keeps me with a warning I'm not sure if it can be a problem:
Module lyluatex Warning: gs couldn't be launched; there could be rounding error s. on input line 9
Let me know what you think.
The line you mention is what remains after one of my attempts to fix the problems with MiKTeX…
The warning about gs
isn’t such a problem, it just means that the width of your scores won’t be so exact as with gs
.
My main problem with MiKTeX is that it is used on Windows, while I work on Linux ; so, to debug it, I’d need to set a virtual machine, which is time consuming… So if you find a solution to this problem, don’t fear submitting a pull request. Otherwise, I still plan to look at this, but it isn’t on my priority list (as TeXLive is always a possible workaround).
I see, thanks. I will check again, too, when I find the time :)
I'll close this for now since we merged #300 If there's another or the same issue in a higher version of lyluatex, we can reopen or open a new issue.
Hi, I'm trying to set up lyluatex with miktex and lilypond 2.19.83 on windows 11 (I've also tried the current version 2.22.2 of lilypond, but downgraded to a version mentioned in the documentation).
So far I've overcome an issue where lilypond could not be started when installed in a directory including spaces. I removed it and re-installed it in a different location. The
program
option is not needed because I've added lilypond to thePATH
. The currfile package was missing, so I installed it.I have this little example in a
test.tex
:I run this command:
lualatex.exe --shell-escape test.tex
and see this in the logs:When I check the tmp-ly folder, the .ly file has been generated (looks good to me) 76a3e2f5cb3b8de09f224c7fb34a4449.txt
The corresponding log file unfortunately only says
The syntax for the file name, directory name, or volume label is incorrect.
I'm grateful for any help :)