lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

success with lilypond-book


From: Archer Endrich
Subject: success with lilypond-book
Date: Sat, 7 Aug 2021 18:31:25 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0

To David, Knute and Carl,

I am happy to report success with running lilypond-book on Windows 10.  For users' info, these are the steps I took, as guided by David, Knute and Carl.  It is hard to tell at this point whether it would have worked if one or the other of these steps had been omitted.

a) downloaded and installed Python version 3.9 (although 3.6 seemed to be on the system already) b) downloaded and installed MiKTeX  (i.e., pdflatex now on my Windows 10 computer) c) rearranged the LilyPond files to be inside a folder named LilyPond;  thus the file arrangement became: C:\Lilypond2221\LilyPond\user\bin;  then edited the system path accordingly.  My full system path now looks like this:

C:\P3L\lpbk>path
PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Lilypond2221\LilyPond\usr\bin;C:\cdpr71ae\_cdp\_cdprogs;C:\Users\Archer\AppData\Local\Microsoft\WindowsApps;C:\MiKTeX\miktex\bin\x64\

d) associated Python with lilypond-book.py - The link Knute sent about this was very helpful: https://www.digitaltrends.com/computing/how-to-change-file-associations/


I first ran lilypond-book manually direct from the command line like this:
>python C:\Lilypond2221\LilyPond\user\bin\lilypond-book.py --output=out -- pdf ALMdurasnumber.lytex
[msg:  compiling ALMdurasnumber.lytex ... writing ALMdurasnumber.tex]
>cd out
>pdflatex ALMdurasnumber.tex
[msg:  output written on ALMdurasnumber.pdf]

I then tried running from a batch file in various ways:
Trial 1:
C:\Lilypond2221\LilyPond\user\bin\lilypond-book.py --output=out -- pdf ALMdurasnumber.lytex
cd out
pdflatex ALMdurasnumber.tex
cd ..\
This was successful.

Trial 2: the same, but without the .py extension on lilypond-book
This was successful.

Trial 3: the same, but without the explicit path to lilypond-book
This was also successful.

So I'm up and running with lilypond-book (with my batchfile as I had been writing it on Windows 7) thanks to all the various help/clues that were contributed.  The final batch file is:

C:\lilypond-book --output=out --pdf ALMdurasnumber.lytex
cd out
pdflatex ALMdurasnumber.tex
cd ..\


I hope this information helps others who might find themselves in a situation similar to mine.

Huge thanks!
Archer




reply via email to

[Prev in Thread] Current Thread [Next in Thread]