@menu
* File structure (introduction)::
* Multiple scores in a book::
+* Extracting fragments of notation::
* File structure::
* A single music expression::
* Including LilyPond files::
@}
@end example
+@node Extracting fragments of notation
+@subsection Extracting fragments of notation
+
+It is possible to quote small fragments of a large score directly from
+the output. This can be compared to clipping a piece of a paper score
+with scissors.
+
+This is done by definining the measures that need to be cut out
+separately. For example, including the following definition
+
+
+@verbatim
+\layout {
+ clip-regions
+ = #(list
+ (cons
+ (make-rhythmic-location 5 1 2)
+ (make-rhythmic-location 7 3 4)))
+}
+@end verbatim
+
+@noindent
+will extract a fragment starting halfway the fifth measure, ending in
+the seventh measure. The meaning of @code{5 1 2} is: after a 1/2 note
+in measure 5, and @code{7 3 4} after 3 quarter notes in measure 7.
+
+More clip regions can be defined by adding more pairs of
+rhythmic-locations to the list.
+
+In order to use this feature, LilyPond must be invoked with
+@code{-dclip-systems}. The clips are output as EPS files, and are
+converted to PDF and PNG if these formats are switched on as well.
+
+For more information on output formats, see @ref{Invoking lilypond}.
+
+@seealso
+
+Examples: @inputfileref{input/regression/,clip-systems.ly}
@node File structure
is the block containing the definitions for book-wide settings, like
composer, title, etc.
-@item
-An @code{\addquote} statement. See @ref{Quoting other voices}
-for more information.
-
@item
A @code{\score} block. This score will be collected with other
toplevel scores, and combined as a single @code{\book}.
@itemize @bullet
@item @code{\version}
@item @code{\include}
-@item @code{\renameinput}
+@item @code{\sourcefilename}
+@item @code{\sourcefileline}
+
@end itemize
popular modern editors have utf-8 support, for example, vim, Emacs,
jEdit, and GEdit do.
+@c Currently not working
+@ignore
Depending on the fonts installed, the following fragment shows Hebrew
and Cyrillic lyrics,
@cindex Hebrew
@cindex ASCII, non
-@lilypondfile[fontload]{utf-8.ly}
+@li lypondfile[fontload]{utf-8.ly}
The @TeX{} backend does not handle encoding specially at all. Strings
in the input are put in the output as-is. Extents of text items in the
suitable LaTeX wrappers to load appropriate La@TeX{} packages for
interpreting non-ASCII strings.
+@end ignore
+
To use a Unicode escape sequence, use
@example
printed parts are good PR for us, so please leave the tagline if you
can.}
+Headers may be completely removed by setting them to false.
+
+@example
+\header @{
+ tagline = ##f
+ composer = ##f
+@}
+@end example
+
@node Custom titles
@subsection Custom titles
@end verbatim
-@refbugs
-
-The @code{breakbefore=##t} header requires that there is a @code{piece}
-header as well. It may be used as a normal header, or left blank
-(@code{=""}) as in the example above, but it must be present.
-
-
@node MIDI output
@section MIDI output
@example
\score @{
@var{...music...}
- \midi @{ \tempo 4=72 @}
+ \midi @{ @}
@}
@end example
+FIXME
+
The tempo is specified using the @code{\tempo} command. In this
example the tempo of quarter notes is set to 72 beats per minute.
@example
\score @{
@var{...music...}
- \midi @{ \tempo 4=72 @}
+ \midi @{ @}
\layout @{ @}
@}
@end example
The MIDI block is analogous to the layout block, but it is somewhat
-simpler. The @code{\midi} block can contain
-@cindex MIDI block
-
-@itemize @bullet
- @item a @code{\tempo} definition, and
- @item context definitions.
-@end itemize
-
-A number followed by a period is interpreted as a real number, so
-for setting the tempo for dotted notes, an extra space should be
-inserted, for example
-
-@example
-\midi @{ \tempo 4 . = 120 @}
-@end example
+simpler. The @code{\midi} block is similar to @code{\layout}. It can contain
+context definitions.
@cindex context definition