mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-23 16:52:02 +00:00
lilypond.lyx: backport from trunk
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@39528 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
bbdeabe00b
commit
fa4a4380ea
@ -31,16 +31,16 @@ lilypond
|
|||||||
\spacing single
|
\spacing single
|
||||||
\use_hyperref true
|
\use_hyperref true
|
||||||
\pdf_title "LilyPond-book and LyX"
|
\pdf_title "LilyPond-book and LyX"
|
||||||
\pdf_author "Julien Rioux"
|
\pdf_author "Your Name"
|
||||||
\pdf_bookmarks true
|
\pdf_bookmarks true
|
||||||
\pdf_bookmarksnumbered false
|
\pdf_bookmarksnumbered true
|
||||||
\pdf_bookmarksopen false
|
\pdf_bookmarksopen true
|
||||||
\pdf_bookmarksopenlevel 1
|
\pdf_bookmarksopenlevel 1
|
||||||
\pdf_breaklinks false
|
\pdf_breaklinks false
|
||||||
\pdf_pdfborder false
|
\pdf_pdfborder false
|
||||||
\pdf_colorlinks false
|
\pdf_colorlinks true
|
||||||
\pdf_backref false
|
\pdf_backref false
|
||||||
\pdf_pdfusetitle true
|
\pdf_pdfusetitle false
|
||||||
\papersize default
|
\papersize default
|
||||||
\use_geometry true
|
\use_geometry true
|
||||||
\use_amsmath 1
|
\use_amsmath 1
|
||||||
@ -63,8 +63,8 @@ lilypond
|
|||||||
\bottommargin 2cm
|
\bottommargin 2cm
|
||||||
\secnumdepth 3
|
\secnumdepth 3
|
||||||
\tocdepth 3
|
\tocdepth 3
|
||||||
\paragraph_separation skip
|
\paragraph_separation indent
|
||||||
\defskip smallskip
|
\paragraph_indentation default
|
||||||
\quotes_language english
|
\quotes_language english
|
||||||
\papercolumns 1
|
\papercolumns 1
|
||||||
\papersides 1
|
\papersides 1
|
||||||
@ -83,22 +83,87 @@ LilyPond-book and LyX
|
|||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Author
|
\begin_layout Author
|
||||||
Julien Rioux
|
Fake Author
|
||||||
|
\begin_inset Note Note
|
||||||
|
status open
|
||||||
|
|
||||||
|
\begin_layout Plain Layout
|
||||||
|
author of this example file: Julien Rioux
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Abstract
|
\begin_layout Abstract
|
||||||
This is an example file demonstrating the inclusion of musical snippets
|
This document explains and demonstrates the inclusion of musical snippets
|
||||||
in a LyX document, using the LilyPond music notation and the LilyPond-book
|
in a LyX document, using the LilyPond syntax for music notation and the
|
||||||
utility for processing.
|
LilyPond-book utility for processing.
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Section
|
||||||
|
Introduction
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Standard
|
||||||
|
LilyPond is an open-source project that renders possible the creation of
|
||||||
|
beautiful computer-generated musical scores.
|
||||||
|
The project consists of a text-based music notation language, and a program
|
||||||
|
to process this notation into musical scores.
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Standard
|
||||||
|
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 an utility provided by the LilyPond project that helps
|
||||||
|
incorporate musical scores using the LilyPond notation into LaTeX documents,
|
||||||
|
among other formats.
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Standard
|
||||||
|
This document describes the use of the Lilypond music notation within LyX
|
||||||
|
documents that use a LaTeX-based layout, thus combining the beauty and
|
||||||
|
quality of the typesetting achieved by both LaTeX and LilyPond.
|
||||||
|
While a basic understanding of the LilyPond syntax for music notation is
|
||||||
|
in order, knowledge of LaTeX is not necessary when using LyX.
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Standard
|
||||||
|
Section
|
||||||
|
\begin_inset CommandInset ref
|
||||||
|
LatexCommand ref
|
||||||
|
reference "sec:Using-LilyPond-code"
|
||||||
|
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
explains the requirements, usage instructions, and shortcomings of LilyPond
|
||||||
|
music notation within LyX.
|
||||||
|
Section
|
||||||
|
\begin_inset CommandInset ref
|
||||||
|
LatexCommand ref
|
||||||
|
reference "sec:LilyPond-examples"
|
||||||
|
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
demonstrates the beauty and quality of the typesetting with a few examples.
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Section
|
\begin_layout Section
|
||||||
Using LilyPond code within LyX
|
Using LilyPond code within LyX
|
||||||
|
\begin_inset CommandInset label
|
||||||
|
LatexCommand label
|
||||||
|
name "sec:Using-LilyPond-code"
|
||||||
|
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
Support for LilyPond constructs (LilyPond code) within LyX is enabled by
|
Support for LilyPond music notation (LilyPond code) within LyX is enabled
|
||||||
adding the LilyPond module to your document.
|
by adding the LilyPond module to your document.
|
||||||
This is done from the menu
|
This is done from the menu
|
||||||
\family sans
|
\family sans
|
||||||
Document\SpecialChar \menuseparator
|
Document\SpecialChar \menuseparator
|
||||||
@ -106,8 +171,8 @@ Settings
|
|||||||
\family default
|
\family default
|
||||||
, then selecting LilyPond in the list of modules.
|
, then selecting LilyPond in the list of modules.
|
||||||
You can use any LaTeX-based LyX layout and use the regular preview and
|
You can use any LaTeX-based LyX layout and use the regular preview and
|
||||||
export mechanism; LyX will take care of processing the LaTeX code through
|
export mechanism; LyX will take care of processing the mixed LaTeX/LilyPond
|
||||||
LilyPond-book for you.
|
code through LilyPond-book for you.
|
||||||
LilyPond-book can also handle DocBook documents but LilyPond-DocBook support
|
LilyPond-book can also handle DocBook documents but LilyPond-DocBook support
|
||||||
in LyX is missing at the moment.
|
in LyX is missing at the moment.
|
||||||
\end_layout
|
\end_layout
|
||||||
@ -117,7 +182,7 @@ Requirements
|
|||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
LilyPond-book version 2.13 or newer
|
LilyPond-book version 2.13 or newer.
|
||||||
\begin_inset Foot
|
\begin_inset Foot
|
||||||
status collapsed
|
status collapsed
|
||||||
|
|
||||||
@ -187,6 +252,7 @@ relative c'' {
|
|||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
|
\noindent
|
||||||
The previous LyX inset produces the following LaTeX-lookalike code:
|
The previous LyX inset produces the following LaTeX-lookalike code:
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
@ -218,15 +284,15 @@ end{lilypond}
|
|||||||
|
|
||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
This code is not, in fact, processed by LaTeX, but is preprocessed by LilyPond-b
|
This code is not, in fact, processed by LaTeX, but is preprocessed by LilyPond-b
|
||||||
ook, which creates the graphics files and include them in the LaTeX document
|
ook, which creates the graphics files and includes them in the LaTeX document
|
||||||
by replacing the above with
|
by replacing the above with a
|
||||||
\family typewriter
|
\family typewriter
|
||||||
|
|
||||||
\backslash
|
\backslash
|
||||||
includegraphics{\SpecialChar \ldots{}
|
includegraphics{\SpecialChar \ldots{}
|
||||||
}
|
}
|
||||||
\family default
|
\family default
|
||||||
.
|
command.
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
@ -317,12 +383,19 @@ relative c'' {
|
|||||||
Unfortunately, you might find that the preview isn't exactly instantaneous.
|
Unfortunately, you might find that the preview isn't exactly instantaneous.
|
||||||
You need to move the cursor out of the Preview inset to start compilation,
|
You need to move the cursor out of the Preview inset to start compilation,
|
||||||
and processing time can take a few seconds.
|
and processing time can take a few seconds.
|
||||||
|
Nevertheless, the direct feedback is often worthwhile during editing, and
|
||||||
|
renders the navigation through the document much easier.
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Subsection
|
\begin_layout Subsection
|
||||||
Gotchas
|
Gotchas
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Standard
|
||||||
|
A few gotchas that have been experienced with the integration of LilyPond-book
|
||||||
|
and LyX are reported here.
|
||||||
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Subsubsection
|
\begin_layout Subsubsection
|
||||||
Child documents
|
Child documents
|
||||||
\end_layout
|
\end_layout
|
||||||
@ -564,6 +637,13 @@ For some reason LilyPond-book version 2.13 barks on this when run in safe
|
|||||||
|
|
||||||
\begin_layout Section
|
\begin_layout Section
|
||||||
LilyPond examples
|
LilyPond examples
|
||||||
|
\begin_inset CommandInset label
|
||||||
|
LatexCommand label
|
||||||
|
name "sec:LilyPond-examples"
|
||||||
|
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
@ -1104,6 +1184,7 @@ staccato
|
|||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
|
\noindent
|
||||||
[from
|
[from
|
||||||
\begin_inset Flex URL
|
\begin_inset Flex URL
|
||||||
status collapsed
|
status collapsed
|
||||||
@ -1282,6 +1363,7 @@ lower }
|
|||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
|
\noindent
|
||||||
[from
|
[from
|
||||||
\begin_inset Flex URL
|
\begin_inset Flex URL
|
||||||
status collapsed
|
status collapsed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user