Ralf Hemmecke wrote:
>
> Another comment to ...
>
> > You did not answer my question about 'pmatrix'.
>
> (1) -> )set output tex on
> (1) -> matrix [[1,2],[3,4]]
>
> +1 2+
> (1) | |
> +3 4+
> $$
> \left[
> \begin{array}{cc}
> 1 & 2 \\
> 3 & 4
> \end{array}
> \right]
> \leqno(1)
> $$
>
> Copying this into a foo.tex file.
>
> %%%%%%%%%%%%%%%%%%%%%%
> $$
> \left[
> \begin{array}{cc}
> 1 & 2 \\
> 3 & 4
> \end{array}
> \right]
> \leqno(1)
> $$
> \bye
> %%%%%%%%%%%%%%%%%%%%%%
>
> gives
>
> $ tex foo.tex
> This is TeX, Version 3.1415926 (TeX Live 2009/Debian)
> (./foo.tex
> ! Undefined control sequence.
> l.3 \begin
> {array}{cc}
OK, so:
- \begin{array} already is LaTeX only. It works regardless of
amsmath
- \begin{pmatrix} does not work in LaTeX without amsmath, but
you can make it work with amstex using a few macros
I still do not see why _you_ want pmatrix. Is this because
you want compatibility with amstex via your trick? AFAICS
pmatrix is a syntatic sugar over array. Which is fine to
save some typing in hand written code. But when generating
LaTeX output we actually get extra complexity and loose
compatibility with base LaTeX.
All I heard from you is variation of "why not". Now, in case
of software there is generic argumant against change. Each
change, however trivial, has some cost. So change should
bring some benefit (possibly small for easy changes).
--
Waldek Hebisch
[email protected]
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.