[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New to Lilypond - including score in LaTeX
From: |
karl |
Subject: |
Re: New to Lilypond - including score in LaTeX |
Date: |
Sat, 10 Oct 2015 15:02:34 +0200 (CEST) |
Светлана Лобанова:
> 09.10.2015, 03:40, "Felix Yeung" <address@hidden>:
> > I’m very new to Lilypond, currently typesetting a document with
> > plainsong notation (with gregorio)
I have heard of gregorio (http://gregorio-project.github.io/)
but never got to use it. I guess that by specializing on just gregorian
chant it can produce nice looking scores. Lilypond gregorian support is
less than perfect, the notes get to widely spaced (I have somewhat
similar experience with white mensural notes in lilypond).
Is there any experiences you would like to share about gregorio ?
> and with occasional modern
> > music. I am wondering if you there’s any way to incorporate
> > lilypond scores into my document?
If you are using tex/latex/..., then you usually use lilypond-book
for that, see:
http://www.lilypond.org/doc/v2.18/Documentation/usage/lilypond_002dbook
For OpenOffice and LibreOffice:
http://ooolilypond.sourceforge.net/
else you can use some wariant of:
http://www.lilypond.org/doc/v2.18/Documentation/usage/lilypond-output-in-other-programs#inserting-lilypond-output-into-other-programs
> I had some unwanted issues with lilypond-book and TeX (I don't
> remember which ones), so I've chosen "manual method", enhanced with
> .bat file (on Windows). I have a .bat file which compilles all my
> .ly files (plenty of lines like this "lilypond -dbackend=eps
> -dno-gs-load-fonts -dinclude-eps-fonts -dno-aux-files filename.ly").
> Then I include all of them as pdf images in .tex. The drawback is
> when you have multi-page score you will need to include them
> page-by-page.
I also had some issues with lilypond-book:
. all thoose lily-<number> files made no sense for me and they made
it more or less impossible to work with make
. it did not work reliably with make, maybe that's fixed by now
///
I currently uses a mix of the third method above and lilypond-book for
including scores into latex docs. I have
\include "lilypond-book-preamble.ly"
at top of file, and run it as
lilypond --ps -dbackend=eps <file>
lilypond-psfonts <file>.psfonts <file>.eps
(where lilypond-psfonts is an extract from an old version of
lilypond-book) and then I use
\input{II-systems.tex}
in the latex file, and finish off with
latex <tex_file>
dvips -h <psfonts_file> <dvi_file>
There migth be some better way to do it today though, I havn't
investigated that. For an example, see:
http://turkos.aspodata.se/git/musik/WAMozart/requiem/
Regards,
/Karl Hammar
-----------------------------------------------------------------------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57