mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] hidden text


Chronological Thread 
  • From: "Pablo S. Casas" <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] hidden text
  • Date: Wed, 03 Aug 2011 13:06:27 +0200 (CEST)

From: "Sam Liddicott" <address@hidden>
Subject: Re: [TeXmacs] hidden text
Date: Tue, 02 Aug 2011 13:04:27 +0100

> 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.

From: Miguel de Benito Delgado <address@hidden>
Subject: Re: [TeXmacs] hidden text
Date: Tue, 2 Aug 2011 14:37:35 +0200

> 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.

Thank you for your replies Sam and Miguel. I attach an example
document to show more precisely what I intend to do. At the beginning
of the document they are the macro definitions: dudaux (text always
visible), duda2 (written by myself), duda3 (by Sam) and duda4 (by
Miguel).

If "mostrar-dudas = true" the 4 macros show the same text, but
duda4 generates non-justified text and an indented paragraph, so it's
not correct.

When "mostrar-dudas = false" dudaux still shows the text as
expected. On the other hand duda2, duda3 and duda4 hide the text as
intended but they introduce a new line in a new paragraph, which is
what I'm trying to avoid. Is there a way for not introducing any text
and any space at all?

<TeXmacs|1.0.7.10>

<style|acmconf>

<\body>
<new-remark|dudaux|Duda>

<assign|mostrar-dudas|false>

<assign|nada|>

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


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


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

\;

<section|Test section>

We introduce the Jacobi elliptic coordinates <math|<around*|(|e,h|)>>
related to Cartesian coordinates <math|<around*|(|x,y|)>> by:

<\equation*>

x<rsup|2>=<frac|<around*|(|a-e|)>*<around*|(|a-h|)>|a-b>,<space|0.5cm>y<rsup|2>=<frac|<around*|(|b-e|)>*<around*|(|h-b|)>|a-b>.
</equation*>

We note (Jacobi's theorem) that <math|0\<less\>e\<less\>b\<less\>h\<less\>a>
in the interior of <math|Q>. In particular, points on <math|Q> corresponds
to <math|e=0>, and on <math|Q<rsub|\<lambda\>>> to <math|e=\<lambda\>> for
<math|0\<less\>\<lambda\>\<less\>b>, or <math|h=\<lambda\>> for
<math|b\<less\>\<lambda\>\<less\>a>. The <math|x>-axis is expressed as
<math|<around*|{|e=b|}>\<cup\><around*|{|h=b|}>> and as
<math|<around*|{|h=a|}>> for the <math|y>-axis. Likewise the <math|4>
points <math|<around*|(|\<pm\>x,\<pm\>y|)>> have associated the same
elliptic coordinates <math|<around*|(|e,h|)>>, so they do not distinguish
among the <math|4> quadrants in the plane.

<dudaux|Cuando <math|\<lambda\>=b>, también se puede tomar

<math|Q<rsub|\<lambda\>>=<around*|{|<around*|(|x,0|)>:x\<in\><with|math-font|Bbb|R>|}>>.
De hecho, en la descripción siguiente de las coordenadas elípticas, se toma
el eje <math|x> como <math|<around*|{|e=b|}>\<cup\><around*|{|h=b|}>>, que
corresponde a los respectivos límites de los 2 tipos de cónicas cofocales.>

<\duda2>
Cuando <math|\<lambda\>=b>, también se puede tomar

<math|Q<rsub|\<lambda\>>=<around*|{|<around*|(|x,0|)>:x\<in\><with|math-font|Bbb|R>|}>>.
De hecho, en la descripción siguiente de las coordenadas elípticas, se
toma el eje <math|x> como
<math|<around*|{|e=b|}>\<cup\><around*|{|h=b|}>>,
que corresponde a los respectivos límites de los 2 tipos de cónicas
cofocales.
</duda2>

<duda3|Cuando <math|\<lambda\>=b>, también se puede tomar

<math|Q<rsub|\<lambda\>>=<around*|{|<around*|(|x,0|)>:x\<in\><with|math-font|Bbb|R>|}>>.
De hecho, en la descripción siguiente de las coordenadas elípticas, se toma
el eje <math|x> como <math|<around*|{|e=b|}>\<cup\><around*|{|h=b|}>>, que
corresponde a los respectivos límites de los 2 tipos de cónicas cofocales.>

<duda4|Cuando <math|\<lambda\>=b>, también se puede tomar

<math|Q<rsub|\<lambda\>>=<around*|{|<around*|(|x,0|)>:x\<in\><with|math-font|Bbb|R>|}>>.
De hecho, en la descripción siguiente de las coordenadas elípticas, se toma
el eje <math|x> como <math|<around*|{|e=b|}>\<cup\><around*|{|h=b|}>>, que
corresponde a los respectivos límites de los 2 tipos de cónicas cofocales.>

We introduce the Jacobi elliptic coordinates <math|<around*|(|e,h|)>>
related to Cartesian coordinates <math|<around*|(|x,y|)>> by:

<\equation*>

x<rsup|2>=<frac|<around*|(|a-e|)>*<around*|(|a-h|)>|a-b>,<space|0.5cm>y<rsup|2>=<frac|<around*|(|b-e|)>*<around*|(|h-b|)>|a-b>.
</equation*>

We note (Jacobi's theorem) that <math|0\<less\>e\<less\>b\<less\>h\<less\>a>
in the interior of <math|Q>. In particular, points on <math|Q> corresponds
to <math|e=0>, and on <math|Q<rsub|\<lambda\>>> to <math|e=\<lambda\>> for
<math|0\<less\>\<lambda\>\<less\>b>, or <math|h=\<lambda\>> for
<math|b\<less\>\<lambda\>\<less\>a>. The <math|x>-axis is expressed as
<math|<around*|{|e=b|}>\<cup\><around*|{|h=b|}>> and as
<math|<around*|{|h=a|}>> for the <math|y>-axis. Likewise the <math|4>
points <math|<around*|(|\<pm\>x,\<pm\>y|)>> have associated the same
elliptic coordinates <math|<around*|(|e,h|)>>, so they do not distinguish
among the <math|4> quadrants in the plane.
</body>

<\initial>
<\collection>
<associate|preamble|false>
</collection>
</initial>

<\references>
<\collection>
<associate|auto-1|<tuple|1|?>>
</collection>
</references>

<\auxiliary>
<\collection>
<\associate|toc>

<vspace*|1fn><with|font-series|<quote|bold>|math-font-series|<quote|bold>|1<space|2spc>Test
section>
<datoms|<macro|x|<repeat|<arg|x>|<with|font-series|medium|<with|font-size|1|<space|0.2fn>.<space|0.2fn>>>>>|<htab|5mm>>
<no-break><pageref|auto-1><vspace|0.5fn>
</associate>
</collection>
</auxiliary>


Archive powered by MHonArc 2.6.19.

Top of page