Changes

Jump to navigation Jump to search
539 bytes added ,  21:21, 8 October 2016
hint: automatical line width
If you have just one LilyPond part per component (e.g. songs in a songbook), you could use <tt>[name=\currentcomponent]</tt>.
 
== Automatical width adaption ==
 
If you want to set your note line width automatically to your current text width, try this:
 
-- this goes after "create temp folder"
io.savedata("\LILYTEMP/texsettings.ly", "\\paper { line-width = " ..
string.gsub(number.todimen(tex.dimen.textwidth),"pt","\\pt") .. " } \n")
 
and then adapt your snippets or preamble buffer:
<texcode>
\include "../mysettings.ly"
\include "texsettings.ly"
</texcode>
 
You must comment/delete the "line-width" setting in mysettings.ly, otherwise it doesn’t work.
== Example ==

Navigation menu