Point and click lets you find notes in the input by clicking on them in the Xdvi window. This makes it easier to find input that causes some error in the sheet music.
To use it, you need the following software:
The most obvious choice is Xdvi1, version 22.36 or newer. It is available from ftp.math.berkeley.edu.
Most TeX distributions ship with xdvik, which is always a few
versions behind the official Xdvi. To find out which Xdvi you are
running, try xdvi -version
or xdvi.bin -version
.
Xdvi must be configured to find the TeX fonts and music fonts. Refer to the Xdvi documentation for more information.
To use point-and-click, add one of these lines to the top of your .ly file:
#(ly:set-point-and-click 'line)
When viewing, Control-Mousebutton 1 will take you to the originating spot in the .ly file. Control-Mousebutton 2 will show all clickable boxes.
If you correct large files with point-and-click, be sure to start correcting at the end of the file. When you start at the top, and insert one line, all following locations will be off by a line.
For using point-and-click with Emacs, add the following In your Emacs startup file (usually ~/.emacs):
(server-start)
Make sure that the environment variable XEDITOR is set to
emacsclient --no-wait +%l %f
If you use XEmacs instead of Emacs, insert (gnuserve-start)
in
your .emacs file, and set XEDITOR
to
gnuclient -q +%l %f
.
For using Vim, set XEDITOR
to gvim --remote +%l %f
, or
use this argument with Xdvi's -editor
option.
For using NEdit, set XEDITOR
to nc -noask +%l %f
, or
use this argument with Xdvi's -editor
option.
It can also make your editor jump to the exact location of the note
you clicked. This is only supported on Emacs and VIM. Users of Emacs version
20 must apply the patch emacsclient.patch. Users of version 21
must apply server.el.patch (version 21.2 and earlier). At the
top of the .ly
file, replace the set-point-and-click
line
with the following line:
#(ly:set-point-and-click 'line-column)
and set XEDITOR
to emacsclient --no-wait +%l:%c %f
. Vim
users can set XEDITOR
to gvim --remote +:%l:norm%c| %f
.
[1] KDVI also provides src specials, but does not use the kpathsea library, so it cannot find LilyPond font and PostScript library files.
This page is for LilyPond-2.5.11 (development-branch).