Hi Federico,
Thanks for the report.
Am 30.04.2018 um 09:59 schrieb Federico Bruni:
Hi folks
I'm trying to include a simple .ly file in the same directory of my
.tex file.
Why it's not working?
The problem is not the include (and so not the paths) but some parsing
error with the % in the included file.
lyluatex flattens the LilyPond file (in order to create a hash) by
following all included files (i.e. before they even reach LilyPond), and
for some reason it stumbles over the comment line (% is the escape
character in Lua).
I can't look into it right now (and presumably even this week), so
please add it to the Github issue tracker.
Urs
$ cat nostringnumber.ly
\layout {
\context {
% Do not display string numbers on Staff (I use TabStaff also)
\Staff
\omit StringNumber
}
}
$ cat rel.tex
\documentclass{book}
\usepackage[includepaths=./]{lyluatex}
\begin{document}
Trying to include a LilyPond file:
\begin{lilypond}[nofragment]
\include "nostringnumber.ly"
music = \relative {
\time 2/4
c4\3 e\2 |
c2 \bar "|." |
}
\score {
\new PianoStaff <<
\new Staff { \clef "treble_8" \music }
\new TabStaff { \clef "moderntab" \new TabVoice \music }
>>
}
\end{lilypond}
\end{document}
By the way, I guess that the ./ includepaths is not necessary, right?
Anyway, whatever I do (use it or not), here's the error I get:
$ lualatex --shell-escape rel.tex
This is LuaTeX, Version 1.0.4 (TeX Live 2017)
system commands enabled.
(./rel.tex
LaTeX2e <2017-04-15>
(using cache:
/home/fede/.local/texlive/2017/texmf-var/luatex-cache/generic)
luaotfload | main : initialization completed in 0.120 seconds
Babel <3.18> and hyphenation patterns for 1 language(s) loaded.
(/home/fede/.local/texlive/2017/texmf-dist/tex/latex/base/book.cls
Document Class: book 2014/09/29 v1.4h Standard LaTeX document class
(/home/fede/.local/texlive/2017/texmf-dist/tex/latex/base/bk10.clo(load
luc: /h
ome/fede/.local/texlive/2017/texmf-var/luatex-cache/generic/fonts/otl/lmroman10
-regular.luc)))
(/home/fede/.local/texlive/2017/texmf-dist/tex/latex/lyluatex/lyluatex.sty
(/home/fede/.local/texlive/2017/texmf-dist/tex/luatex/luatexbase/luatexbase.sty
(/home/fede/.local/texlive/2017/texmf-dist/tex/luatex/ctablestack/ctablestack.s
ty))
(/home/fede/.local/texlive/2017/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(/home/fede/.local/texlive/2017/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(/home/fede/.local/texlive/2017/texmf-dist/tex/generic/xkeyval/xkvutils.tex
(/home/fede/.local/texlive/2017/texmf-dist/tex/generic/xkeyval/keyval.tex))))
(/home/fede/.local/texlive/2017/texmf-dist/tex/latex/graphics/graphicx.sty
(/home/fede/.local/texlive/2017/texmf-dist/tex/latex/graphics/graphics.sty
(/home/fede/.local/texlive/2017/texmf-dist/tex/latex/graphics/trig.sty)
(/home/fede/.local/texlive/2017/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(/home/fede/.local/texlive/2017/texmf-dist/tex/latex/graphics-def/luatex.def)))
(/home/fede/.local/texlive/2017/texmf-dist/tex/latex/minibox/minibox.sty
(/home/fede/.local/texlive/2017/texmf-dist/tex/latex/l3kernel/expl3.sty
(/home/fede/.local/texlive/2017/texmf-dist/tex/latex/l3kernel/expl3-code.tex)
(/home/fede/.local/texlive/2017/texmf-dist/tex/latex/l3kernel/l3pdfmode.def)))
(/home/fede/.local/texlive/2017/texmf-dist/tex/latex/environ/environ.sty
(/home/fede/.local/texlive/2017/texmf-dist/tex/latex/trimspaces/trimspaces.sty)
)
(/home/fede/.local/texlive/2017/texmf-dist/tex/latex/currfile/currfile.sty
(/home/fede/.local/texlive/2017/texmf-dist/tex/latex/oberdiek/kvoptions.sty
(/home/fede/.local/texlive/2017/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)
(/home/fede/.local/texlive/2017/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
(/home/fede/.local/texlive/2017/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/home/fede/.local/texlive/2017/texmf-dist/tex/generic/oberdiek/etexcmds.sty
(/home/fede/.local/texlive/2017/texmf-dist/tex/generic/oberdiek/ifluatex.sty)))
)
(/home/fede/.local/texlive/2017/texmf-dist/tex/latex/filehook/filehook.sty))
(/home/fede/.local/texlive/2017/texmf-dist/tex/latex/pdfpages/pdfpages.sty
(/home/fede/.local/texlive/2017/texmf-dist/tex/latex/base/ifthen.sty)
(/home/fede/.local/texlive/2017/texmf-dist/tex/latex/tools/calc.sty)
(/home/fede/.local/texlive/2017/texmf-dist/tex/latex/eso-pic/eso-pic.sty
(/home/fede/.local/texlive/2017/texmf-dist/tex/generic/oberdiek/atbegshi.sty
(/home/fede/.local/texlive/2017/texmf-dist/tex/generic/oberdiek/ifpdf.sty))
(/home/fede/.local/texlive/2017/texmf-dist/tex/latex/xcolor/xcolor.sty
(/home/fede/.local/texlive/2017/texmf-dist/tex/latex/graphics-cfg/color.cfg)))
(/home/fede/.local/texlive/2017/texmf-dist/tex/latex/pdfpages/ppluatex.def))
(/home/fede/.local/texlive/2017/texmf-dist/tex/latex/metalogo/metalogo.sty
(/home/fede/.local/texlive/2017/texmf-dist/tex/generic/ifxetex/ifxetex.sty)))
(./rel.aux)
(/home/fede/.local/texlive/2017/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
)
(/home/fede/.local/texlive/2017/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
(/home/fede/.local/texlive/2017/texmf-dist/tex/latex/oberdiek/grfext.sty
(/home/fede/.local/texlive/2017/texmf-dist/tex/generic/oberdiek/kvdefinekeys.st
y))
(/home/fede/.local/texlive/2017/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty)
(/home/fede/.local/texlive/2017/texmf-dist/tex/latex/latexconfig/epstopdf-sys.c
fg))
(/home/fede/.local/texlive/2017/texmf-dist/tex/latex/oberdiek/pdflscape.sty
(/home/fede/.local/texlive/2017/texmf-dist/tex/latex/graphics/lscape.sty))(load
luc:
/home/fede/.local/texlive/2017/texmf-var/luatex-cache/generic/fonts/otl/l
msans10-regular.luc)(load luc:
/home/fede/.local/texlive/2017/texmf-var/luatex-
cache/generic/fonts/otl/lmmono10-regular.luc)...al/texlive/2017/texmf-dist/scri
pts/lyluatex/lyluatex.lua:841: invalid use of '%' in replacement string
stack traceback:
[C]: in function 'gsub'
...al/texlive/2017/texmf-dist/scripts/lyluatex/lyluatex.lua:841: in
function '
flatten_content'
...al/texlive/2017/texmf-dist/scripts/lyluatex/lyluatex.lua:1082: in
function
'output_filename'
...al/texlive/2017/texmf-dist/scripts/lyluatex/lyluatex.lua:531: in
function '
calc_properties'
...al/texlive/2017/texmf-dist/scripts/lyluatex/lyluatex.lua:1088: in
function
'process'
[\directlua]:1: in main chunk.
\ly@compilescore ...directlua {ly.score:process()}
l.22 \end{lilypond}
?
(load luc:
/home/fede/.local/texlive/2017/texmf-var/luatex-cache/generic/fonts/
otl/lmromanslant10-regular.luc)
[1{/home/fede/.local/texlive/2017/texmf-var/fon
ts/map/pdftex/updmap/pdftex.map}] (./rel.aux))
391 words of node memory still in use:
3 hlist, 1 vlist, 1 rule, 2 glue, 4 attribute, 50 glue_spec, 4
attribute_lis
t, 1 write nodes
avail lists: 2:50,3:5,4:6,5:25,6:38,7:36,8:1,9:31,11:3
</usr/share/texlive/texmf-dist/fonts/opentype/public/lm/lmroman10-regular.otf>
Output written on rel.pdf (1 page, 4414 bytes).
Transcript written on rel.log.
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user