Debian Codegraph @

texmf-dist/tex/latex/lwarp/lwarp-lyluatex.sty

raw
1 %%
2 %% This is file `lwarp-lyluatex.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lwarp.dtx (with options: `lyluatex')
8 %% This is a generated file.
9 %% Copyright 2016-2026 Brian Dunn
10 %%
11 %% This work may be distributed and/or modified under the
12 %% conditions of the LaTeX Project Public License, either version 1.3
13 %% of this license or (at your option) any later version.
14 %% The latest version of this license is in
15 %% http://www.latex-project.org/lppl.txt
16 %% and version 1.3 or later is part of all distributions of LaTeX
17 %% version 2005/12/01 or later.
18 \LWR@origRequirePackage{luacode}
19
20 \LWR@ProvidesPackagePass{lyluatex}[2023/04/18]
21 \newcommand*{\LyluatexImageAltText}{-lilypond-~\PackageDiagramAltText}
22 \VerifyCommand[lwarp][lyluatex]{\ly@compilescore}
23 {31A1EF1F24F22143AFD302A7C6AD29E6}
24
25 \renewcommand*{\ly@compilescore}[1]{%
26 \begingroup%
27 \LWR@maybe@orignewpage%
28 \LWR@origloadgeometry{LWR@usergeometry}%
29 \LWR@print@normalsize%
30 \renewcommand{\includegraphics}[2][]{%
31 \InlineClass{lyluatex}{%
32 \begin{lateximage}[\LyluatexImageAltText]?%
33 \LWR@addbaselinemarker%
34 \LWR@origincludegraphics{##2}%
35 \end{lateximage}%
36 }%
37 }%
38 \ly@setunits%
39 \setluaoption{ly}{currfiledir}{\currfiledir}
40 \setluaoption{ly}{twoside}{\ly@istwosided}
41 \directlua{
42 #1
43 ly.newpage_if_fullpage()
44 }%
45 \ly@resetunits%
46 \ly@currentfonts%
47 \directlua{
48 if (ly.score.insert == 'fullpage') then
49 tex.print{[[\string\begin{BlockClass}{lyluatex}]]}
50 end
51 }%
52 \directlua{ly.score:process()}%
53 \directlua{
54 if (ly.score.insert == 'fullpage') then
55 tex.print{[[\string\end{BlockClass}]]}
56 end
57 }%
58 \LWR@maybe@orignewpage%
59 \LWR@origrestoregeometry%
60 \endgroup%
61 }
62 \VerifyCommand[lwarp][lyluatex]{\endly@bufferenv}
63 {9B3BA3FC990E03634B57041666E0048D}
64
65 \xpatchcmd{\endly@bufferenv}
66 {\hspace{0pt}\\}
67 {}
68 {}
69 {\LWR@patcherror{lyluatex}{endly@bufferenv}}
70
71 \endinput
72 %%
73 %% End of file `lwarp-lyluatex.sty'.