[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Lilypond-Book ignores \iffalse (How to uncomment?)
From: |
Reinhold Kainhofer |
Subject: |
Re: Lilypond-Book ignores \iffalse (How to uncomment?) |
Date: |
Fri, 05 Oct 2012 15:54:02 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120827 Thunderbird/15.0 |
On 29/09/2012 23:51, Francisco Vila wrote:
> 2012/9/29 Hartmut Leister <address@hidden>:
>> Hello Lilyponders,
>>
>> lilypond-book is ignoring the block comments I'm using in LaTeX-Code
>> with \iffalse + \fi, thus compiling the lines in between.
>> How can I uncomment a set of lines?
>> Those uncommented lines should not be compiled by pdfLatex and lilypond-book
>>
>> I'm writing a song book and for error finding I dont't always want to
>> compile the whole book...
> As far as I know, lilypond-book always processes the whole file. What
> I'd do in this case, is to put the part which is to be handled
> differently in a separate file. Include this file with \include but
> don't process it with lilypond-book. Instead, process all other files.
lilypond-book is able to handle block comments properly (e.g. <!-- ...
--> in html, @c in texinfo, etc.)
However, so far lilypond-book did not recognize \iffalse sections as
block comments, because \iffalse is only a workaround for the missing
concept of block comments in LaTeX. Nonetheless, I've now created a
patch that makes lilypond-book recognize \iffalse sections as block
comments and ignore all snippets inside \iffalse:
http://code.google.com/p/lilypond/issues/detail?id=2875
Cheers,
Reinhold
--
------------------------------------------------------------------
Reinhold Kainhofer, address@hidden, http://www.kainhofer.com
* Financial & Actuarial Math., Vienna Univ. of Technology, Austria
* http://www.fam.tuwien.ac.at/, DVR: 0005886
* Edition Kainhofer, Music Publisher, http://www.edition-kainhofer.com
- Re: Lilypond-Book ignores \iffalse (How to uncomment?),
Reinhold Kainhofer <=