Changes

Jump to navigation Jump to search
340 bytes added ,  13:24, 27 May 2009
Updated for t-lilypond as of 2009-05-27
* If you want, you can change the default settings using <tt>\setuplilypond</tt>
* 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 works Versions from May 2009 on work with LuaTeX''only.''
=== options ===
|-
| monofont || "name" || "LMTypewriter10" || monospace font (normally not used)
|-
| tmpdir || "name" || "./lilytemp" || directory for temporary files (.tmp, .md5, .eps); gets created if not existant
|-
| imgdir || "name" || "./lilypdfs" || directory for LilyPond PDFs; gets created if not existant
|}
(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>
\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>
\starttypescript[wiki][songbook]
\usetypescript [serif] [schoolbook] [\defaultencoding]
\definetypeface [songbook] [rm] [serif] [schoolbook] [default] [encoding=\defaultencoding]
\definetypeface [songbook] [ss] [sans] [default][default] [encoding=ec]
\definetypeface [songbook] [tt] [mono] [default][default] [encoding=ec]
\stoptypescript
'''Beware: These relate to the old version of the module and older versions of LilyPond (earlier than 2.7)! Nowadays, LilyPond and epstopdf get called via texmfstart, that works without patching!'''
 
=== Fonts with ConTeXt MkII ===
 
For the latest versions of the module work with ConTeXt MkIV (LuaTeX) exclusively, we moved this to "Older":
 
<texcode>
\starttypescript[wiki][songbook]
\usetypescript [serif] [schoolbook] [\defaultencoding]
\definetypeface [songbook] [rm] [serif] [schoolbook] [default] [encoding=\defaultencoding]
\definetypeface [songbook] [ss] [sans] [default][default] [encoding=ec]
\definetypeface [songbook] [tt] [mono] [default][default] [encoding=ec]
\stoptypescript
 
\usetypescript [wiki] [songbook]
\setupbodyfont[songbook, rm, 8.5pt]
</texcode>
=== LilyPond is not found ===

Navigation menu