Forum archive 2000-2006

Andy Wildenberg - formulae within tables

Andy Wildenberg - formulae within tables

by Arnold Pizer -
Number of replies: 0
inactiveTopicformulae within tables topic started 12/2/2003; 5:47:13 PM
last post 12/2/2003; 11:02:46 PM
userAndy Wildenberg - formulae within tables  blueArrow
12/2/2003; 5:47:13 PM (reads: 650, responses: 1)
I'm sure this has been answered before, but I can't find it in the archives. I have a table which contains some mathematical formulae. However, the typesetting text is being displayed instead of the typeset text. What am I doing wrong? The text appears fine in the PDF version of the problem set, but doesn't get typeset in either tth or dvipng mode (don't currently have latex2html working).

An example (shrunk from the original) table is as follows:

TEXT(
begintable(2),
row( 'a', 'Idempotent law'),
row( 'k', 'Tautology ( (p vee neq q equiv T) ) '),
row( 'l', 'Contradiction ( (p wedge neg p equiv F) ) '),
endtable()
);

<| Post or View Comments |>


userMichael Gage - Re: formulae within tables  blueArrow
12/2/2003; 11:02:46 PM (reads: 864, responses: 0)
Hi,

The translation of tex to typeset equations occurs inside the EV3 (or EV2) functions

BEGIN_TEXT
...
END_TEXT



is syntactic sugar for



TEXT(EV3(<<'END_TEXT'));
.....
END_TEXT



where the <<'END_TEXT' construction ( the 'here document' construction of unix) is replaced by all of the text in ... up to the END_TEXT marker and fed to the EV3 function.

The following construction will work, and is probably the simplest:

TEXT(EV3(
begintable(2),
row( 'a', 'Idempotent law'),
row( 'k', 'Tautology ( (p vee neq q equiv T) ) '),
row( 'l', 'Contradiction ( (p wedge neg p equiv F) ) '),
endtable()
));

This should also work:

 

BEGIN_TEXT
\{begintable(2)\}
\{row( 'a', 'Idempotent law')\}
\{row( 'k', 'Tautology ( (p vee neq q equiv T) ) ')\}
\{row( 'l', 'Contradiction ( (p wedge neg p equiv F) ) ')\}
\{endtable()
END_TEXT
--Mike

<| Post or View Comments |>