LaTeX forum ⇒ GeneralHi and request for help integrating Frescobaldi in texworks

LaTeX specific issues not fitting into one of the other forums of this category.
Posts: 2
Joined: Mon Feb 24, 2014 11:19 am

Hi and request for help integrating Frescobaldi in texworks

Postby dodgyg1 » Mon Feb 24, 2014 12:25 pm

Hi guys,

I am a sixty year old newbie from Coventry UK slowly getting my head around Texworks. I am very impressed with the power of Tex. I have successfully managed to get my first lot of code in Texworks to compile and it's looking good. I also have some code in Frescobaldi that works. I now need to get my lilypond code from Frescobaldi to integrate within my Texworks code.

This is what I tried within Texworks.

  1. \documementclass{article}
  2. \usepackage(lilypond}
  3. \begin{document}
  5. \begin{lilypond}
  7. \end{lilypond}
  8. \end{document}

The compiler throws up the error message relating to the second line above
  1. ! LaTeX Error: File lilypond.sty not found

I have spent hours on the internet trying to find out what's going wrong to no avail. Any help would be much appreciated. Thanks in anticipation.

Best regards,

Last edited by cgnieder on Mon Feb 24, 2014 8:31 pm, edited 1 time in total.
Reason: added code markup


User avatar
Site Moderator
Posts: 3763
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Mon Feb 24, 2014 4:16 pm

The package file is missing from your system, i guess you have a basic MikTeX installed. You can use your distributions package manager to istall missing packages. Miktex can install those on the fly as well.

Btw: Please use the code-button to markup code in your posts.
In later questions, we all will find a minimal working example usefull. Please see MWE for more information.

Best regards and welcome to the board
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Posts: 2
Joined: Mon Feb 24, 2014 11:19 am

Postby dodgyg1 » Tue Feb 25, 2014 2:38 pm

Thanks Johannes_B for your reply. I guessed that might have been the problem. I had assumed that lilypond was on the system to be able to run Frescobaldi but that Tex was not pointing to the file. I am still baffled as to how to get Tex to see the file. I am running ubuntu 13.10 as my operating system.

I did find these lines of code on the internet with reference to the missing lilypond.sty file but there was no indication of where or how it should be used. I have entered it in my code but it is just throwing up all kinds of errors.

  1. \NeedsTeXFormat{LaTeX2e}
  2. \ProvidesPackage{lilypond}
  4. \RequirePackage{xkeyval}
  5. \RequirePackage{graphicx}
  7. \newlength{\lilypond@staffsize}
  8. \newlength{\lilypond@betweensystemspace}
  9. \setlength{\lilypond@betweensystemspace}{20mm}
  10. \DeclareOptionX{staffsize}[0]{\setlength{\lilypond@staffsize}{#1pt}}
  11. \DeclareOptionX{between-system-space}[20]{%
  12. \setlength{\lilypond@betweensystemspace}{#1mm}}
  13. \ProcessOptionsX
  15. \newcommand{\lilypondfile}[1]{%
  16. \newwrite\conffile
  17. \immediate\openout\conffile\jobname.lil
  18. \immediate\write\conffile{[General]}
  19. \immediate\write\conffile{filename:}
  20. \immediate\write\conffile{columnwidth: \the\columnwidth}
  21. \immediate\write\conffile{}
  22. \immediate\write\conffile{[Options]}
  23. \immediate\write\conffile{staffsize: \the\lilypond@staffsize}
  24. \immediate\write%
  25. \conffile{between-system-space: \the\lilypond@betweensystemspace}
  26. \immediate\closeout\conffile
  27. \par
  28. \IfFileExists{#1.eps}{\noindent\includegraphics{#1}}{}
  29. \par
  30. }

I hope there is someone out there who can make sense of this code and maybe explain to me what is going on. I am assuming that this code should all go in my preamble before the \begin{document} code??

Best regards,


Posts: 133
Joined: Sat Feb 25, 2012 6:12 pm

Postby hugovdberg » Tue Feb 25, 2014 4:52 pm

I don't have any experience using lilypond, but these two pages seem to me to provide all info you need to compile lilypond files using ubuntu: ... ian-linux/

These pages never mention using a package called lilypond.sty, but I guess you found this .sty file on github. If you want to use this package you need to save it in a place where latex can find it, a great manual for this is on
Ubuntu 13.10 + Tex Live 2013 + Texmaker / Windows 7 Pro + MikTex 2.9 + TexnicCenter / Android 4.3 + TexPortal + DroidEdit

Return to “General”

Who is online

Users browsing this forum: No registered users and 4 guests