1 @c -*- coding: utf-8; mode: texinfo; -*-
2 @c This file is part of web/download.itexi and
3 @c learning/tutorial.itely
5 @c This is about "compiling" a lilypond file
6 @c (Learning 1 Tutorial), **not** compiling the
10 @warning{These instructions assume that you are using the LilyPond
11 application. If you are using any of the programs described in
12 @rweb{Easier editing}, please consult the documentation for
13 those programs if you have any problems.}
16 @subsubheading Step 1. Create your @file{.ly} file
18 Double click the @command{LilyPond.app}, an example file will open.
20 @sourceimage{Learning_Macos_welcome,,,}
22 From the menus along the top left of your screen, select
23 @w{@code{File > Save}}.
25 @sourceimage{Learning_Macos_Save_menu,,,}
27 Choose a name for your file, for example @file{test.ly}.
29 @sourceimage{Learning_Macos_Save_file_with_name,,,}
32 @subsubheading Step 2. Compile (with LilyPad)
34 From the same menus, select
35 @w{@code{Compile > Tyepset}}.
37 @sourceimage{Learning_Macos_Typeset_menu,,,}
39 A new window will open showing a progress log of the compilation
40 of the file you have just saved.
42 @sourceimage{Learning_Macos_Compiling_log,,,}
45 @subsubheading Step 3. View output
47 Once the compilation has finished, a PDF file will be created with
48 the same name as the original file and will be automatically
49 opened in the default PDF viewer and displayed on your screen.
51 @sourceimage{Learning_Macos_pdf_output,,,}
54 @subsubheading Other commands
56 To create new files for LilyPond, begin by selecting
59 @sourceimage{Learning_Macos_New_menu,,,}
61 or @w{@code{File > Open}} to open and edit existing files you have
64 @sourceimage{Learning_Macos_Open_menu,,,}
66 You must save any new edits you make to your file before you
67 @w{@code{Compile > Tyepset}} and if the PDF file is not displayed
68 check the window with the progress log for any errors.
70 If you are not using the default Preview PDF viewer that comes
71 with the Mac Operating system and you have the PDF file generated
72 from a previous compilation open, then any further compilations
73 may fail to generate an update PDF until you close the original.
81 @warning{These instructions assume that you are using the built-in
82 LilyPad editor. If you are using any of the programs described in
83 @rweb{Easier editing}, please consult the documentation for
84 those programs if you have any problems compiling a file.}
87 @subsubheading Step 1. Create your @file{.ly} file
89 Double-click the LilyPond icon on your desktop, an example file will open.
91 @sourceimage{Learning_Win7_Welcome_File_Whole,,,}
93 From the menus that appear along the top of the example file,
94 select @w{@code{File > Save as}}. Do not use the @w{@code{File > Save}}
95 for the example file as this will not work until you have given it a
96 valid LilyPond file name.
98 @sourceimage{Learning_Win7_Save_Menu,,,}
100 Choose a name for your file, for example @file{test.ly}.
102 @sourceimage{Learning_Win7_Save_File_With_Name,,,}
105 @subsubheading Step 2a. Compile (with drag-and-drop)
107 Depending on what you prefer, to compile your file either:
109 Drag-and-drop the file directly onto the LilyPond icon.
111 @sourceimage{Learning_Win7_Open_Dragndrop,,,}
113 @c FIXME: use 2nd-click? Right/Left depends on where you place your mouse.
114 Right-click on the file and from the pop-up context menu choose
115 @w{@code{Open with > LilyPond}}.
117 @sourceimage{Learning_Win7_Open_Context_Menu,,,}
120 @c FIXME: why present/advise the best/simplest for last?
121 @subsubheading Step 2b. Compile (with double-clicking)
123 Or simply double-click the @file{test.ly}.
126 @subsubheading Step 3. View output
128 During the compilation of the @file{test.ly} file, a command window
129 will, very briefly open and then close. Three additional files will
130 have been created during this process.
132 @sourceimage{Learning_Win7_All_Files_Created,,,}
134 The PDF file contains the engraved @file{test.ly} file.
136 @sourceimage{Learning_Win7_Pdf_Output,,,}
139 @subsubheading Other commands
141 To create a new file, begin by selecting @w{@code{File > New}} from
142 within any previously created file.
144 @sourceimage{Learning_Win7_New_Menu,,,}
147 or @w{@code{File > Open}} to open and edit any files you have saved
150 @sourceimage{Learning_Win7_Open_Menu,,,}
152 You must save any new edits you make before you compile it and if the
153 PDF file is not created, check the log file that will have been created
154 during the compilation attempt, for any errors.
156 @sourceimage{Learning_Win7_Log_File,,,}
158 This log file is overwritten each time you compile your LilyPond file.
160 The PS file is used internally by LilyPond to create the PDF file and
161 can be ignored. It also gets overwritten each time you compile your
164 If you are viewing your file in a PDF viewer, then you must close the
165 PDF if you wish to make a new compilation as it may fail to create
166 the new PDF while it is still being viewed.
172 @c not lilypad at all, but I ran out of names. :(
173 @macro lilypadCommandLine
174 @warning{These instructions assume that you are familiar with
175 command-line programs. If you are using any of the programs
176 described in @rweb{Easier editing}, please consult the
177 documentation for those programs if you have any problems
181 @subsubheading Step 1. Create your @file{.ly} file
183 Create a text file called @file{test.ly} and enter:
185 @c double \\ required because this is inside a macro!
187 \\version "@w{@version{}}"
194 @subsubheading Step 2. Compile (with command-line)
196 To process @file{test.ly}, type the following at the command prompt:
203 You will see something resembling:
206 GNU LilyPond @w{@version{}}
209 Interpreting music...
210 Preprocessing graphical objects...
211 Solving 1 page-breaking chunks...[1: 1 pages]
213 Layout output to `test.ps'...
214 Converting to `./test.pdf'...
217 @subsubheading Step 3. View output
219 You may view or print the resulting @file{test.pdf}.