Questions tagged [lilypond]

{lilypond} is for questions addressing issues related to the LilyPond software in connection with TeX and friends. Use it for questions concerning the lilypond-book program or other ways for making LilyPond and TeX to interact with each other.

LilyPond is a music engraving program, devoted to producing the highest-quality sheet music possible. It brings the aesthetics of traditionally engraved music to computer printouts. LilyPond is free software and part of the GNU Project. Questions about the lilypond-book program, which incorporates LilyPond and (Xe)LaTeX fall under this tag as well as other questions about interactions between LilyPond and TeX programs.

Related to musicology the author mentioned in this question favored LilyPond in 2020 wrt overall workflow, to include e.g. functional analysis: Are there similar documents in English about "How to integrate music examples with open source tools in scientific documents"?

67 questions
7
votes
2 answers

lilypond LaTeX integration

I use LaTex comfortably and lilypond but am working on a project that requires music excerpts in latex and I'm having a hard time integrating latex and lilypond. I am able to produce a pdf file from either but the command prompt for lilypond won't…
mike
  • 71
6
votes
1 answer

How to easily include .ly files in a .tex document?

The context I am generating an hymn booklet (containing mostly text), and I want to easily insert snippets of music scores based on .ly files I already have. I have two kind of files: my .tex files, that should be compilable without lilypond code…
ebosi
  • 11,692
5
votes
1 answer

Lilypond-book seems to skip included files

I am experimenting with using Lilypond from windows. It seems lilypond-book skips sub-files. I created a minimum working/not-working example in main.lytex, which I'm processing with a CMD-file (see below). The first two versions…
hardmooth
  • 297
4
votes
1 answer

Lilypond: How to control the paper size to create images

My question concerns the creation of images using lilypond. Until know I've created some music sheets and lilypond has been really great. However I have a website and I would like to post some examples to illustrate what I'm saying. The images…
Fnor
  • 41
2
votes
1 answer

Incorporating Lilypond files in (La)TeX

I am trying to incorporate Lilypond files into LaTeX. I use MacOS Sonoma 14.1.1. TexShop (5.2.2) and write my Lilypond files in Frescobaldi 3.3.0, where they compile into pdf files without a problem. This question has been asked before, I am…
1
vote
0 answers

How can lilypond-book accept TeX input files with absolute path?

I have a minimal non-working example in my local folder /private/tmp/LyTeX/. My file source.lytex there contains \documentclass{article} \begin{document} \input{/private/tmp/LyTeX/common.tex} \begin{lilypond} \relative c { c d e…
1
vote
0 answers

lyluatex not all lilypond code can be sourced in separate

I'm sure this is such a limited and simplistic MWE that I may not be reporting perfectly the actual issue, but I'll give this a shot. I'm observing that the lilypond environment read by either lyluatex or lilypond-book is capable of importing…
EngBIRD
  • 3,985
1
vote
1 answer

\include-ed variables in lilypond-book environments don't expand

I'm typesetting some music exercises using lilypond within TeX. Plain code seems to work fine, but I have a lot of code which is reused so I've tried to set up variables. The variables seem to get picked up but not expanded. MWE: % !TEX encoding =…
1
vote
1 answer

Place two LilyPond examples side by side in LaTeX

I am trying to place two LilyPond musical examples side-by-side in a LaTeX document, with captions. How can I achieve that? This is the code I am using: \usepackage{float} ... \begin{document} ... \begin{minipage} \begin{example} …
Lotto
  • 63
0
votes
0 answers

Using SMuFL-compliant music fonts with lilypond-book in 2022

Lilypond is a program for typesetting sheet music, which can be integrated to LaTeX through lilypond-book. The source a music document combining the two looks like…
Alice
  • 1
0
votes
1 answer

empty pdf file with lyluatex

I have tested lyluatex to produce some parts of music. But I get an empty pdf file. Any advice ? Config system : windows 8.1 64 bits MiKTeX2.9. last update…
Aviroum
  • 1,504