]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/user/invoking.itely
Minor fixes from mailist.
[lilypond.git] / Documentation / user / invoking.itely
1 @c -*- coding: utf-8; mode: texinfo; -*-
2 @c This file is part of lilypond.tely
3
4 @node Running LilyPond
5 @chapter Running LilyPond
6
7 This chapter details the technicalities of running LilyPond.
8
9
10 @menu
11 * Invoking lilypond::           
12 * Notes for the MacOS X app::   
13 * Updating files with convert-ly::  
14 * Reporting bugs::              
15 * Error messages::              
16 * Editor support::              
17 * Point and click::             
18 @end menu
19
20 @node Invoking lilypond
21 @section Invoking lilypond
22 @cindex Invoking LilyPond
23 @cindex command line options
24 @cindex options, command line
25 @cindex switches
26
27
28 The @code{lilypond} executable may be called as follows from the command line.
29
30 @example
31 lilypond [@var{option}]@dots{} @var{file}@dots{}
32 @end example
33
34
35 When invoked with a filename that has no extension, the @file{.ly}
36 extension is tried first.  To read input from stdin, use a
37 dash (@code{-}) for @var{file}.
38
39 When @file{filename.ly} is processed it will produce
40 @file{filename.tex} as output (or @file{filename.ps} for PostScript
41 output).  If @file{filename.ly} contains more than one @code{\score}
42 block, then the rest of the scores will be output in numbered files,
43 starting with @file{filename-1.tex}.  Several files can be specified;
44 they will each be processed independently.  @footnote{The status of
45 GUILE is not reset after processing a @code{.ly} file, so be careful
46 not to change any system defaults from within Scheme.}
47
48
49 @subsection Command line options
50
51 The following options are supported:
52
53 @table @code
54
55 @item -e,--evaluate=@var{expr}
56 Evaluate the Scheme @var{expr} before parsing any @file{.ly} files.
57 Multiple @code{-e} options may be given, they will be evaluated
58 sequentially.
59
60 The expression will be evaluated in the @code{guile-user} module, so
61 if you want to use definitions in @var{expr}, use
62
63 @example
64 lilypond -e '(define-public a 42)'
65 @end example
66
67 @noindent
68 on the command-line, and include
69
70 @example
71 #(use-modules (guile-user))
72 @end example
73
74 @noindent
75 at the top of the @code{.ly} file.
76
77 @item -f,--format=@var{format}
78 which formats should be written.  Choices are @code{svg}, @code{ps},
79 @code{pdf}, @code{png}, @code{tex}, @code{dvi}.
80
81 @item -b,--backend=@var{format}
82 the output format to use for the back-end.  Choices are
83 @table @code
84 @item tex
85 for @TeX{} output, to be processed with La@TeX{}.  If present, the file
86 @file{file.textmetrics} is read to determine text extents.
87 @item texstr
88 dump text strings to @file{.texstr} file, which can be run through
89 (La)@TeX{}, resulting in a @code{.textmetrics} file, which contains the
90 extents of strings of text.
91 @item ps
92  for PostScript.
93 @cindex PostScript output
94
95   Postscript files include TTF, Type1 and OTF fonts.  No subsetting of
96   these fonts is done.  When using oriental character sets, this can
97   lead to huge files.
98
99 @item eps
100  for encapsulated PostScript.  This dumps every page (system) as a separate
101 @file{EPS} file, without fonts, and as one collated @file{EPS} file with
102 all pages (systems) including fonts.
103
104 This mode is used by default by lilypond-book.
105
106 @item svg
107  for SVG (Scalable Vector Graphics).  This dumps every page as a separate
108 @file{SVG} file, with embedded fonts.
109 @cindex SVG (Scalable Vector Graphics)
110   You need a SVG viewer which supports embedded fonts, or a SVG
111   viewer which is able to replace the embedded fonts with OTF fonts.
112   Under Unix, you may use @uref{http://www.inkscape.org,Inkscape}
113   (version 0.42 or later), after copying the OTF fonts in directory
114   @file{PATH/TO/share/lilypond/VERSION/fonts/otf/} to @file{~/.fonts/}.
115 @item scm
116  for a dump of the raw, internal Scheme-based drawing commands.
117 @cindex Scheme dump
118 @end table
119
120 @cindex output format, setting
121
122 @item -d,--define-default=@var{var}=@var{val}
123 This sets the internal program option @var{var} to the Scheme value
124 @var{val}. If @var{val} is not supplied, then @var{#t} is used. To
125 switch off an option, @code{no-} may be prefixed to @var{var}, e.g.
126
127 @cindex point and click, command line
128
129 @example
130 -dno-point-and-click
131 @end example
132
133 @noindent
134 is the same as
135 @example
136 -dpoint-and-click='#f'
137 @end example
138
139 Another notable option is
140
141 @example
142 -dpaper-size=\"letter\"
143 @end example
144
145 @noindent
146 Note that the string must be enclosed in escaped quotes ( @code{\"} ).
147
148 Setting the @code{-dhelp} option will print a summary of the options
149 available, and exit.
150
151 @item -h,--help
152 Show a summary of usage.
153
154 @item -H,--header=FIELD
155 Dump a header field to file BASENAME.FIELD
156
157 @item --include, -I=@var{directory}
158 Add @var{directory} to the search path for input files.
159 @cindex file searching
160 @cindex search path
161
162 @item -i,--init=@var{file}
163 Set init file to @var{file} (default: @file{init.ly}).
164
165 @item -o,--output=@var{FILE}
166 Set the default output file to @var{FILE}.  The appropriate
167 suffix will be added (ie @code{.pdf} for pdf, @code{.tex}
168 for tex, etc).
169
170 @item --ps
171 Generate PostScript.
172
173 @item --dvi
174 Generate DVI files.  In this case, the @TeX{} backend should be
175 specified, i.e., @code{-b tex}.
176
177 @item --png
178 Generate pictures of each page, in PNG format.  This implies
179 @code{--ps}.  The resolution in DPI of the image may be set with
180 @example
181 -dresolution=110
182 @end example
183
184 @item --pdf
185 Generate PDF.  This implies @code{--ps}.
186
187 @item --preview
188 Generate an output file containing the titles and the first system
189
190 @item --no-pages
191 Do not generate the full pages.  Useful in combination with
192 @code{--preview}.
193
194 @item -s,--safe
195 Do not trust the @code{.ly} input.
196
197 When LilyPond formatting is available through a web server, either the
198 @code{--safe} or the @code{--jail} option @b{MUST} be passed.  The
199 @code{--safe} option will prevent inline Scheme code from wreaking
200 havoc, for example
201
202 @quotation
203 @verbatim
204 #(system "rm -rf /")
205 {
206   c4^#(ly:export (ly:gulp-file "/etc/passwd"))
207 }
208 @end verbatim
209 @end quotation
210
211 The @code{--safe} option works by evaluating in-line Scheme
212 expressions in a special safe module.  This safe module is derived from
213 GUILE @file{safe-r5rs} module, but adds a number of functions of the
214 LilyPond API.  These functions are listed in @file{scm/@/safe@/-lily@/.scm}.
215
216 In addition, @code{--safe} disallows @code{\include} directives and
217 disables the use of backslashes in @TeX{} strings.
218
219 In @code{--safe} mode, it is not possible to import LilyPond variables
220 into Scheme.
221
222 @code{--safe} does @emph{not} detect resource overuse.  It is still
223 possible to make the program hang indefinitely, for example by feeding
224 cyclic data structures into the backend.  Therefore, if using LilyPond
225 on a publicly accessible webserver, the process should be limited in
226 both CPU and memory usage.
227
228 Note that @code{--safe} will prevent many useful LilyPond snippets from
229 being compiled.  For a softer but secure alternative you can use the
230 @code{--jail} option.
231
232
233 @item -j,--jail=@var{user},@var{group},@var{jail},@var{dir}
234 Run LilyPond in a chroot jail.
235
236 The @code{--jail} option provides a more flexible alternative to
237 @code{--safe} when LilyPond formatting is available through a web
238 server or whenever LilyPond executes externally provided
239 sources.
240
241 The @code{--jail} option works by changing the root of LilyPond to
242 @var{jail} just before starting the actual compilation process.  The user
243 and group are then changed to match those provided, and the current
244 directory is changed to @var{dir}.  This setup guarantees that it is not
245 possible (at least in theory) to escape from the jail.  Note that for
246 @code{--jail} to work LilyPond must be run as root, which is usually
247 accomplished in a safe way using @command{sudo}.
248
249 Setting up a jail is a slightly delicate matter, as we must be sure that
250 LilyPond is able to find whatever it needs to compile the source
251 @emph{inside the jail}. A typical setup comprises the following items:
252
253 @table @asis
254 @item Setting up a separate filesystem
255 A separate filesystem should be created for LilyPond, so that it can be
256 mounted with safe options such as @code{noexec}, @code{nodev}, and
257 @code{nosuid}.  In this way, it is impossible to run executables or to
258 write directly to a device from LilyPond.  If you do not want to create a
259 separate partition, just create a file of reasonable size and use it to
260 mount a loop device.  A separate filesystem also guarantees that LilyPond
261 cannot write more space than it is allowed.
262
263 @item Setting up a separate user
264 A separate user and group (say, @samp{lily}/@samp{lily}) with low
265 privileges should be used to run LilyPond inside the jail.  There should
266 be a single directory writable by this user, which should be passed in
267 @var{dir}.
268
269 @item Preparing the jail
270 LilyPond needs to read a number of files while running.  All these files
271 are to be copied into the jail, under the same path they appear in the
272 real root filesystem.  The entire content of the LilyPond installation
273 (e.g., @file{/usr/share/lilypond})
274 should be copied.
275
276 If problems arise, the simplest way to trace them down is to run
277 LilyPond using @command{strace}, which will allow you to determine which
278 files are missing.
279
280 @item Running LilyPond
281 In a jail mounted with @code{noexec} it is impossible to execute any external
282 program.  Therefore LilyPond must be run with a backend that does not
283 require any such program.  As we already mentioned, it must be also run
284 with superuser privileges (which, of course, it will lose immediately),
285 possibly using @command{sudo}.  It is a good idea to limit the number of
286 seconds of CPU time LilyPond can use (e.g., using @command{ulimit
287 -t}), and, if your operating system supports it, the amount of memory
288 that can be allocated.
289 @end table
290
291
292 @item -v,--version
293 Show version information.
294
295 @item -V,--verbose
296 Be verbose: show full paths of all files read, and give timing
297 information.
298
299 @item -w,--warranty
300 Show the warranty with which GNU LilyPond comes. (It comes with
301 @strong{NO WARRANTY}!)
302 @end table
303
304
305 @subsection Environment variables
306
307
308 @cindex LANG
309 @cindex LILYPONDPREFIX
310
311 @code{Lilypond} recognizes the following environment variables:
312 @table @code
313 @item LILYPONDPREFIX
314 This specifies a directory where locale messages and
315 data files will be looked up by default.  The directory should contain
316 subdirectories called @file{ly/}, @file{ps/}, @file{tex/}, etc.
317
318 @item LANG
319 This selects the language for the warning messages.
320
321 @item LILYPOND_GC_YIELD
322 With this variable the memory footprint and performance can be
323 adjusted. It is a percentage tunes memory management behavior. With
324 higher values, the program uses more memory, with smaller values, it
325 uses more CPU time. The default value is @code{70}.
326
327 @end table
328
329
330 @node Notes for the MacOS X app
331 @section Notes for the MacOS X app
332
333 The scripts (such as lilypond-book, convert-ly, abc2ly, etc.) are also
334 included inside MacOS X .app. They can be run from the command line by
335 invoking them directly, e.g.
336
337 @example
338 @var{path/to}/LilyPond.app/Contents/Resources/bin/convert-ly
339 @end example
340
341 Alternatively, you may add this directory to your path.  Modify (or create)
342 a file called @code{.profile} in your home directory such that it contains
343
344 @example
345 export PATH=$PATH:@var{path/to}/LilyPond.app/Contents/Resources/bin
346 @end example
347
348 @noindent
349 This file should end with a blank line.
350
351 Note that @var{path/to} will generally be @code{/Applications/}.
352
353
354 @node Updating files with convert-ly
355 @section Updating with @command{convert-ly}
356
357 @cindex Updating a LilyPond file
358 @funindex convert-ly
359
360 The LilyPond input syntax is routinely changed to simplify it or improve
361 it in different ways.  As a side effect of this, the LilyPond interpreter
362 often is no longer compatible with older input files.  To remedy this,
363 the program @command{convert-ly} can be used to deal with most of the
364 syntax changes between LilyPond versions.
365
366 It uses @code{\version} statements in the input files to detect the
367 old version number.  In most cases, to upgrade your input file it is
368 sufficient to run@footnote{MacOS X users may execute this command
369 under the menu entry @samp{Compile > Update syntax}.}
370
371 @example
372 convert-ly -e myfile.ly
373 @end example
374
375 If there are no changes to myfile.ly and file called myfile.ly.NEW
376 is created, then myfile.ly is already updated.
377
378 @command{convert-ly} always converts up to the last syntax change handled by
379 it.  This means that the @code{\version} number left in the file is
380 usually lower than the version of @command{convert-ly} itself.
381
382 To upgrade LilyPond fragments in texinfo files, use
383
384 @example
385 convert-ly --from=... --to=... --no-version *.itely
386 @end example
387
388 To upgrade many files at once, combine @code{convert-ly} with
389 standard unix commands.  This example will upgrade all @code{.ly}
390 files in the current directory
391
392 @example
393 for f in *.ly; do convert-ly -e $f; done;
394 @end example
395
396 In general, the program is invoked as follows:
397
398 @example
399 convert-ly [@var{option}]@dots{} @var{file}@dots{}
400 @end example
401
402
403 The following options can be given:
404
405 @table @code
406 @item -e,--edit
407 Do an inline edit of the input file.  Overrides @code{--output}.
408
409 @item -f,--from=@var{from-patchlevel}
410 Set the version to convert from.  If this is not set, @command{convert-ly}
411 will guess this, on the basis of @code{\version} strings in the file.
412
413 @item -n,--no-version
414 Normally, @command{convert-ly} adds a @code{\version} indicator
415 to the output.  Specifying this option suppresses this.
416
417 @item -s, --show-rules
418 Show all known conversions and exit.
419
420 @item --to=@var{to-patchlevel}
421 Set the goal version of the conversion.  It defaults to the latest
422 available version.
423
424 @item -h, --help
425 Print usage help.
426 @end table
427
428
429 @refbugs
430
431 Not all language changes are handled.  Only one output option can be
432 specified.
433
434
435 @c  We might want to make this a completely new section, along with more
436 @c  info about how to upgrade old input files.  -gp
437
438 @ignore
439 Copy and paste from CVS, last updated
440 Aug 18, 2005
441
442 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/lilypond/lily-bugs/bugs/
443 convert-ly.txt?rev=HEAD&content-type=text/plain
444 @end ignore
445 @verbatim
446
447 There are a few things that the convert-ly cannot handle. Here's a list of
448 limitations
449 that the community has complained about.
450
451 This bug report structure has been chosen because convert-ly has a structure
452 that doesn't
453 allow to smoothly implement all needed changes. Thus this is just a wishlist,
454 placed
455 here for reference.
456
457 1.6->2.0:
458  Doesn't always convert figured bass correctly, specifically things like {<
459 >}. Mats' comment on working around this:
460    To be able to run convert-ly
461    on it, I first replaced all occurencies of '{<' to some dummy like '{#'
462    and similarly I replaced '>}' with '&}'. After the conversion, I could
463    then change back from '{ #' to '{ <' and from '& }' to '> }'.
464  Doesn't convert all text markup correctly. In the old markup syntax,
465  it was possible to group a number of markup commands together within
466 parentheses, e.g.
467    -#'((bold italic) "string")
468    This will incorrectly be converted into
469    -\markup{{\bold italic} "string"}
470    instead of the correct
471    -\markup{\bold \italic "string"}
472 2.0->2.2:
473  Doesn't handle \partcombine
474  Doesn't do \addlyrics => \lyricsto, this breaks some scores with multiple
475 stanzas.
476 2.0->2.4:
477  \magnify isn't changed to \fontsize.
478     - \magnify #m => \fontsize #f, where f = 6ln(m)/ln(2)
479  remove-tag isn't changed.
480     - \applyMusic #(remove-tag '. . .) => \keepWithTag #'. . .
481  first-page-number isn't changed.
482     - first-page-number no => printfirst-page-number = ##f
483  Line breaks in header strings aren't converted.
484     - \\\\  as line break in \header strings => \markup \center-align <
485       "First Line" "Second Line" >
486  Crescendo and decrescendo terminators aren't converted.
487     - \rced => \!
488     - \rc => \!
489 2.2->2.4:
490  \turnOff (used in \set Staff.VoltaBracket = \turnOff) is not properly
491 converted.
492 2.4.2->2.5.9
493  \markup{ \center-align <{ ... }> } should be converted to:
494  \markup{ \center-align {\line { ... }} }
495  but now, \line is missing.
496 2.4->2.6
497  Special LaTeX characters such as $~$ in text are not converted to UTF8.
498
499 @end verbatim
500
501
502 @node Reporting bugs
503 @section Reporting bugs
504
505 @cindex bugs
506 @cindex reporting bugs
507
508 If you have input that results in a crash or an erroneous output, then
509 that is a bug.  We try to respond to bug-reports promptly, and fix them as
510 soon as possible.  Help us by sending a defective input file, so we can
511 reproduce the problem. Send the report via:
512
513 @example
514 @uref{http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs}
515 @end example
516
517 A few tips:
518 @itemize @bullet
519
520 @item Try to produce a very small input file which demonstrates the problem;
521 one or two bars is often sufficient to reproduce a bug. The smaller the
522 input file is, the easier it is for us to debug the problem.
523
524 @item Don't forget to tell which version of LilyPond you use!
525
526 @item If possible, use @code{ragged-right} in your example. This makes sure
527 that the bug can be reproduced in all paper sizes.
528 @end itemize
529
530 @ignore
531 @c the bug database is not up to date enough.
532
533 When you've found a bug, have a look at our
534 @uref{http://@/lilypond@/.org/@/bugs/@/v2.8/@/,bug database} to see if
535 it has already been reported.  You could also try to do a few searches
536 on the mailing list for the bug.  Sometimes the bug will have already
537 been reported and a fix or workaround is already known.
538 @end ignore
539
540 Here is an example of a good bug report:
541
542 @verbatim
543 It seems that placement of accidentals is broken.  In the
544 following example, the accidental touches the note head.
545
546 Using Mac OSX 10.3.7, lilypond 2.7.32
547
548 \version "2.7.32"
549 \layout { ragged-right = ##t }
550 \relative c'' {
551    a4 b cis d
552 }
553 @end verbatim
554
555 @lilypond[quote]
556 \layout { ragged-right = ##t }
557 \relative c''{
558   \override Accidental #'extra-offset = #'(1.0 . 0)
559   a4 b cis d
560 }
561 @end lilypond
562
563 @node Error messages
564 @section Error messages
565
566 @cindex error messages
567 Different error messages can appear while compiling a file:
568
569 @table @emph
570 @cindex warning
571
572 @item Warning
573 Something looks suspect.  If you are requesting something out of the
574 ordinary then you will understand the message, and can ignore it.
575 However, warnings usually indicate that something is wrong with the
576 input file.
577
578 @item Error
579 Something is definitely wrong.  The current processing step (parsing,
580 interpreting, or formatting) will be finished, but the next step will
581 be skipped.
582
583 @cindex error
584 @cindex fatal error
585 @item Fatal error
586 Something is definitely wrong, and LilyPond cannot continue.  This
587 happens rarely.  The most usual cause is misinstalled fonts.
588
589 @cindex trace, Scheme
590 @cindex call trace
591 @cindex Scheme error
592 @item Scheme error
593 Errors that occur while executing Scheme code are caught by the Scheme
594 interpreter.  If running with the verbose option (@code{-V} or
595 @code{--verbose}) then a call trace of the offending
596 function call is printed.
597
598 @cindex Programming error
599 @item Programming error
600 There was some internal inconsistency.  These error messages are
601 intended to help the programmers and debuggers.  Usually, they can be
602 ignored.  Sometimes, they come in such big quantities that they obscure
603 other output.  In this case, file a bug-report.
604
605 @item Aborted (core dumped)
606 This signals a serious programming error that caused the program to
607 crash.  Such errors are considered critical.  If you stumble on one,
608 send a bug-report.
609
610
611 @end table
612
613 @cindex errors, message format
614 If warnings and errors can
615 be linked to some part of the input file, then error messages have the
616 following form
617
618 @example
619 @var{filename}:@var{lineno}:@var{columnno}: @var{message}
620 @var{offending input line}
621 @end example
622
623 A line-break is inserted in the offending line to indicate the column
624 where the error was found.  For example,
625
626 @example
627 test.ly:2:19: error: not a duration: 5:
628   @{ c'4 e'5
629              g' @}
630 @end example
631
632 These locations are LilyPond's best guess about where the warning or
633 error occurred, but (by their very nature) warnings and errors occur
634 when something unexpected happens.  If you can't see an error in the
635 indicated line of your input file, try checking one or two lines
636 above the indicated position.
637
638
639 @node Editor support
640 @section Editor support
641
642 @cindex editors
643 @cindex vim
644 @cindex emacs
645 @cindex modes, editor
646 @cindex syntax coloring
647 @cindex coloring, syntax
648
649 There is support from different editors for LilyPond.
650
651 @table @asis
652 @item Emacs
653 Emacs has a @file{lilypond-mode}, which provides keyword
654 autocompletion, indentation, LilyPond specific parenthesis matching
655 and syntax coloring, handy compile short-cuts and reading LilyPond
656 manuals using Info.  If @file{lilypond-mode} is not installed on your
657 platform, then read the
658 @ifhtml
659 @uref{source/Documentation/topdocs/INSTALL.html,installation instructions}.
660 @end ifhtml
661 @ifnothtml
662 installation instructions.
663 @end ifnothtml
664
665 @item VIM
666
667 For @uref{http://@/www@/.vim@/.org,VIM}, a @file{vimrc} is supplied, along
668 with syntax coloring tools.  For more information, refer to the
669 @ifhtml
670 @uref{source/Documentation/topdocs/INSTALL.html,installation instructions}.
671 @end ifhtml
672 @ifnothtml
673 installation instructions.
674 @end ifnothtml
675
676
677 @item JEdit
678
679 The @uref{http://@/www@/.jedit@/.org@/,jEdit} editor has a LilyPond plugin.
680 This plugin includes a DVI viewer, integrated help and viewing via
681 GhostScript.  It can be installed by doing @key{Plugins > Plugin
682 Manager}, and selecting @code{LilyTool} from the @key{Install} tab.
683
684 @end table
685
686 All these editors can be made to jump into the input file to the source
687 of a symbol in the graphical output.  See @ref{Point and click}.
688
689
690 @node Point and click
691 @section Point and click
692 @cindex point and click
693
694
695 Point and click lets you find notes in the input by clicking on them
696 in the PDF viewer.  This makes it easier to find input that causes
697 some error in the sheet music.
698
699 When this functionality is active, LilyPond adds hyperlinks to the PDF
700 file. These hyperlinks are sent to the web-browser, which opens a
701 text-editor with the cursor in the right place.
702
703 To make this chain work, you should configure your PDF viewer to
704 follow hyperlinks using the @file{lilypond-invoke-editor} script
705 supplied with LilyPond.
706
707 For Xpdf on Unix, the following should be present in
708 @file{xpdfrc}@footnote{On unix, this file is found either in
709 @file{/etc/xpdfrc} or as @file{.xpdfrc} in your home directory.}
710
711 @example
712 urlCommand     "lilypond-invoke-editor %s"
713 @end example
714
715 The program @file{lilypond-invoke-editor} is a small helper
716 program. It will invoke an editor for the special @code{textedit}
717 URIs, and run a web browser for others.  It tests the environment
718 variable @code{EDITOR} for the following patterns,
719
720 @table @code
721 @item emacs
722   this will invoke
723 @example
724 emacsclient --no-wait +@var{line}:@var{column} @var{file}
725 @end example
726 @item vim
727   this will invoke
728 @example
729 gvim --remote +:@var{line}:norm@var{char} @var{file}
730 @end example
731
732 @item nedit
733 this will invoke
734 @example
735   nc -noask +@var{line} @var{file}'
736 @end example
737 @end table
738
739 The environment variable @code{LYEDITOR} is used to override this. It
740 contains the command line to start the editor, where @code{%(file)s},
741 @code{%(column)s}, @code{%(line)s} is replaced with the file, column
742 and line respectively. The  setting
743
744 @example
745 emacsclient --no-wait +%(line)s:%(column)s %(file)s
746 @end example
747
748 @noindent
749 for @code{LYEDITOR} is equivalent to the standard emacsclient
750 invocation.
751
752
753 @cindex file size, output
754
755 The point and click links enlarge the output files significantly. For
756 reducing the size of PDF and PS files, point and click may be switched
757 off by issuing
758
759 @example
760 #(ly:set-option 'point-and-click #f)
761 @end example
762
763 @noindent
764 in a @file{.ly} file.  Alternately, you may pass this as an command-line
765 option
766
767 @example
768 lilypond -dno-point-and-click file.ly
769 @end example
770