>> I have been using the line >> >> #(ly:set-option 'embed-source-code #t) >> >> to embed the lilypond files I used in the PDF, but was wondering >> if there was a procedure I could call to embed some other file, >> such as a PDF of the source I used for the transcription? Sorry, >> looking through the docs I couldn't find anything on this. I know >> you could also do this with the finished pdf using Adobe Acrobat >> or something else, but would like to make this happen >> automatically. > > Since 2.23.11, you can do > > ``` > #(ly:note-extra-source-file "path/to/transcription-source.pdf") > ```
Reading the documentation of this function I would never imagine that it can be used to embed arbitrary files into a LilyPond PDF... I've filed https://gitlab.com/lilypond/lilypond/-/issues/6622 Werner