Skip to content

Commit

Permalink
line-width option for ly environment
Browse files Browse the repository at this point in the history
  • Loading branch information
jperon committed Jan 15, 2018
1 parent 33eca91 commit a381f6b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lyluatex.sty
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,14 @@ dofile(kpse.find_file("lyluatex.lua"))}
\directlua{ly_define_program("\luatexluaescapestring{\lyluatex@program}")}%
}

\newkeyenvironment{ly}[staffsize=\staffsize,program=\lyluatex@program][other-options]{%
\newkeyenvironment{ly}[%
staffsize=\staffsize%
,line-width=\lilywidth%
,program=\lyluatex@program%
][other-options]{%
\directlua{ly_define_program("\luatexluaescapestring{\commandkey{program}}")}%
\def\localstaffsize{\commandkey{staffsize}}%
\def\localwidth{\commandkey{line-width}}%
\compilerly%
}{%
\endcompilerly%
Expand Down

0 comments on commit a381f6b

Please sign in to comment.