[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fwd: [Feature request] attach lilypond code in pdf.
From: |
David Kastrup |
Subject: |
Re: Fwd: [Feature request] attach lilypond code in pdf. |
Date: |
Mon, 09 Jul 2012 14:30:03 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
-Eluze <address@hidden> writes:
> Phil Holmes-2 wrote:
>>
>>
>>>
>>> the basic function in LilyPond is given with
>>>
>>> \include "test.ly"
>>> \markup \verbatim-file #"test.ly"
>>>
>>> now I don't know what you mean with automatically - should it be attached
>>> every time? on a new page, in another (pdf) file?
>>>
>>> or did you mean something else?
>>>
>>> Eluze
>>
>>
>> I do think this would do what the user wants, if we did not need to put
>> the
>> filename in explicitly. Is there any way of getting the filename into a
>> variable?
>>
>>
>
> there is a snippet that derives the filename from the command line:
> http://lsr.dsi.unimi.it/LSR/Item?id=197 File Information but it doesn't
> work with 2.15.41 and also for 2.14.2 the filename may not have blanks.
What's wrong with using input-file-name ? This should work for the main
input file. If you need more than that, you can likely work with
something like
#(read-hash-extend #\< (lambda (c p) (port-filename p)))
#(display #<)
This will not work before 2.15.twentyish (when I decided that the
terrible error messages for Scheme code were not doing anybody a favor,
and made port-filename, port-line, and port-column point to sensible
locations).
--
David Kastrup
- Fwd: [Feature request] attach lilypond code in pdf., Colin Hall, 2012/07/08
- Re: Fwd: [Feature request] attach lilypond code in pdf., Bernard Hurley, 2012/07/08
- Re: Fwd: [Feature request] attach lilypond code in pdf., -Eluze, 2012/07/08
- Re: Fwd: [Feature request] attach lilypond code in pdf., David Kastrup, 2012/07/08
- Re: Fwd: [Feature request] attach lilypond code in pdf., Phil Holmes, 2012/07/09
- Re: Fwd: [Feature request] attach lilypond code in pdf., -Eluze, 2012/07/09
- Re: Fwd: [Feature request] attach lilypond code in pdf.,
David Kastrup <=
- Re: Fwd: [Feature request] attach lilypond code in pdf., -Eluze, 2012/07/09
- Re: Fwd: [Feature request] attach lilypond code in pdf., David Kastrup, 2012/07/09
- Re: Fwd: [Feature request] attach lilypond code in pdf., Reinhold Kainhofer, 2012/07/09
- Re: Fwd: [Feature request] attach lilypond code in pdf., Jan Nieuwenhuizen, 2012/07/09
- Re: Fwd: [Feature request] attach lilypond code in pdf., Janek WarchoĊ, 2012/07/09