Determine the including file

2016-01-22 Thread Urs Liska
If I have % file a.ly \include "b.ily" % file b.ily \include "c.ily" % file c.ily can I somehow refer to file b.ily from file c.ily? In other words: If b.ily includes c.ily can I know from within c.ily that it was b.ily who included me? I suppose not, but one should never give up without

Re: Determine the including file

2016-01-22 Thread N. Andrew Walsh
Hi Urs, I'm not sure about support for this within Lily/Frescobaldi, but I know a similar mechanism exists in Lyx. At the least, you can issue commands to a parent document from within the editing environment for the child document. Not sure how useful it would be, but LaTeX has a package

Re: Determine the including file

2016-01-22 Thread Chris Yate
On 22 January 2016 at 10:44, Urs Liska wrote: > If I have > > % file a.ly > \include "b.ily" > > % file b.ily > \include "c.ily" > > % file c.ily > > can I somehow refer to file b.ily from file c.ily? > In other words: If b.ily includes c.ily can I know from within c.ily >

Re: Determine the including file

2016-01-22 Thread karl
Urs Liska: ... > In other words: If b.ily includes c.ily can I know from within c.ily > that it was b.ily who included me? ... Perhaps something like, aria.ly: \version "2.18.0" \include "score_glb.ily" aria_ily = ##f pitch_voa = as, pitch_vob = \pitch_voa %pitch_vaa = \pitch_voa %pitch_vab =

Re: Determine the including file

2016-01-22 Thread Simon Albrecht
On 22.01.2016 12:38, k...@aspodata.se wrote: I don't know of any way to check if aria_ily is defined or not. Tried with #(if (defined? aria_ily) (display "Yes\n") (display "no\n")) but it gives: aria.ly:15:2: error: GUILE signaled an error for the expression beginning here # (if (defined?

Re: Determine the including file

2016-01-22 Thread Urs Liska
Am 22.01.2016 um 12:04 schrieb Chris Yate: > On 22 January 2016 at 10:44, Urs Liska > wrote: > > If I have > > % file a.ly > \include "b.ily" > > % file b.ily > \include "c.ily" > > % file c.ily > >

Re: Determine the including file

2016-01-22 Thread Chris Yate
On 22 January 2016 at 11:15, Urs Liska wrote: > > What I'm thinking about is the following: > > I have the file openlilylib.ily, which is the main entry point to > openLilyLib. > I'm currently changing the way how openLilyLib is organized. Previously > you loaded