]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/ja/learning/templates.itely
Docs: reorganize documentation directory structure
[lilypond.git] / Documentation / ja / learning / templates.itely
1 @c -*- coding: utf-8; mode: texinfo; documentlanguage: ja -*-
2
3 @ignore
4     Translation of GIT committish: 499a511d4166feaada31114e097f86b5e0c56421
5
6     When revising a translation, copy the HEAD committish of the
7     version that you are working on.  See TRANSLATION for details.
8 @end ignore
9
10 @c \version "2.12.0"
11
12
13 @c Translators: Yoshiki Sawada
14 @c Translation status: post-GDP
15
16
17 @node Templates
18 @appendix Templates
19
20 このセクションにはセットアップ済みの LilyPond 楽譜を持つテンプレートがあります。音符を付け加えて、LilyPond を実行してください。あとは美しく譜刻された楽譜をお楽しみください!
21
22
23 @menu
24 * Single staff::
25 * Piano templates::
26 * String quartet::
27 * Vocal ensembles::
28 * Ancient notation templates::
29 * Jazz combo::
30 * lilypond-book templates::
31 @end menu
32
33
34 @node Single staff
35 @appendixsec Single staff
36
37 @appendixsubsec Notes only
38
39 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,addversion]
40 {single-staff-template-with-only-notes.ly}
41
42 @appendixsubsec Notes and lyrics
43
44 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc,addversion]
45 {single-staff-template-with-notes-and-lyrics.ly}
46
47 @appendixsubsec Notes and chords
48
49 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
50 {single-staff-template-with-notes-and-chords.ly}
51
52 @appendixsubsec Notes, lyrics, and chords.
53
54 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
55 {single-staff-template-with-notes,-lyrics,-and-chords.ly}
56
57
58 @node Piano templates
59 @appendixsec Piano templates
60
61 @appendixsubsec Solo piano
62
63 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
64 {piano-template-simple.ly}
65
66 @appendixsubsec Piano and melody with lyrics
67
68 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
69 {piano-template-with-melody-and-lyrics.ly}
70
71 @appendixsubsec Piano centered lyrics
72
73 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
74 {piano-template-with-centered-lyrics.ly}
75
76 @appendixsubsec Piano centered dynamics
77
78 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
79 {piano-template-with-centered-dynamics.ly}
80
81
82 @node String quartet
83 @appendixsec String quartet
84
85 @appendixsubsec String quartet
86
87 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
88 {string-quartet-template-simple.ly}
89
90 @appendixsubsec String quartet parts
91
92 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
93 {string-quartet-template-with-separate-parts.ly}
94
95
96 @node Vocal ensembles
97 @appendixsec Vocal ensembles
98
99 @appendixsubsec SATB vocal score
100
101 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
102 {vocal-ensemble-template.ly}
103
104 @appendixsubsec SATB vocal score and automatic piano reduction
105
106 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
107 {vocal-ensemble-template-with-automatic-piano-reduction.ly}
108
109 @appendixsubsec SATB with aligned contexts
110
111 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
112 {vocal-ensemble-template-with-lyrics-aligned-below-and-above-the-staves.ly}
113
114
115 @c bad node name to avoid node name conflict
116 @node Ancient notation templates
117 @appendixsec Ancient notation templates
118
119 @appendixsubsec Transcription of mensural music
120
121 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
122 {ancient-notation-template----modern-transcription-of-mensural-music.ly}
123
124 @appendixsubsec Gregorian transcription template
125
126 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
127 {ancient-notation-template----modern-transcription-of-gregorian-music.ly}
128
129
130 @node Jazz combo
131 @appendixsec Jazz combo
132
133
134 @lilypondfile[verbatim,lilyquote,ragged-right,texidoc]
135 {jazz-combo-template.ly}
136
137
138
139
140 @ignore
141 This isn't very useful, and only duplicates material in
142 "global issues".  And if this info changes, this section often
143 gets forgotten.
144
145 @no de Other templates
146 @se ction Other templates
147 @su bsection All headers
148
149 This template displays all available headers.  Some of them are only
150 used in the Mutopia project; they don't affect the printed output at
151 all.  They are used if you want the piece to be listed with different
152 information in the Mutopia database than you wish to have printed on the
153 music.  For example, Mutopia lists the composer of the famous D major
154 violin concerto as TchaikovskyPI, whereas perhaps you wish to print
155 "Petr Tchaikowski" on your music.
156
157 @ The `line-width' is for \header.
158 @li lypond[quote,verbatim,ragged-right,line-width]
159 \version "2.12.0"
160 \header {
161   dedication = "dedication"
162   title = "Title"
163   subtitle = "Subtitle"
164   subsubtitle = "Subsubtitle"
165   composer = "Composer (xxxx-yyyy)"
166   opus = "Opus 0"
167   piece = "Piece I"
168   meter = "meter"
169   instrument = "Instrument"
170   arranger = "Arranger"
171   poet = "Poet"
172   texttranslator = "Translator"
173   copyright = "public domain"
174
175   % These are headers used by the Mutopia Project
176   % http://www.mutopiaproject.org/
177   mutopiatitle = ""
178   mutopiacomposer = ""
179   mutopiapoet = ""
180   mutopiainstrument = ""
181   date = "composer's dates"
182   source = "urtext "
183   maintainer = "your name here"
184   maintainerEmail = "your email here"
185   maintainerWeb = "your home page"
186   lastupdated = "2004/Aug/26"
187 }
188
189 \score {
190   { c'4 }
191   \header {
192     piece = "piece1"
193     opus = "opus1"
194   }
195 }
196
197 \score {
198   { c'4 }
199   \header {
200     piece = "piece2"
201     opus = "opus2"
202   }
203 }
204 @end lilypond
205 @end ignore
206
207
208 @node lilypond-book templates
209 @appendixsec lilypond-book templates
210
211 These templates are for use with @code{lilypond-book}.  If you're not familiar
212 with this program, please refer to @rprogram{LilyPond-book}.
213
214 @appendixsubsec LaTeX
215
216 You can include LilyPond fragments in a LaTeX document.
217
218 @example
219 \documentclass[]@{article@}
220
221 \begin@{document@}
222
223 Normal LaTeX text.
224
225 \begin@{lilypond@}
226 \relative c'' @{
227 a4 b c d
228 @}
229 \end@{lilypond@}
230
231 More LaTeX text.
232
233 \begin@{lilypond@}
234 \relative c'' @{
235 d4 c b a
236 @}
237 \end@{lilypond@}
238 \end@{document@}
239 @end example
240
241 @appendixsubsec Texinfo
242
243 You can include LilyPond fragments in Texinfo; in fact, this entire manual
244 is written in Texinfo.
245
246 @example
247 \input texinfo
248 @@node Top
249
250 Texinfo text
251
252 @@lilypond[verbatim,fragment,ragged-right]
253 a4 b c d
254 @@end lilypond
255
256 More Texinfo text
257
258 @@lilypond[verbatim,fragment,ragged-right]
259 d4 c b a
260 @@end lilypond
261
262 @@bye
263 @end example
264
265
266 @appendixsubsec xelatex
267
268 @verbatim
269 \documentclass{article}
270 \usepackage{ifxetex}
271 \ifxetex
272 %xetex specific stuff
273 \usepackage{xunicode,fontspec,xltxtra}
274 \setmainfont[Numbers=OldStyle]{Times New Roman}
275 \setsansfont{Arial}
276 \else
277 %This can be empty if you are not going to use pdftex
278 \usepackage[T1]{fontenc}
279 \usepackage[utf8]{inputenc}
280 \usepackage{mathptmx}%Times
281 \usepackage{helvet}%Helvetica
282 \fi
283 %Here you can insert all packages that pdftex also understands
284 \usepackage[ngerman,finnish,english]{babel}
285 \usepackage{graphicx}
286
287 \begin{document}
288 \title{A short document with LilyPond and xelatex}
289 \maketitle
290
291 Normal \textbf{font} commands inside the \emph{text} work,
292 because they \textsf{are supported by \LaTeX{} and XeteX.}
293 If you want to use specific commands like \verb+\XeTeX+, you
294 should include them again in a \verb+\ifxetex+ environment.
295 You can use this to print the \ifxetex \XeTeX{} command \else
296 XeTeX command \fi which is not known to normal \LaTeX .
297
298 In normal text you can easily use LilyPond commands, like this:
299
300 \begin{lilypond}
301 {a2 b c'8 c' c' c'}
302 \end{lilypond}
303
304 \noindent
305 and so on.
306
307 The fonts of snippets set with LilyPond will have to be set from
308 inside
309 of the snippet. For this you should read the AU on how to use
310 lilypond-book.
311
312 \selectlanguage{ngerman}
313 Auch Umlaute funktionieren ohne die \LaTeX -Befehle, wie auch alle
314 anderen
315 seltsamen Zeichen: __ ______, wenn sie von der Schriftart
316 unterst__tzt werden.
317 \end{document}
318 @end verbatim
319
320