es as required.
</blockquote>

<p>
<b>Q.</b> 
I have problems using LaTeX <code>\ifthenelse</code> with noweb---
code chunks inside an <code>\ifthenelse</code> are not typeset correctly and
a <code>%def</code> directive causes (La)TeX groups to be unbalanced.  

<p><blockquote><b>A.</b> 
Noweb code chunks are ``moving arguments'' (like <code>\verb</code>) and can't be
arguments to macros.  I suggest you combine  <code>\ifthenelse</code> with the noweb
'elide' filter to remove the offending code chunks.
</bl