<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Feb 28, 2010, at 3:23 PM, Fr. Michael Gilmary wrote:</div><blockquote type="cite"><div><font class="Apple-style-span" color="#000000"><br></font></div><div><font class="Apple-style-span" color="#000000"><br></font><br>Hi Raphael:<br><br>Here's a sample of your original = document.tex with a couple changes (using the ifxetex package, etc --- change the fonts to suit your needs). Also attached is an engine you can run via TeXShop if you're on Mac (copy it to ~/Library/TeXShop/Engines/ and it should appear in the drop down box for engines ... or you can use the preliminary %!TEX TS-program = &nbsp;Lilypond-XeLaTeX line as in the included file). Otherwise, just use the lilypond-book as you have learned and it will do as you need.<br><br>You might have to look into the engine file to set the path to your Lilypond.app.<br></div></blockquote><div><br></div>Yes. &nbsp;With a default installation of LilyPond the LILYPONDFOLDER should be set to just /Applications not /Applications/LilyPond/#current</div><div><br></div><div>Alan</div><div><br></div><div><br><blockquote type="cite"><div><br><br><br>HTH.<br><br><br><br>-- <br>United in adoration of Jesus, <br><br><br>fr. michael gilmary, mma<br><br>Most Holy Trinity Monastery<br>67 Dugway Road<br>Petersham, MA 01366-9725<br><br><br>#!/bin/tcsh<br># Updated on 2006/10/17 - Thanks to Marc Schonbrun!<br>#<br>##########################<br># HOW TO USE THIS FILE: &nbsp;#<br>##########################<br>#<br># 0) Set the variable LILYPONDFOLDER below to the absolute path<br># &nbsp;&nbsp;&nbsp;of the folder containing the Lilypond application.<br># &nbsp;&nbsp;&nbsp;For example, if you have put the Lilypond app in a folder<br># &nbsp;&nbsp;&nbsp;called Music inside the Applications folder, the path<br># &nbsp;&nbsp;&nbsp;is /Applications/Music and the line below must read<br>#<br># &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set LILYPONDFOLDER = /Applications/Music<br>#<br># &nbsp;&nbsp;&nbsp;If Lilypond is installed in the Applications folder,<br># &nbsp;&nbsp;&nbsp;then just skip this step.<br>#<br>set LILYPONDFOLDER = /Applications/Lilypond/#current <br>set path = ($path $LILYPONDFOLDER/LilyPond.app/Contents/Resources/bin/)<br><br>#<br># 1) Rename this file by dropping the .txt suffix<br># &nbsp;&nbsp;&nbsp;and put it into your Library/TeXShop/Engines folder.<br>#<br># 2) Run the Terminal application (which you find in the Utilities folder)<br># &nbsp;&nbsp;&nbsp;and, in the Terminal window, type:<br>#<br># &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cd &nbsp;~/Library/TeXShop/Engines<br>#<br># &nbsp;&nbsp;&nbsp;then, press the Enter key and type:<br>#<br># &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;chmod +x Lilypond-LaTeX.engine<br>#<br># &nbsp;&nbsp;&nbsp;and press Enter again. The above command makes this script executable.<br>#<br># 3) Switch to TeXShop, open a LaTeX file with Lilypond code,<br># &nbsp;&nbsp;&nbsp;choose the Lilypond-LaTeX engine and typeset!<br>#<br>#######<br># HINT<br>#######<br># <br># Write:<br>#<br># &nbsp;&nbsp;&nbsp;%!TEX TS-program = Lilypond-LaTeX<br>#<br># at the very beginning of your document: this will let TeXShop<br># automatically switch to the right engine!<br>#<br>#######<br># NOTE about including pictures with \includegraphics:<br>#######<br>#<br># you may want to include the following in the preamble of your<br># source file:<br>#<br># &nbsp;&nbsp;&nbsp;\usepackage{graphicx}<br># &nbsp;&nbsp;&nbsp;\graphicspath{{../}}<br>#<br># since the generated LaTeX file is put into a subdirectory<br># of the current directory.<br>#<br># In general, if your directory structure is as follows<br>#<br># &nbsp;&nbsp;MyLilyPondDocs/<br># &nbsp;&nbsp;MyLilyPondDocs/lilybook.lytex<br># &nbsp;&nbsp;MyLilyPondDocs/MyPictures/<br># &nbsp;&nbsp;MyLilyPondDocs/MyPictures/pic1.eps<br># &nbsp;&nbsp;...<br># &nbsp;&nbsp;MyLilyPondDocs/MyPictures/picn.eps<br>#<br># &nbsp;&nbsp;the preamble of lilybook.lytex should contain:<br>#<br># &nbsp;&nbsp;&nbsp;\graphicspath{{../MyPictures/}}<br>#<br># The trailing slash "/" is required!<br>#<br><br># Create directory to put all temporary stuff<br>mkdir -p "$1:r"-out/<br>cd "$1:r"-out<br>rm "$1:r".tex<br>cd ../<br><br>if ({ lilypond-book -I "$1:r"-out --output="$1:r"-out --pdf &nbsp;"$1" }) then<br><br> &nbsp;cd "$1:r"-out<br><br> &nbsp;if ({ xelatex --output-driver="xdvipdfmx -qq -E" "$1" }) then<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mv "$1:r".pdf .. <br> &nbsp;endif<br>endif<br>#cp "$1:r".pdf ../<br>#open "$1:r".pdf<br><span>&lt;music.tex&gt;</span><br><br>--------------------------------------------------<br>Subscriptions, Archive, and List information, etc.:<br> &nbsp;<a href="http://tug.org/mailman/listinfo/xetex">http://tug.org/mailman/listinfo/xetex</a><br></div></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Lucida Grande'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--&nbsp;</div><div>Alan Munn</div><div><a href="mailto:amunn@gmx.com">amunn@gmx.com</a></div><div><br></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"> </div><br></body></html>