mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] hidden text


Chronological Thread 
  • From: "Sam Liddicott" <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] hidden text
  • Date: Tue, 02 Aug 2011 13:04:27 +0100
  • Envelope-to:
  • Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAAXNSR0IArs4c6QAAADxQTFRF NTdQY2Z/i286eHFugnNXoJBwm5GCs5VeoqO0ua+fwLCQ4c2q19C81NDF4eLr/unQ/PTf/fXW+/rq /f/7XKo76wAAAAlwSFlzAAALEwAACxMBAJqcGAAAAi9JREFUSMetloGSqyAMRVsFNAQkxP//15cE 62rFdt/MZqbTVu/hBhLEx/qf8fgDIAN455wHyPk7wCIe9nA+fwGSH87hgD8AHPfRpy2GwdMtcBh+ mg4Ech9Ih+RNixJKDLEL0GF8VLkSojePHrDlryNijbFW8zBg8PUKbBOI6D1WCV5Rf2DzxCtgBlMs tRRVW5LyVW3ew1TfAZZ6RcQicpb4yZmaC74DJADK6BdATOrUAbJzsZie+K22ZnEBknNYysvhVH6u 1X8CqAe4DuANoPoOrAbsHXUARJ5knc5z4EyyTnHoAqj7xvkYIdk65AwhyEZKMusOIDV2QQQaCnDQ gBiDR3RdIEb5CBESt2wgQJI0Yx/Agphg1MgNsD+QkszM9wHVPx/PeQOW+fmcR9DF8+4CyCJhCuP8 fDzmBbLqs8JzMODqYNfDvKhoGYM2lDosy5jlRozccRAgrPM8iygQS3Mv87IugUgKlC7NZ6liuy4r uresVq5QuQAr09ZKEga8OkluyKXeQ6Bs3SrtqgC1pWLNqAfwDhBnB+sK8OrVL4D4h1B4zWPWhJhu gPUHKA5EwSMYUMsdQK+UKDhIOTSHeg+8HCoTOGtB/gwcl4mSdGybwXegPWhM/RHYKwchkckhUNMX 6j7ueQNScLbZZOPRxaADyO2UQCJpl7wbnE6gQ+ksWjpngxOwF1tF5ecP3R6KB+AQxPfHLncQ+nKw 06fhu68OTIfJ869eTtg22l+9zfwDK3mKl5BFHMYAAAAASUVORK5CYII=


I think you made an error in your if clause by referring to <mostrar-dudas> where you probably meant <value|mostrar-dudas> - otherwise it works fine for me, and if not for you then you need to give an example document that uses the macro duda.

<new-remark|dudaux|Duda>

<assign|mostrar-dudas|true>

<assign|nada|>

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

<assign|duda2|<macro|texto|<compound|<if|<value|mostrar-dudas>|dudaux|nada>|<arg|texto>>>>

hello

hello

<duda|sometssdf sdf sad f hin>and more<duda|somsdf sadf safdethin>and mode

Possibly your use of duda as documents as an argument.

On 02/08/11 10:22, Pablo S. Casas 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


--
[FSF Associate Member #2325] <http://www.fsf.org/register_form?referrer=2325>

<http://www.openrightsgroup.org/>



Archive powered by MHonArc 2.6.19.

Top of page