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