[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Need advice on math inside @tex ... @end tex

From: Mats Carlsson
Subject: Need advice on math inside @tex ... @end tex
Date: Wed, 07 May 2003 19:01:44 +0200

Not a bug report, but a request for advice.

In the manual I'm writing, I would like to have some multiline math
formulas come out nicely.  I would like to write:

  a = \min(S_1,\ldots,S_n) \\
  b = \max(S_1+D_1,\ldots,S_n+D_n) \\
  R_{ij} = \left\{\begin{array}{ll}
                  R_j, &\hbox{\ if \ } S_j \leq i < S_j+D_j \\
                  0, &\hbox{\ otherwise} \\
           \right. \\
  @end tex

but TeX chokes on \begin{array}:

  ! Undefined command @begin {array}{l}.
  \next ...\errmessage {Undefined command @begin #1}
                                                    }\else \csname 
  l.978   \begin{array}{l}

I understand that Texinfo redefines \begin and \end.  I've tried a
great many times without success to add lines to texinfo.tex, saving
the original definition of \begin and \end.  But perhaps \begin and
\end are not TeX commands at all; perhaps \begin{ENV} ... \end{ENV} is
a TeX idiom.

Anyway, any help to achieve what I want is greatly appreciated.

Mats Carlsson

reply via email to

[Prev in Thread] Current Thread [Next in Thread]