[texhax] matrices

Philip G. Ratcliffe philipratcliffe at tiscali.it
Wed Sep 10 00:21:37 CEST 2003

> I'm new to this list,

And to lists in general: first of all, please don't REPLY to some random
mailing to start a new thread - it b***ers up the nice grouping that many
e-mail clients allow.  Just start a fresh e-mail to 'texhax at tug.org'.

> and new to TeX hacking, though I've been using
> LaTeX to typeset math for about 4 or 5 years.

Enough to glance at one of the manuals though:  Doob's oft-cited "Gentle
Introduction to TeX" is the only one I have to hand and on p.43 you'll find

> One thing that I haven't
> been able to get satisfied with is the way one has to enter matrices,
> viz.,
>
> $\left ( \begin{array}{ccc} > a & b & c \\ d & e & f \\ g & h & i > \end{array} \right )$
>
> I would like to compress all of this into a macro like
> the following:
>
> $\matrix{a & b & c \\ d & e & f \\ g & h & i}$

Did you try it?  Actually, you need to use \cr instead of \\, but with that
it works.

I would, however, recommend using the 'amsmath' & Co. packages (and reading
the manual); they provide better alternatives (for this and other math).

Cheers, Phil
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9280213117599487, "perplexity": 4803.516034983591}, "config": {"markdown_headings": false, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2018-26/segments/1529267861899.65/warc/CC-MAIN-20180619041206-20180619061206-00198.warc.gz"}