Mathtext questions, continued...

Darren Dale <dd55@...143...> writes:

Also, I thought that the author of the current code base did some
design mistakes at the begining. And, being a developer newbie,
it's a lot easier to start things from scratch, than make fixes to
old stuff you don't understand well.

Just a general comment. Eric Raymond observed in The Cathedral and
the Bazaar that "Good programmers know what to write. Great ones
know what to rewrite (and reuse)."

See also: Things You Should Never Do, Part I – Joel on Software

The point is that, i.e. \cal sets the current fontface to "cal",
and the change is propagated till the end of the current scope (or
untill it hits \rm, for example). Old mathtext applies it only to
the first item after the command.

What does this have to do with real TeX? Maybe you could post an
example. It is possibly just an mpl bug that needs to be addressed.

Run the attached file through LaTeX to see what he means. Does
Matplotlib attempt to replicate some subset of (La)TeX syntax exactly,
or is it just a "TeX-like" syntax?

foo.tex (599 Bytes)

···

On Sunday 20 August 2006 10:25 am, Edin Salkovi� wrote:

--
Jouni

I think what he meant to say was that old mathtext didnt behave the way TeX
does, is that correct Edin? My feeling is that mpl should replicate the
(La)TeX syntax exactly. Imagine the confusion if mathtext gives one result,
and usetex gives another.

···

On Monday 21 August 2006 02:27, Jouni K Seppanen wrote:

Darren Dale <dd55@...143...> writes:
> On Sunday 20 August 2006 10:25 am, Edin Salković wrote:
>> Also, I thought that the author of the current code base did some
>> design mistakes at the begining. And, being a developer newbie,
>> it's a lot easier to start things from scratch, than make fixes to
>> old stuff you don't understand well.
>
> Just a general comment. Eric Raymond observed in The Cathedral and
> the Bazaar that "Good programmers know what to write. Great ones
> know what to rewrite (and reuse)."

See also: Things You Should Never Do, Part I – Joel on Software

>> The point is that, i.e. \cal sets the current fontface to "cal",
>> and the change is propagated till the end of the current scope (or
>> untill it hits \rm, for example). Old mathtext applies it only to
>> the first item after the command.
>
> What does this have to do with real TeX? Maybe you could post an
> example. It is possibly just an mpl bug that needs to be addressed.

Run the attached file through LaTeX to see what he means. Does
Matplotlib attempt to replicate some subset of (La)TeX syntax exactly,
or is it just a "TeX-like" syntax?

Thanks all for the tips,

Darren, that's exactly what I had in mind - mathtext should copy the
syntax of (La)TeX to a tollerable extent (without those dirty macros),
so at least the high level TeX constructs behave the same.

This should allow users to plot everyday plots easily with mathtext,
and when they want a publication ready EPS (perhaps one day mathtext
will be good enough for it), they'll just add the option usetex, with
no other code change.

I think it's easier to stick with plain TeX's syntax because it's very
well documented.

Cheers,
Edin

···

On 8/21/06, Darren Dale <dd55@...143...> wrote:

I think what he meant to say was that old mathtext didnt behave the way TeX
does, is that correct Edin? My feeling is that mpl should replicate the
(La)TeX syntax exactly. Imagine the confusion if mathtext gives one result,
and usetex gives another.