Skip to main content

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.

Filter by
Sorted by
Tagged with
2 votes
1 answer
222 views

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. ...
Oбжорoв's user avatar
1 vote
0 answers
31 views

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{...
Bernhard Bodenstorfer's user avatar
0 votes
0 answers
153 views

'"lilypond"' is not recognized as an internal or external command, operable program or batch file

I am interested in using lyLuaTeX. I am used to Overleaf, but Overleaf seems incompatible with lyLuaTeX, so I have downloaded TeX Live and Texmaker. Page 5 of the lyLuaTeX documentation (https://ctan....
Noah J's user avatar
  • 515
0 votes
0 answers
118 views

Problems encountered in attempting to use lyLuaTeX

I am writing a document that will involve dozens of snippets of LilyPond. Seeking the simplest way of doing this, I have hit upon lilypond-Book and lyLuaTeX. Not knowing which is ultimately simpler, I ...
Noah J's user avatar
  • 515
1 vote
1 answer
119 views

Lilypond: superscript in lyrics

I would like to know how I can add a superscript to lyrics in Lilypond. Example: I know how to do markups, but that's not what I am looking for. It's about the 1 and the 2 in the lyrics. Thank you in ...
Brayanokles's user avatar
0 votes
0 answers
44 views

Specific lilyglyph gives me Undefined control sequence error in Latex

I've been using musical lilyglyphs in a large latex document (e.g. \crotchet, \quaver, etc.) without any problem, but when I try to use \semibreve or \wholeNote I get 2 errors in the same line: ...
MrT77's user avatar
  • 157
2 votes
1 answer
554 views

Why can't I use the lilypond environment?

Sorry if this will turn out to be noob-ish, but apparently I can't integrate Lilypond scores into my LaTeX document (well, neither ABC ones, but that's another question). I have this MWE: \...
Alessandro Bertulli's user avatar
1 vote
0 answers
724 views

I can't find the format file `luaLaTex.fmt'!

Working on macOS Monterey. Disclaimer, I'm no expert on LaTex and haven't used it in a while. Trying to compile a paper using luaLaTex. Has to compile this way to use lyluatex. Command I'm using: ...
Robert Rust's user avatar
0 votes
1 answer
82 views

How can I write a simple cadence with lilyglyphs?

I want to write a simple cadence with lilyglyphs with a Cadential Six-Four chord. How do i do it? Here is a picture of the needed result: \documentclass{article} \usepackage{fontspec} \usepackage{...
Friedrich Falkner's user avatar
0 votes
0 answers
164 views

How to insert gif-file or short video in lylualatex?

I am working on an essay about music playing. So I decided to use lylualatex. That way I can integrate lylipond examples into my text. Took some time, but works fine now. The files are processed by ...
Eef Weenink's user avatar
0 votes
0 answers
346 views

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 this: \documentclass[a4paper]{...
Alice's user avatar
  • 1
2 votes
3 answers
166 views

lilypondfile in macro, with filename as argument

I want to write a simple tunebook, with a different tune on each page. I'm writing the tunes with lilypond. In order to make things easier, I want to write a macro that manages the layout of each page ...
Tony's user avatar
  • 21
7 votes
2 answers
198 views

Single-line musical score with text to notate prosodic rhythm

How can I have a single line musical score only to notate the quantity of each note and pauses? I've looked into some packages, but most of them only type entire traditional 5 lines score; I also ...
Rhythmical Diphthong's user avatar
0 votes
1 answer
97 views

Two lilypond commands in LaTeX

With previous version of LaTeX (Slackware-14.2 + lilypond-2.18.2) I could add many lilypondfiles in one line. With lilypond-2.22.1 and texlive-2021.21048 is not working. I suspect lilypond-book is the ...
krg's user avatar
  • 11
0 votes
1 answer
80 views

package clash: fontenc package with lilypond environment

I'm working with lilypond (lyluatex package) within LaTeX to write scores. I'm using a wide variety of packages within my file (as you can see below and they're all used in the original document), but ...
Leah's user avatar
  • 1
3 votes
1 answer
218 views

Align musical sheet bar lines with table columns

This is kind of a very obscure question, but I'll try anyways. How do I typeset musical notes so that the bars separating them align with a table below? I've tried lilypond, and I've tried various ...
sollniss's user avatar
  • 155
2 votes
2 answers
1k views

How to use lyLuaTeX?

I am trying to use lyLuaTeX but it is not working. I've read the documentation but I don't understand how to get it to work. I am on Windows 10, using TeX Live (first comment). Here is what I am ...
Ilyankor's user avatar
  • 363
4 votes
1 answer
1k views

How to run lilypond-book in LaTeX?

Lilypond, as you might know, is a computer program and file format for music engraving. I've wanted to include music in LaTeX PDF documents using lilypond-book (A Lilypond executable file), but I don'...
Santhosh's user avatar
1 vote
0 answers
146 views

How does one install lilypond and denemo without all of latex base being auto installed Ubuntu linux

I'm trying to install denemo on an Ubuntu Linux computer without hosing my entire texlive system. Does anybody know how to accomplish it? The Ubuntu version is always oldy old, it points the sytem ...
A Feldman's user avatar
  • 3,955
0 votes
1 answer
194 views

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 :07/10/2019 \RequirePackage[log]{snapshot} \...
Aviroum's user avatar
  • 1,546
2 votes
2 answers
225 views

Laying out music and text

I'd like too create some charts like https://www.google.com/search?q=rudiments+chart&tbm=isch&source=iu&ictx=1 This is basically using inline simple musical percussion like staves and ...
user avatar
2 votes
2 answers
928 views

Integrating LaTeX with Lilypond

I'm struggling to get the workflow outlined in Integrating LaTeX and Lilypond to Embed Music in Text Documents to work, specifically the custom TexStudio (I'm using v. 2.12.16) build command "C:/...
Steven Jan's user avatar
5 votes
2 answers
4k views

Generate a musical note on Overleaf

How can I write music sheet on Overleaf? I am trying to generate a single "A1" note as shown below:
Rodrigo's user avatar
  • 567
2 votes
0 answers
493 views

Fontname in pdfmapline

I have an issue with ligatures when using lilypond-book and pdflatex. % \pdfmapline{-dummy LMRoman12-Regular} % Does not work in this case! \documentclass{scrartcl} \begin{document} \begin{...
Oliver Heck's user avatar
3 votes
2 answers
302 views

Included lilypond files being processed by lualatex can't contain % symbol comments

My MWE below shows two files working together to create a document containing music using the lyluatex package. Unfortunately, I've observed that if I add any comments to the contents anywhere in the ...
EngBIRD's user avatar
  • 3,995
3 votes
1 answer
141 views

Non-trivial nested environment expansions with lualatex dependent packages

In the following MWE I have an environment that needs lualatex to compile. In brief, I'm trying to create an environment that creates a very specific instance of another environment, i.e. with a ...
EngBIRD's user avatar
  • 3,995
1 vote
0 answers
368 views

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 ...
EngBIRD's user avatar
  • 3,995
1 vote
1 answer
159 views

\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 ...
K.G. Feuerherm's user avatar
1 vote
1 answer
468 views

Inserting LilyPond files into ShareLatex

I've created a couple LilyPond .ly files, with some music I want to insert into a Latex document I have on ShareLatex, but I don't know which packages to use etc. Does anyone know how I can get this ...
Peiffap's user avatar
  • 292
1 vote
1 answer
195 views

Place two LilyPond examples side by side in LaTeX [duplicate]

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} ....
Lotto's user avatar
  • 63
2 votes
0 answers
302 views

How to use lilypond macros in different blocks

Code: \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \begin{document} First variant \begin{lilypond} \version "2.17.27" \language "english" D = \relative d {d4 <f a d>} A = \...
user4035's user avatar
  • 5,119
4 votes
1 answer
521 views

Showing music flat glyph inline with text

Talking about music using lilypond-book and LaTeX. It's going great. Now I'm trying to use lilypond snippet simply to display the \flat glyph. I want to show you what \begin{lilypond} \paper { ...
MikeiLL's user avatar
  • 381
3 votes
1 answer
205 views

Using arara directives to automate lilypond-book and pdflatex

This problem is similar to the one here and it is based on the referenced post that I became aware of arara. What I'm trying to do is also automate the multi-step process of generating a pdf from a ...
MikeiLL's user avatar
  • 381
2 votes
1 answer
134 views

I'm sorry but the file 'test.lytex' doesn't exist

I'm following a wonderful walk-through here in tex.stackexchange, as well as having RTFM (it really is fine), but am missing something. Using OSX 10.10.5 - Yosemite. Latest version of TeXShop ...
MikeiLL's user avatar
  • 381
11 votes
1 answer
731 views

ebgaramond swashy Q, LaTeX vs. Lilypond

I am using LaTeX (pdflatex) and Lilypond together for a critical music edition, using the EB Garamond typeface for both. The two programs are giving me different glyphs for "Q": LaTeX provides a ...
musarithmia's user avatar
  • 12.6k
1 vote
1 answer
332 views

Retaining forward/inverse search when using Lilypond in Texstudio

When using the lilypond environment in LaTeX, you have to first run lilypond-book on yourdocument.lytex. This generates yourdocument.tex which you then run the rest of your build commands on (pdflatex,...
Lammey's user avatar
  • 237
3 votes
1 answer
757 views

What is the most straightforward way to include music in a TeX document?

I have TeXworks 5.4.1. I read Martin Thoma's tutorial and Lilypond seemed like the easiest option with the best support. I copied and pasted his example file. Surprise surprise, I'm getting the ! ...
Robert Soupe's user avatar
4 votes
1 answer
1k views

Compiling with lilypond-book

The lilypond environment requires that you compile with lilypond-book, which in my case is found in the directory D:\Program Files (x86)\LilyPond\usr\bin\lilypond-book.py. I've added this directory to ...
Lammey's user avatar
  • 237
3 votes
1 answer
1k views

How to make a lilypond snippet fully justified (according to surrounding text)?

My issue I have a lilypond snippet (i.e. some music staffs) embedded within a document containing text. My question: How to make the snippet justified, i.e. that its size matches the \textwidth? ...
ebosi's user avatar
  • 11.8k
6 votes
1 answer
2k views

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,...
ebosi's user avatar
  • 11.8k
5 votes
0 answers
197 views

Will arara be able to handle this non-linear compile sequence?

I have been reading and playing arara now since the summer and I LOVE IT!!!! Prior to arara I used batch and script files that were operating system specific. Thank you arara for removing this ...
EngBIRD's user avatar
  • 3,995
3 votes
2 answers
163 views

Russian characters are absent when I put lilypond commands inside LaTeX

Pure lilypond Here is the lilypond file file.ly: \version "2.17.27" \language "english" \relative{ \omit Staff.Clef \omit Staff.TimeSignature \time 2/4 c' _"Ч.1" ...
user4035's user avatar
  • 5,119
3 votes
1 answer
675 views

How to use Lilypond with Sublime

It would seem I'm forever a LaTeX novice: I cant get my head around the instructions on how to invoke lilypond-book. According to lilypond's documentation you have to use this: lilypond-book --pdf ...
Buschmann's user avatar
  • 953
4 votes
1 answer
240 views

How to input file with relative paths within

In most of my work, I use a specific .tex ("main".tex) file with a preamble and \begin- and \end{document}. In the document I use \input{...} to another .tex file, with no preamble. Let's say "main"....
simon's user avatar
  • 41
10 votes
1 answer
2k views

Stretching vertical space to evenly fit a part of the document within minimal number of pages

I typeset a book containing musical pieces using LaTeX and LilyPond (using lilypond-book). Each piece starts in a new page, and can be from less than a single page up to several pages long. I want ...
Júda Ronén's user avatar
1 vote
1 answer
1k views

Lyx Convertors for Lilypond to pdf

I want to include Lilypond snippets in my report, but I'm getting an error: An error occurred while running pdflatex "project_name.lytex" I believe I don't have the convertor set up correctly in ...
Tommy's user avatar
  • 11
6 votes
1 answer
293 views

Replicating Lilypond titles in LaTeX

I'm working on a huge project that automatically and without any human intervention generates music scores. Most of the time this is with Lilypond. But some of the scores use graphical notation and ...
bfootdav's user avatar
  • 1,457
1 vote
1 answer
463 views

How to use Lilypond's font in a LaTeX or PostScript file?

How can I use Lilypond's font in a LaTeX or PostScript file? I want to write chors using it, and I can't find the way on how to configure it. Obs.: in a PostScript file, in mean as PostScript ...
EuAndreh's user avatar
  • 111
3 votes
1 answer
188 views

\hide is not compiled by lilypond-book

I am creating a LaTeX document with some figures showing musical score that I created in LilyPond. \documentclass{scrbook} \begin{document} Random text \begin{lilypond} \relative c'{ c d e \...
Lukas D. Sauer's user avatar
7 votes
2 answers
2k views

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 ...
mike's user avatar
  • 71