Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
0answers
33 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{...
2
votes
1answer
57 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 ...
3
votes
1answer
56 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 ...
0
votes
0answers
94 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 ...
1
vote
1answer
64 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 ...
0
votes
0answers
203 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 ...
1
vote
1answer
73 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} ....
1
vote
0answers
70 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 = \...
4
votes
1answer
223 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 { ...
3
votes
1answer
111 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 ...
2
votes
1answer
95 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 ...
11
votes
1answer
396 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 ...
1
vote
1answer
247 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,...
3
votes
0answers
401 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 ! ...
3
votes
1answer
421 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 ...
3
votes
1answer
367 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? ...
3
votes
1answer
1k 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,...
5
votes
0answers
142 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 ...
3
votes
2answers
109 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" c | c cs | } I compile it ...
3
votes
1answer
383 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 ...
4
votes
1answer
149 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"....
9
votes
1answer
1k 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 ...
0
votes
1answer
522 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 ...
6
votes
1answer
185 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 ...
1
vote
1answer
277 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 ...
3
votes
1answer
145 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 \...
5
votes
1answer
1k 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 ...
5
votes
1answer
952 views

Lilypond generated with MuseScore does not fit the width of the page in XeTeX doc

I am using MuseScore 1.3 on Ubuntu 14.04 to write my scores. Then I save them as LilyPond files, and include them in my tex document using \lilypondfile, like this: \documentclass[a4paper]{article} \...
3
votes
1answer
157 views

lilypond environment inside a table

While making a song book I came to a point in which I wanted to insert lilypond code inside a table (tried also a box); this was due to some placing notes around texts and similarly things. But this ...
1
vote
2answers
272 views

Lilypond-book with Xelatex fails to detect textwidth

I apologize if this sounds similar to other questions. Apparently I cannot find a solution in other posts, maybe some packages I use are conflicting (fontspec?). Even running lilypond-book with the ...
13
votes
2answers
2k views

Use same font in Lilypond lyrics as in surrounding LaTeX document

I use LaTeX and lilypond-book to create a hymn sheet. I increased the font size with KOMA script to increase the readability. Now the font sizes in the LaTeX document does not match the embedded ...
4
votes
0answers
666 views

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 ...
28
votes
1answer
551 views

Variable page break penalty for odd/even pages?

I am working on a document that has a large number of external Lilypond files included. These render quite well and (while a bit of a pain to use) lilypond-book is smart enough to render the music ...
4
votes
1answer
635 views

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 ...
3
votes
1answer
427 views

TeXworks and textedit:// links [closed]

I use TeXworks for typesetting LilyPond music. The syntax is very similar, and the idea as well (text file -> PDF), so it's very convenient. However, LilyPond doesn't (obviously) use syncTeX for ...
41
votes
3answers
4k views

MusiXTeX vs LilyPond

MusiXTeX and GNU LilyPond both appear to be based around and its syntax. Is there a difference? What makes one better than the other?
15
votes
1answer
263 views

fontspec ruins Lilypond's note spacing

I use lilypond-book to include music examples in my TeX document, but it seems that fontspec breaks the horizontal spacing between the notes: without fontspec with fontspec This MWE shows the error ...
6
votes
1answer
348 views

Getting lilyglyphs working in LuaTeX

The package lilyglyphs provides a set of macros for incorporating Lilypond fonts easily into XeLaTeX files. That package is available here. I am using TeXLive 2013. With the following MWE it works as ...
11
votes
3answers
1k views

How to use lilypond-book with custom fonts?

I am trying to create a LaTeX (more precisely, XeLaTeX) document that contains lilypond snippets. I am using lilypond-book to create a .tex file. Within my (LaTeX) document, I use a (custom) TTF font....
5
votes
2answers
438 views

Force Poem Title and graphics on the same page

I've been using \needspace{4\baselineskip} to keep Poem Titles with a graphic produced by lilypond-book (music typesetting engine) together. In a 184p. document with 79 different Poem Titles followed ...
7
votes
2answers
1k views

How to typeset music dynamics within normal text

Although it should be possible to create a single musical dynamic symbol (like ff for fortissimo or sfz for sforzato) by creating an in-line lilypond-book fragment, hiding the staff etc. and somehow ...
10
votes
1answer
2k views

How to run LaTeX and lilypond-book in one command?

I was wondering if there was any command which would let me create a PDF from a LyTeX source in one step. Currently, I am first executing lilypond-book: lilypond-book --latex-program=pdflatex --pdf -...
4
votes
1answer
541 views

lualatex and lilypond/music notation

Is there any easy way to embed musical notation into lualatex projects without too much hassle? (hopefully complete transparency) I was thinking something like lilypond without having to do multiple ...
48
votes
2answers
10k views

Set music in LaTeX with ABC or LilyPond?

I’ll give a tutorial, “LaTeX for musicians”, in the next year and certainly I want the to show how to include music in their texts. I’m a musician myself but I never used LaTeX to typeset music. I ...