mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
update lilypond example file:
- add info about child lyx documents - spellcheck git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38026 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
474f19876c
commit
cd8ddbc9ff
@ -1,24 +1,22 @@
|
|||||||
#LyX 2.0.0svn created this file. For more info see http://www.lyx.org/
|
#LyX 2.0 created this file. For more info see http://www.lyx.org/
|
||||||
\lyxformat 404
|
\lyxformat 413
|
||||||
\begin_document
|
\begin_document
|
||||||
\begin_header
|
\begin_header
|
||||||
\textclass article
|
\textclass article
|
||||||
\begin_preamble
|
|
||||||
\date{}
|
|
||||||
\end_preamble
|
|
||||||
\use_default_options true
|
\use_default_options true
|
||||||
\begin_modules
|
\begin_modules
|
||||||
lilypond
|
lilypond
|
||||||
\end_modules
|
\end_modules
|
||||||
\maintain_unincluded_children false
|
\maintain_unincluded_children false
|
||||||
\language english
|
\language english
|
||||||
|
\language_package default
|
||||||
\inputencoding auto
|
\inputencoding auto
|
||||||
\fontencoding global
|
\fontencoding global
|
||||||
\font_roman default
|
\font_roman default
|
||||||
\font_sans default
|
\font_sans default
|
||||||
\font_typewriter default
|
\font_typewriter default
|
||||||
\font_default_family default
|
\font_default_family default
|
||||||
\use_xetex false
|
\use_non_tex_fonts false
|
||||||
\font_sc false
|
\font_sc false
|
||||||
\font_osf false
|
\font_osf false
|
||||||
\font_sf_scale 100
|
\font_sf_scale 100
|
||||||
@ -31,7 +29,18 @@ lilypond
|
|||||||
\index_command default
|
\index_command default
|
||||||
\paperfontsize default
|
\paperfontsize default
|
||||||
\spacing single
|
\spacing single
|
||||||
\use_hyperref false
|
\use_hyperref true
|
||||||
|
\pdf_title "LilyPond-book and LyX"
|
||||||
|
\pdf_author "Julien Rioux"
|
||||||
|
\pdf_bookmarks true
|
||||||
|
\pdf_bookmarksnumbered false
|
||||||
|
\pdf_bookmarksopen false
|
||||||
|
\pdf_bookmarksopenlevel 1
|
||||||
|
\pdf_breaklinks false
|
||||||
|
\pdf_pdfborder false
|
||||||
|
\pdf_colorlinks false
|
||||||
|
\pdf_backref false
|
||||||
|
\pdf_pdfusetitle true
|
||||||
\papersize default
|
\papersize default
|
||||||
\use_geometry true
|
\use_geometry true
|
||||||
\use_amsmath 1
|
\use_amsmath 1
|
||||||
@ -42,7 +51,7 @@ lilypond
|
|||||||
\use_bibtopic false
|
\use_bibtopic false
|
||||||
\use_indices false
|
\use_indices false
|
||||||
\paperorientation portrait
|
\paperorientation portrait
|
||||||
\suppress_date false
|
\suppress_date true
|
||||||
\use_refstyle 0
|
\use_refstyle 0
|
||||||
\index Index
|
\index Index
|
||||||
\shortcut idx
|
\shortcut idx
|
||||||
@ -63,18 +72,20 @@ lilypond
|
|||||||
\tracking_changes false
|
\tracking_changes false
|
||||||
\output_changes false
|
\output_changes false
|
||||||
\html_math_output 0
|
\html_math_output 0
|
||||||
|
\html_css_as_file 0
|
||||||
\html_be_strict true
|
\html_be_strict true
|
||||||
\end_header
|
\end_header
|
||||||
|
|
||||||
\begin_body
|
\begin_body
|
||||||
|
|
||||||
\begin_layout Title
|
\begin_layout Title
|
||||||
LilyPond-book + LyX
|
LilyPond-book and LyX
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Abstract
|
\begin_layout Abstract
|
||||||
This is an example file demonstrating the use of LilyPond music notation
|
This is an example file demonstrating the inclusion of musical snippets
|
||||||
with LyX.
|
in a LyX document, using the LilyPond music notation and the LilyPond-book
|
||||||
|
utility for processing.
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Section
|
\begin_layout Section
|
||||||
@ -203,13 +214,13 @@ includegraphics{\SpecialChar \ldots{}
|
|||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
Thus, the conversion toolchain is as follow: LyX\SpecialChar \menuseparator
|
Thus, the conversion path is as follow: LyX\SpecialChar \menuseparator
|
||||||
LilyPond-book\SpecialChar \menuseparator
|
LilyPond-book\SpecialChar \menuseparator
|
||||||
LaTeX.
|
LaTeX.
|
||||||
Every step of the toolchain obeys your spacing, so whether you put the
|
Every step of the tool chain obeys your spacing, so whether you put the
|
||||||
musical extract inline or in its own paragraph, centered or left-aligned,
|
musical extract in line, or in its own paragraph, centered, left-aligned,
|
||||||
etc., what you see in the LyX window should be respected in the final format.
|
etc., what you see in the LyX window should be respected in the final format.
|
||||||
An example of inline use may be to display a chord name, such as
|
An example of in-line use may be to display a chord name, such as
|
||||||
\begin_inset Flex LilyPond
|
\begin_inset Flex LilyPond
|
||||||
status open
|
status open
|
||||||
|
|
||||||
@ -288,6 +299,91 @@ Unfortunately, you might find that the preview isn't exactly instantaneous.
|
|||||||
Gotchas
|
Gotchas
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Subsubsection
|
||||||
|
Child documents
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Standard
|
||||||
|
A LyX document using the LilyPond module cannot have child documents using
|
||||||
|
the
|
||||||
|
\begin_inset Quotes eld
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
Input
|
||||||
|
\begin_inset Quotes erd
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
method.
|
||||||
|
If you select
|
||||||
|
\begin_inset Quotes eld
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
Input
|
||||||
|
\begin_inset Quotes erd
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
as the
|
||||||
|
\begin_inset Quotes eld
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
Include Type
|
||||||
|
\begin_inset Quotes erd
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
under Insert\SpecialChar \menuseparator
|
||||||
|
File\SpecialChar \menuseparator
|
||||||
|
Child Document, you will get an error when producing output.
|
||||||
|
This is due to the way LilyPond-book automatically processes these input
|
||||||
|
files recursively.
|
||||||
|
Since there is currently no command-line option to turn off this behavior
|
||||||
|
of LilyPond-book, it is suggested to use the
|
||||||
|
\begin_inset Quotes eld
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
Include
|
||||||
|
\begin_inset Quotes erd
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
method instead.
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Standard
|
||||||
|
Note that it is possible to insert child documents which make use of the
|
||||||
|
LilyPond module, using either the
|
||||||
|
\begin_inset Quotes eld
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
Input
|
||||||
|
\begin_inset Quotes erd
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
or
|
||||||
|
\begin_inset Quotes eld
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
Include
|
||||||
|
\begin_inset Quotes erd
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
method, in a master document which does not make use of the LilyPond module.
|
||||||
|
For this to work you might have to add the line
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout LyX-Code
|
||||||
|
|
||||||
|
\backslash
|
||||||
|
usepackage{graphicx}
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Standard
|
||||||
|
to your master document's preamble under Document\SpecialChar \menuseparator
|
||||||
|
Settings.
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Subsubsection
|
||||||
|
Surrounding braces
|
||||||
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
LilyPond-book searches for a
|
LilyPond-book searches for a
|
||||||
\family typewriter
|
\family typewriter
|
||||||
@ -367,6 +463,10 @@ score given
|
|||||||
|
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Subsubsection
|
||||||
|
Fret diagrams
|
||||||
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
Another gotcha is with subsequent lilypond snippets with
|
Another gotcha is with subsequent lilypond snippets with
|
||||||
\family typewriter
|
\family typewriter
|
||||||
@ -438,8 +538,9 @@ reference "sub:Editorial-headword"
|
|||||||
|
|
||||||
\end_inset
|
\end_inset
|
||||||
|
|
||||||
shows a complex example using many LilyPond constructs; some inline scheme
|
shows a complex example using many LilyPond constructs; some scheme code
|
||||||
code has been removed to be able to run in safe mode.
|
has been removed from the original source of this snippet, to be able to
|
||||||
|
run in safe mode.
|
||||||
Example
|
Example
|
||||||
\begin_inset CommandInset ref
|
\begin_inset CommandInset ref
|
||||||
LatexCommand ref
|
LatexCommand ref
|
||||||
@ -978,7 +1079,7 @@ http://lsr.dsi.unimi.it/LSR/Item?id=627
|
|||||||
|
|
||||||
\end_inset
|
\end_inset
|
||||||
|
|
||||||
; inline scheme code removed, centering applied through the paragraph settings]
|
; scheme code removed, centering applied through the paragraph settings]
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Subsection
|
\begin_layout Subsection
|
||||||
|
Loading…
Reference in New Issue
Block a user