The language is called texinfo; you can see its manual here: http://www.gnu.org/software/texinfo/manual/texinfo/
However, you don't need to read those docs. The most important thing to notice is that text is text. If you see a mistake in the text, you can fix it. If you want to change the order of something, you can cut-and-paste that stuff into a new location.
Note: Rule of thumb: follow the examples in the existing docs.
You can learn most of what you need to know from this; if you want
to do anything fancy, discuss it on lilypond-devel first.
|
Most of the manual operates at the
@node Foo
@subsubsection Foo
level. Sections are created with
@node Foo
@subsection Foo
\set
Staff.instrumentName = #"cello"
\consists "Spans_arpeggio_engraver"
Again, LilyPond does not strictly require this, but it is a useful standard to follow.
\override textscript #'padding = #3 c1^"hi"
Good:
\override textscript #'padding = #3
c1^"hi"
@lilypond[verbatim,quote,relative=2]
or
@lilypond[verbatim,quote,relative=1]
If you want to use \layout{} or define variables, use
@lilypond[verbatim,quote]
In rare cases, other options may be used (or omitted), but ask first.
@lilypondfile[quote,ragged-right,line-width=16\cm,staffsize=16]
{pitches-headword.ly}
@lilypondfile[verbatim,lilyquote,ragged-right,texidoc,doctitle]
{filename.ly}
excepted in Templates, where `doctitle' may be omitted.
not: \chordmode {c e g}
but instead: \chordmode { c e g }
\paper {
#(define dump-extents #t)
indent = 0\mm
line-width = 160\mm - 2.0 * 0.4\in
ragged-right = ##t
force-assignment = #""
line-width = #(- line-width (* mm 3.000000))
}
\layout {
}
You may not change any of these values. If you are making an example demonstrating special \paper{} values, contact the Documentation Editor.
The variable@tie{}@var{a} ...
@example
foo {
bar
}
@end example
should be replaced with
@example
foo {
bar
}
@end example
where `@example' starts the line (without leading spaces).
Beginning of logical unit
@example
...
@end example
continuation of logical unit
but instead do
Beginning of logical unit
@example
...
@end example
@noindent
continuation of logical unit
This makes it easier to avoid forgetting the `@noindent'. Only use @noindent if the material is discussing the same material; new material should simply begin without anything special on the line above it.
@itemize
@item
Foo
@item
Bar
Do not use @itemize @bullet.
@w{ ... }
e.g.
@w{"@version{}"}
. (ie finish the previous sentence/paragaph)
: (ie `in this example:')
, (ie `may add foo with the blah construct,')
The old "sentence runs directly into the example" method is not allowed any more.
This usage is rarer. Americans often just use a comma.