]> git.lyx.org Git - lyx.git/commitdiff
lilypond.lyx : Document music fragment options.
authorJulien Rioux <jrioux@lyx.org>
Sat, 12 Jan 2013 08:53:52 +0000 (09:53 +0100)
committerJulien Rioux <jrioux@lyx.org>
Sat, 12 Jan 2013 08:58:33 +0000 (09:58 +0100)
lib/examples/lilypond.lyx

index 737af00001c04545f3e5f296662553bc3890a572..89da3bfdd6b047570e4b76e74f43836100ca30f9 100644 (file)
@@ -41,6 +41,7 @@ lilypond
 \pdf_colorlinks true
 \pdf_backref false
 \pdf_pdfusetitle false
+\pdf_quoted_options "linkcolor=blue,urlcolor=blue,pdfstartview=XYZ"
 \papersize default
 \use_geometry true
 \use_amsmath 1
@@ -86,6 +87,10 @@ LilyPond-book and LyX
 The LyX Team
 \end_layout
 
+\begin_layout Date
+Version 2.0.x
+\end_layout
+
 \begin_layout Abstract
 This document explains and demonstrates the inclusion of musical snippets
  in a LyX document, using the LilyPond syntax for music notation and the
@@ -221,6 +226,11 @@ status open
 
 \begin_layout Plain Layout
 
+[staffsize=28]
+\end_layout
+
+\begin_layout Plain Layout
+
 
 \backslash
 relative c'' {
@@ -252,6 +262,10 @@ The previous LyX inset produces the following LaTeX-lookalike code:
 begin{lilypond}
 \end_layout
 
+\begin_layout LyX-Code
+[staffsize=28]
+\end_layout
+
 \begin_layout LyX-Code
 
 \backslash
@@ -273,8 +287,27 @@ end{lilypond}
 \end_layout
 
 \begin_layout Standard
-This code is not, in fact, processed by LaTeX, but is preprocessed by LilyPond-b
-ook, which creates the graphics files and includes them in the LaTeX document
+What appear first inside square brackets are options to pass to LilyPond-book.
+ Here, we set the dimension of the staff to 28
+\begin_inset space \thinspace{}
+\end_inset
+
+pt.
+ Other options can be added by separating them by a comma, for example:
+\family typewriter
+[staffsize=28,verbatim]
+\family default
+.
+ A list of music fragment options is available in the LilyPond documentation.
+ This whole block can be omitted when the default settings are desired.
+\end_layout
+
+\begin_layout Standard
+What follows after the options block is the textual representation in LilyPond
+ syntax of a musical fragment.
+ This code is not, in fact, processed by LaTeX, but is preprocessed by LilyPond-
+book, which creates the graphics files and includes them in the LaTeX document
  by replacing the above with a 
 \family typewriter
 
@@ -304,7 +337,7 @@ status open
 
 \begin_layout Plain Layout
 
-
+[staffsize=12] 
 \backslash
 markup { 
 \backslash