mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] hidden text


Chronological Thread 
  • From: Miguel de Benito Delgado <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] hidden text
  • Date: Tue, 2 Aug 2011 14:37:35 +0200
  • Authentication-results: spamcheck-ng1.citic74.net; dkim=pass (1024-bit key) header.i=@gmail.com; dkim-asp=none

Sorry, but your code doesn't work for me and I'm not sure I understand what you expect it to do
  1. Should your dudas be hidden when mostrar-dudas is false, 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.
  2. Or should rather just the text "Duda" be hidden? Then I'd go for:

    <assign|duda3|<macro|texto|<if|<value|mostrar-dudas>|<dudaux|<arg|texto>>|<arg|texto>>>>
Best,
________________
Miguel de  Benito.


On Tue, Aug 2, 2011 at 11:22, Pablo S. Casas <address@hidden> wrote:
Hi TeXmacs users:

  I'm using TeXmacs-1.0.7.10 and I'm trying to write a macro "duda"
like this:

 <new-remark|dudaux|Duda>

 <assign|mostrar-dudas|false>

 <assign|nada|>

 <assign|duda|<\macro|texto>
   <compound|<if|<mostrar-dudas>|dudaux|nada>|<arg|texto>>
 </macro>>

  It shows a remark when "mostrar-dudas = true" and hides the remark
when it is false. My problem is when "mostrar-dudas = false" that the
macro introduces a new line starting a new paragraph. Is there a way
for not introducing not even a single piece of text? I've tried many
variants without success. I also have attempted with folding, but
likewise they add at least one line when they are hidden. I appreciate
any help on this simple, but annoying problem.

                                       Pablo S. Casas




Archive powered by MHonArc 2.6.19.

Top of page