Changes

Jump to navigation Jump to search
736 bytes added ,  21:09, 8 September 2008
recent changes (fonts, problems)
== Setup ==
* First you need a working, recent [http://www.lilypond.org LilyPond] installation (version 2.10+.x) plus dependencies like GhostScript.
* Include the lilypond module
<texcode>
* If you want, you can change the default settings using <cmd>setuplilypond</cmd>
* If you need lyrics with accented characters (e.g. umlauts), you '''must''' typeset in UTF-8 encoding (see [[Encodings_and_Regimes]]), because LilyPond doesn't understand anything else. And you need to use UTF-8 without BOM (byte order marker), because ConTeXt doesn't understand BOMs.
* The module should work works with LuaTeX, thanks to Mojca Miklavec.
=== options ===
| showempty || yes/no || no || drop empty staves?
|-
| seriffont || "name" || "Century Schoolbook LTex Gyre Schola" || serif font (e.g. for Lyrics and \markup; was Century Schoolbook L before)
|-
| sansfont || "name" || "LMSans10" || sans serif font (e.g. for chords)
|-
| monofont || "name" || "Bitstream Vera Sans MonoLMTypewriter10" || monospace font (normally not used)
|}
(The 3rd parameter is necessary, but can be anything.)
LilyPond's default text font is Century Schoolbook. You can use it in ConTeXt MkIV (OpenType fonts) like this: <texcode>\usetypescriptfile[type-otf] \starttypescript[wiki][songbook] \usetypescript [serif] [schoolbook] \definetypeface [songbook] [rm] [serif] [schola] [default] \definetypeface [songbook] [ss] [sans] [default][default] \definetypeface [songbook] [tt] [mono] [default][default]\stoptypescript \usetypescript [wiki] [songbook]\setupbodyfont[songbook, rm, 8.5pt]</texcode> For ConTeXt MkII use:
<texcode>
This section lists workarounds needed in some circumstances; we surely hope to move them to [[#Older_Workarounds|'''Older Workarounds''']] as soon as possible!
 
===Something (LilyPond, GhostScript etc.) isn't found==
 
Depending on your setup (path, installation directories, ...) you must call the lilypond app with the full path.
 
If <tt>pstopdf</tt> can't create PDFs (but LilyPond has made EPS files) it might be that you must set the environment variable <tt>GS_LIB</tt> for GhostScript.
=== LilyPond 2.11 ===
LilyPond 2.11 (and probably 2.12) changes the call syntax, thus the module for 2.10 doesn't work.
Look for the lilypond call in <tt>mt-lilypond.tex</tt> and replace "-b epsbeps" with "-dbackend=eps". Perhaps you must also call the lilypond app with the full path.
=== Typesetting fret diagrams ===
* tell LilyPond how much space is left on the first page
* check and probably work on proper multi-page music
* it's not possible to set variables in LilyPond
* lots of features

Navigation menu