[prev in list] [next in list] [prev in thread] [next in thread]
List: lilypond-user
Subject: Re: Lilypond-Book ignores \iffalse (How to uncomment?)
From: Reinhold Kainhofer <reinhold () kainhofer ! com>
Date: 2012-10-05 13:54:02
Message-ID: 506EE67A.7080209 () kainhofer ! com
[Download RAW message or body]
On 29/09/2012 23:51, Francisco Vila wrote:
> 2012/9/29 Hartmut Leister <haleister@gmx.de>:
>> 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, reinhold@kainhofer.com, 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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic