On Tue, Oct 15, 2019 at 7:16 PM Urs Liska <li...@openlilylib.org> wrote:

> Simon has already given a very clear answer, but I want to add some more
> examples that may help you understanding the context and a part of your
> question that may not be fully covered yet.
>
The following is making it clear, i have 5 questions below.

>
> Say you have a document
>   C:\myscores\alleluja.ly
> which contains a line
>   \include "my-config.ily"
> (note that the file extensions are not significant but only *conventions*,
> .ly typically indication LilyPond documents and .ily *i*nclude ly files)
>
> If you navigate to C:\myscores and compile this file using
>   lilypond-windows.exe alleluja.ly
> LilyPond will look for the file my-config.ily first in the directory of
> the main file (C:\myscores) and then in some directories in the LilyPond
> installation itself.
>
> However, if you compile using
>   lilypond-windows.exe -I C:\my-lilypond-library alleluja.ly
> then LilyPond will *additionally* look for the include file in the
> directory C:\my-lilypond-library.
>
> If the \include statement references not simply a file but a relative path
> then the include file will be looked for in all item of the search path:
>   \include "lyriclib/hymns.ily"
> would then find files like
>   C:\myscores\lyriclib\hymns.ily
>   C.\my-lilypons-library\lyriclib\hymns.ily
>
1, Why would you do this?

2, What stops you from searching the whole file system?
  This is how openLilyLib is loaded. If you have oll-core stored so that
  C:\openLilyLib\oll-core\package.ily
  is a file and call LilyPond with
  lilypond-windows.exe -I C:\openLilyLib alleluja.ly
  then
  \include "oll-core/package.ily"
  will find the file because the search path C:\openLilyLib plus the
relative path given in the \include statement "oll-
  core/package.ily" will be joined to C:\openLilyLib\oll-core\package.ily

1, Using the include: \include “C:\openLilyLib\oll-core\package.ily” in
alleluja.ly .   Would lilypond-    windows.exe  alleluja.ly work?

2, If not, why?

3,Before you stated “Then you need to add C:\openLilyLib to LilyPond’s
search path”; is this what you mean:   lilypond-windows.exe -I
C:\openLilyLib alleluja.ly


Thank you, ƒg


HTH
Urs

15. Oktober 2019 17:16, "Freeman Gilmore" <freeman.gilm...@gmail.com>
schrieb:

> On Tue, Oct 15, 2019 at 10:34 AM Urs Liska <li...@openlilylib.org> wrote:
>
>> 15. Oktober 2019 16:28, "Freeman Gilmore" <freeman.gilm...@gmail.com>
schrieb:
>>
>>> On Tue, Oct 15, 2019 at 1:50 AM Urs Liska <li...@openlilylib.org> wrote:
>>>
>>>> ...
>>>>
>>>> So, for openLilyLib this means:
>>>>
>>>> * You need *one* root directory where all openLilyLib packages will be
located *below*, say
>>>> C:\openLilyLib
>>>> * Within that you need to have (at least) the oll-core package, in
C:\openLilyLib\oll-core (so
>>>> you'll have a file C:\openLilyLib\oll-core\package.ily)
>>>> * Then you need to add C:\openLilyLib to LilyPond's search path
>>> I have seen this in other places; were do I do this? Is this an
Environment Variable setting, if
>> so
>>> how? How do i add C:\openLilyLib to LilyPond's search path? Else were
most is explained but this
>>> but this step is left with no clue.
>>> Thank you, ƒg
>>>
>>
>> For example call LilyPond with (something like (adjust to the Windows
environment)
>> lilypond-windows.exe -I C:\openLilyLib path\to\document.loy
>
> See if I have it: I run lilypond-windows.exe then i enter  -I
C:\openLilyLib path\to\document.loy .
> this adds the C:\openLilyLib directory to the file document.loy ?
>
> Now if I use the include with the path C:\openLilyLib , dose Lilypond
search all the directories
> and subdirectories of openLilyLib or do i need an include
...\directory\file for each file I use?
>
> If this is getting to be to much to ask on basic let me know?
> Thank you, ƒg
>
>> When using Frescobaldi, go to Edit=>Preferences=>LilyPond Preferences
and add the directory to the
>> "LilyPond include path:" section at the bottom of the page.

<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.
www.avg.com
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to