@c -*- coding: utf-8; mode: texinfo; documentlanguage: it -*-
@ignore
- Translation of GIT committish: eba67a0bc70f38a7847de75c640d7ad19c6fd804
+ Translation of GIT committish: 7f48cb638958a728209577caa41bbaca8a2e4ef2
When revising a translation, copy the HEAD committish of the
version that you are working on. For details, see the Contributors'
Guide, node Updating translation committishes..
@end ignore
-@c \version "2.17.11"
+@c \version "2.19.22"
@c Note: keep this node named so that `info lilypond-book' brings you here.
@node lilypond-book
Ad esempio,
\begin{lilypond}
-\relative c' {
- c2 e2 \tuplet 3/2 { f8 a b } a2 e4
+\relative {
+ c'2 e2 \tuplet 3/2 { f8 a b } a2 e4
}
\end{lilypond}
@subheading Output
-I documenti per \verb+lilypond-book+ possono combinare liberamente musica e testo.
-Ad esempio,
+I documenti per @command{lilypond-book} possono combinare liberamente musica
+e testo. Ad esempio,
@lilypond
-\relative c' {
- c2 e2 \tuplet 3/2 { f8 a b } a2 e4
+\relative {
+ c'2 e2 \tuplet 3/2 { f8 a b } a2 e4
}
@end lilypond
title = "Una scala in LilyPond"
}
- \relative c' {
- c d e f g a b c
+ \relative {
+ c' d e f g a b c
}
}
@end lilypond
testuale non mostrerà il blocco @code{relative}, ovvero
@example
-\relative c' @{ % begin verbatim
- c4 e2 g4
+\relative @{ % begin verbatim
+ c'4 e2 g4
f2 e % end verbatim
@}
@end example
PDF con strumenti come @command{ps2pdf} e @command{pdf2ps} inclusi nel pacchetto
Ghostscript.
-Per creare un file PDF con PDF@LaTeX{}, si usa
+Per creare un file PDF con PDF@LaTeX{}, si usa:
@example
lilypond-book --pdf tuofile.lytex
@cindex type1, carattere
@cindex dvips
@cindex utilizzo di dvips
-Per produrre l'output PDF attraverso @LaTeX{}/@command{dvips}/@command{ps2pdf},
-bisogna usare questi comandi
+Per produrre l'output PDF attraverso @LaTeX{}/@command{dvips}/@command{ps2pdf}:
@example
lilypond-book tuofile.lytex
essere ignorati. Se esegui @command{latex} in modalità due colonne, ricorda
di aggiungere @option{-t landscape} alle opzioni di @command{dvips}.
+Gli ambienti come:
+
+@example
+\begin@{lilypond@} @dots{} \end@{lilypond@}
+@end example
+
+@noindent
+non sono interpretati da @LaTeX{}. @code{lilypond-book} estrae questi
+@q{ambienti} e li copia in file in un suo formato per poter eseguire
+LilyPond su di essi. Prende quindi gli elementi grafici risultanti
+e crea un file @file{.tex} dove le macro
+@code{\begin@{lilypond@}}@dots{}@code{\end@{lilypond@}} sono poi
+sostituite da comandi di @q{inclusione di immagini}. È a questo
+punto che @LaTeX{} viene eseguito (anche se @LaTeX{} è stato eseguito
+in precedenza, in realtà ha agito su un documento @q{vuoto} solo per
+fare alcuni calcoli, come per esempio di @code{\linewidth}).
+
@knownissues
Il comando @code{\pageBreak} non funziona all'interno dell'ambiente
@code{\begin@{lilypond@} @dots{} \end@{lilypond@}}.
Normale testo LaTeX.
\begin@{lilypond@}
-\relative c'' @{
- a4 b c d
+\relative @{
+ a'4 b c d
@}
\end@{lilypond@}
Testo Texinfo
@@lilypond
-\relative c' @{
+\relative @{
a4 b c d
@}
@@end lilypond
I documenti per lilypond-book possono combinare liberamente musica e testo. Ad
esempio,
<lilypond>
-\relative c'' @{
- a4 b c d
+\relative @{
+ a'4 b c d
@}
</lilypond>
</p>
<p>
-Ancora un po' di Lilypond, questa volta con delle opzioni:
+Ancora un po' di LilyPond, questa volta con delle opzioni:
<lilypond fragment quote staffsize=26 verbatim>
a4 b c d
(format #f "~a, section, 1, @{~a@}, ~a" page text label))))
(formatted-toc-items (map format-line (toc-items)))
(whole-string (string-join formatted-toc-items ",\n"))
- (output-name (ly:parser-output-name parser))
+ (output-name (ly:parser-output-name))
(outfilename (format "~a.toc" output-name))
(outfile (open-output-file outfilename)))
(if (output-port? outfile)
Altri modi per combinare testo e musica (senza usare
@command{lilypond-book}) sono trattati in
@ref{LilyPond output in other programs}.
-