On 02/08/11 13:37, Miguel de Benito Delgado wrote:
Sorry, but your code doesn't work for me and I'm not sure I understand what you expect it to do1. Should your dudas be hidden when mostrar-dudas is false,
2. Or should rather just the text "Duda" be hidden? Then I'd go for:
including the body of the duda (i.e. the remark itself)?
Then I'd do something like:
<assign|duda2|<macro|texto|<if|<value|mostrar-dudas>|<dudaux|<arg|texto>>|<value|nada>>>>
And no unnecessary paragraphs are inserted.
<assign|duda3|<macro|texto|<if|<value|mostrar-dudas>|<dudaux|<arg|texto>>|<arg|texto>>>>
Blatant <if> clauses like this cause problems for a macro that wants to act both as a block macro and an inline macro, hence the tricks with compound
Sam
Archive powered by MHonArc 2.6.19.