]> git.lyx.org Git - lyx.git/blobdiff - lib/examples/lilypond.lyx
Show cursor correctly whn loading file
[lyx.git] / lib / examples / lilypond.lyx
index da145b54e94051a492b8ef80512011d2a2c240c3..b54d8a1e713720c2cfc58a303481a95a97cb6231 100644 (file)
@@ -1,7 +1,8 @@
-#LyX 2.2 created this file. For more info see http://www.lyx.org/
-\lyxformat 503
+#LyX 2.3 created this file. For more info see http://www.lyx.org/
+\lyxformat 544
 \begin_document
 \begin_header
+\save_transient_properties true
 \origin /systemlyxdir/examples/
 \textclass article
 \use_default_options true
@@ -23,6 +24,8 @@ lilypond
 \font_osf false
 \font_sf_scale 100 100
 \font_tt_scale 100 100
+\use_microtype false
+\use_dash_ligatures false
 \graphics default
 \default_output_format default
 \output_sync 0
@@ -47,14 +50,14 @@ lilypond
 \use_geometry true
 \use_package amsmath 1
 \use_package amssymb 1
-\use_package cancel 0
+\use_package cancel 1
 \use_package esint 1
 \use_package mathdots 1
-\use_package mathtools 0
+\use_package mathtools 1
 \use_package mhchem 1
-\use_package stackrel 0
-\use_package stmaryrd 0
-\use_package undertilde 0
+\use_package stackrel 1
+\use_package stmaryrd 1
+\use_package undertilde 1
 \cite_engine basic
 \cite_engine_type default
 \biblio_style plain
@@ -64,6 +67,7 @@ lilypond
 \suppress_date true
 \justification true
 \use_refstyle 0
+\use_minted 0
 \index Index
 \shortcut idx
 \color #008000
@@ -76,7 +80,10 @@ lilypond
 \tocdepth 3
 \paragraph_separation indent
 \paragraph_indentation default
-\quotes_language english
+\is_math_indent 0
+\math_numbering_side default
+\quotes_style english
+\dynamic_quotes 0
 \papercolumns 1
 \papersides 1
 \paperpagestyle default
@@ -90,23 +97,20 @@ lilypond
 \begin_body
 
 \begin_layout Title
-LilyPond-book and \SpecialCharNoPassThru LyX
+LilyPond-book and \SpecialChar LyX
+
 \end_layout
 
 \begin_layout Author
-The \SpecialCharNoPassThru LyX
+The \SpecialChar LyX
  Team
 \end_layout
 
-\begin_layout Date
-Version 2.1.x
-\end_layout
-
 \begin_layout Abstract
 This document explains and demonstrates the inclusion of musical snippets
- in a \SpecialCharNoPassThru LyX
- document, using the LilyPond syntax for music notation and the
- LilyPond-book utility for processing.
+ in a \SpecialChar LyX
+ document, using the LilyPond syntax for music notation and the LilyPond-b
+ook utility for processing.
 \end_layout
 
 \begin_layout Section
@@ -125,20 +129,21 @@ While LilyPond itself supports the display of title, author information,
  footnotes, endnotes, etc., its primary focus is on music typesetting.
  For text typesetting, other programs are generally better suited.
  LilyPond-book is a utility provided by the LilyPond project that helps
- incorporate musical scores using the LilyPond notation into \SpecialCharNoPassThru LaTeX
+ incorporate musical scores using the LilyPond notation into \SpecialChar LaTeX
  documents,
  among other formats.
 \end_layout
 
 \begin_layout Standard
-This document describes the use of the LilyPond music notation within \SpecialCharNoPassThru LyX
- documents that use a \SpecialCharNoPassThru LaTeX
--based layout, thus combining the beauty and
- quality of the typesetting achieved by both \SpecialCharNoPassThru LaTeX
+This document describes the use of the LilyPond music notation within \SpecialChar LyX
+ documents
+ that use a \SpecialChar LaTeX
+-based layout, thus combining the beauty and quality of the
+ typesetting achieved by both \SpecialChar LaTeX
  and LilyPond.
  While a basic understanding of the LilyPond syntax for music notation is
- in order, knowledge of \SpecialCharNoPassThru LaTeX
- is not necessary when using \SpecialCharNoPassThru LyX
+ in order, knowledge of \SpecialChar LaTeX
+ is not necessary when using \SpecialChar LyX
 .
 \end_layout
 
@@ -151,7 +156,7 @@ reference "sec:Using-LilyPond-code"
 \end_inset
 
  explains the requirements, usage instructions, and shortcomings of LilyPond
- music notation within \SpecialCharNoPassThru LyX
+ music notation within \SpecialChar LyX
 .
  Section 
 \begin_inset CommandInset ref
@@ -164,7 +169,8 @@ reference "sec:LilyPond-examples"
 \end_layout
 
 \begin_layout Section
-Using LilyPond code within \SpecialCharNoPassThru LyX
+Using LilyPond code within \SpecialChar LyX
+
 \begin_inset CommandInset label
 LatexCommand label
 name "sec:Using-LilyPond-code"
@@ -175,24 +181,24 @@ name "sec:Using-LilyPond-code"
 \end_layout
 
 \begin_layout Standard
-Support for LilyPond music notation (LilyPond code) within \SpecialCharNoPassThru LyX
- is enabled
by adding the LilyPond module to your document.
+Support for LilyPond music notation (LilyPond code) within \SpecialChar LyX
+ is enabled by
+ adding the LilyPond module to your document.
  This is done from the menu 
 \family sans
 Document\SpecialChar menuseparator
 Settings
 \family default
 , then selecting LilyPond in the list of modules.
- You can use any \SpecialCharNoPassThru LaTeX
--based \SpecialCharNoPassThru LyX
- layout and use the regular preview and
- export mechanism; \SpecialCharNoPassThru LyX
- will take care of processing the mixed \SpecialCharNoPassThru LaTeX
-/LilyPond
code through LilyPond-book for you.
+ You can use any \SpecialChar LaTeX
+-based \SpecialChar LyX
+ layout and use the regular preview and export mechanism
+; \SpecialChar LyX
+ will take care of processing the mixed \SpecialChar LaTeX
+/LilyPond code through LilyPond-book
+ for you.
  LilyPond-book can also handle DocBook and HTML documents, but the integration
- of these document types with LilyPond-book and \SpecialCharNoPassThru LyX
+ of these document types with LilyPond-book and \SpecialChar LyX
  is missing at the moment.
 \end_layout
 
@@ -206,20 +212,18 @@ LilyPond-book version 2.13 or newer.
 status collapsed
 
 \begin_layout Plain Layout
-LilyPond-book supports \SpecialCharNoPassThru LaTeX
+LilyPond-book supports \SpecialChar LaTeX
  output since version 2.1.
- However, some features used by \SpecialCharNoPassThru LyX
+ However, some features used by \SpecialChar LyX
  are available only in recent versions:
- PDF\SpecialCharNoPassThru LaTeX
+ PDF\SpecialChar LaTeX
  support (version 2.9), the 
 \family typewriter
-\twohyphens
-lily-output-dir
+--lily-output-dir
 \family default
  flag (version 2.11) and especially the 
 \family typewriter
-\twohyphens
-safe
+--safe
 \family default
  flag (version 2.13).
 \end_layout
@@ -259,6 +263,7 @@ status open
 status open
 
 \begin_layout Plain Layout
+
 staffsize=28
 \end_layout
 
@@ -291,8 +296,8 @@ relative c'' {
 
 \begin_layout Standard
 \noindent
-The previous \SpecialCharNoPassThru LyX
- inset produces the following \SpecialCharNoPassThru LaTeX
+The previous \SpecialChar LyX
+ inset produces the following \SpecialChar LaTeX
 -lookalike code:
 \end_layout
 
@@ -328,7 +333,7 @@ end{lilypond}
 
 \begin_layout Standard
 What appear first inside square brackets are options to pass to LilyPond-book.
- This is inserted in \SpecialCharNoPassThru LyX
+ This is inserted in \SpecialChar LyX
  from the 
 \family sans
 Insert
@@ -352,11 +357,11 @@ pt.
 \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 \SpecialCharNoPassThru LaTeX
-, but is preprocessed by LilyPond-
-book, which creates the graphics files and includes them in the \SpecialCharNoPassThru LaTeX
- document
by replacing the above with a 
+ This code is not, in fact, processed by \SpecialChar LaTeX
+, but is preprocessed by LilyPond-book,
+ which creates the graphics files and includes them in the \SpecialChar LaTeX
+ document by
+ replacing the above with a 
 \family typewriter
 
 \backslash
@@ -369,19 +374,20 @@ includegraphics{\SpecialChar ldots
 \begin_layout Standard
 Thus, the conversion process is as follow: 
 \family sans
-\SpecialCharNoPassThru LyX
+\SpecialChar LyX
 \SpecialChar menuseparator
 LilyPond-book\SpecialChar menuseparator
-\SpecialCharNoPassThru LaTeX
+\SpecialChar LaTeX
+
 \family default
 .
- \SpecialCharNoPassThru LyX
- creates a .lytex file, LilyPond-book creates a .tex files and the accompanyin
-g image files, and \SpecialCharNoPassThru LaTeX
+ \SpecialChar LyX
+ creates a .lytex file, LilyPond-book creates a .tex files and the accompanying
+ image files, and \SpecialChar LaTeX
  creates the final document.
  Every step of the tool chain obeys your spacing, so whether you put the
  musical extract inline, or in its own paragraph, centered, left-aligned,
- etc., what you see in the \SpecialCharNoPassThru LyX
+ etc., what you see in the \SpecialChar LyX
  window should be respected in the final format.
  An example of inline use may be to display a chord name, such as
 \begin_inset Flex LilyPond
@@ -393,6 +399,7 @@ status open
 status open
 
 \begin_layout Plain Layout
+
 staffsize=12
 \end_layout
 
@@ -420,7 +427,7 @@ Previews
 
 \begin_layout Standard
 It is possible to have a direct feedback of what the music notation looks
- like from within \SpecialCharNoPassThru LyX
+ like from within \SpecialChar LyX
 .
  To do this, wrap a LilyPond inset inside a Preview inset, which you find
  from the menu 
@@ -429,7 +436,7 @@ Insert\SpecialChar menuseparator
 Preview
 \family default
 .
- This only affects the display within \SpecialCharNoPassThru LyX
+ This only affects the display within \SpecialChar LyX
 , not the output:
 \end_layout
 
@@ -481,7 +488,7 @@ Gotchas
 
 \begin_layout Standard
 A few gotchas that have been experienced with the integration of LilyPond-book
- and \SpecialCharNoPassThru LyX
+ and \SpecialChar LyX
  are reported here.
 \end_layout
 
@@ -490,7 +497,7 @@ Child documents
 \end_layout
 
 \begin_layout Standard
-A \SpecialCharNoPassThru LyX
+A \SpecialChar LyX
  document using the LilyPond module cannot have child documents using
  the 
 \begin_inset Quotes eld
@@ -754,24 +761,24 @@ lilypondfile
  command.
  With this command, the LilyPond code is processed as if it was typed inside
  the document and the output score follows the typesetting determined by
- \SpecialCharNoPassThru LaTeX
+ \SpecialChar LaTeX
  with respect to line width, page breaks, and so on.
- This is in contrast to the long-standing \SpecialCharNoPassThru LyX
- feature to include LilyPond
scores as external material, which calls LilyPond on the external file
- to produce a rigid figure, and includes this figure in the document, leaving
- the typesetting decisions to LilyPond.
+ This is in contrast to the long-standing \SpecialChar LyX
+ feature to include LilyPond scores
as external material, which calls LilyPond on the external file to produce
+ a rigid figure, and includes this figure in the document, leaving the typesetti
+ng decisions to LilyPond.
  Unfortunately, support for the 
 \family typewriter
 
 \backslash
 lilypondfile
 \family default
- command in \SpecialCharNoPassThru LyX
+ command in \SpecialChar LyX
  is not implemented yet, but it is possible to use it inside
- a \SpecialCharNoPassThru TeX
--Code block, provided that one writes the complete, absolute path
- to the desired file.
+ a \SpecialChar TeX
+-Code block, provided that one writes the complete, absolute path to
+ the desired file.
 \end_layout
 
 \begin_layout Section
@@ -820,11 +827,7 @@ name "subsec:Editorial-headword"
 \begin_layout Standard
 NR 1.7 Editorial annotations Beethoven, Op.
  31, No.
- 3 Piano sonata 18, Movt II, Scherzo Measures 9\twohyphens
-14.
-\begin_inset Separator parbreak
-\end_inset
-
+ 3 Piano sonata 18, Movt II, Scherzo Measures 9–14.
 \end_layout
 
 \begin_layout Standard