Glossary of TeX /Algebra Expressions

Glossary of TeX /Algebra Expressions

by Mark Burnet -
Number of replies: 12
I would like to provide my Math Teachers with a resource, that would define and demonstrate TeX expressions for use with the new filters.  Is there a resource somewhere that I could use for them?
Average of ratings: -
In reply to Mark Burnet

Re: Glossary of TeX /Algebra Expressions

by Zbigniew Fiedorowicz -
In reply to Zbigniew Fiedorowicz

Re: Glossary of TeX /Algebra Expressions

by Mark Burnet -

Thanks for the pointer to your older post.  I am trying to sort through the examples to make glossary list when I noticed that I am not getting the results that I expected.  I retrieved the latest cvs, but no joy.  mimetex problem? sad

Attachment algebra.jpg
In reply to Mark Burnet

Re: Glossary of TeX /Algebra Expressions

by Zbigniew Fiedorowicz -
Hi Mark,

First of all there are two distinct vocabularies: algebra notation and TeX notation.
  1. Binomial coefficients are not (yet) part of the algebra notation.  They are also not part of the basic TeX vocabulary, which is all that mimeTeX implements.  However binomial coefficients can be obtained via the following construction: $$$\left({n\atop~k}\right)$$$ ==> $$\left({n\atop~k}\right)$$.  If there is sufficient demand for it, I can add an extra preprocessing step to the filters which would convert \binom{x}{y} (TeX notation) and binom(x,y) (algebra notation) into this behind the scenes.
  2. You can't write an equal sign all by itself in algebra notation:  @@@=@@@ ==> syntax error.  The algebra filter requires complete mathematical expressions -- it does not allow fragments.  The equal sign by itself is perfectly OK in TeX:  $$$=$$$ ==> $$=$$.
  3. frac{x}{y} is TeX notation, except for one important omission: the backslash in front of frac.  It should be $$$\frac{x}{y}$$$ ==> $$\frac{x}{y}$$.  In algebra notation, you would simply write @@@x/y@@@ ==> @@x/y@@.
I should also mention one other resource:  the mimeTeX user's manual at http://www.forkosh.com/mimetexmanual.html

I hope this helps, and I hope you share your glossary list with us - I don't have the time to do a proper job of this.
In reply to Zbigniew Fiedorowicz

Re: Glossary of TeX /Algebra Expressions

by Mark Burnet -

Thank you for the feedback, I am an not a mathematician (IT) and I appreciated the patience with a CMS newbie.  I had discovered a few of your suggestions through trial and error, but now it is much clearer.

Yes, sharing is what its all about but I suspect that I will need an editor to review my first attempt here before it is ready for general consumption.

Interested?

In reply to Mark Burnet

Re: Glossary of TeX /Algebra Expressions

by Zbigniew Fiedorowicz -

Yes, sharing is what its all about but I suspect that I will need an editor to review my first attempt here before it is ready for general consumption.

Interested?

Sure.

Let me also point out a few tools which might be helpful in figuring things out.  There is a TeX previewer which is included in the moodle filter folder.  It's accessible at:
http://yourSiteName/moodle/filter/tex/texed.php

There are also two debuggers which can be used for this purpose:
http://yourSiteName/moodle/filter/tex/texdebug.php
http://yourSiteName/moodle/filter/algebra/algebradebug.php
In reply to Zbigniew Fiedorowicz

Re: Glossary of TeX /Algebra Expressions

by Mark Burnet -

Great tools and they work as I expected.  What I found out was that while functions work on a resource page and in the debugger,  within the Glossary Module some functions act strange

@@@A=pi r^2@@@  or @@A=pi r^2@@  yields Syntax error: A=<nolink>pi</nolink> r^2     surprise

In reply to Mark Burnet

Re: Glossary of TeX /Algebra Expressions

by Zbigniew Fiedorowicz -
The <nolink> tags are added by the Glossary Autolinking text filter, I believe.  So in the Administration --> Configuration --> Filters page, make sure that the Algebra and TeX filters are listed ahead of the Glossary Autolinking filter.
In reply to Zbigniew Fiedorowicz

Re: Glossary of TeX /Algebra Expressions

by Mark Burnet -

I am baffled, even after ressetting the filter positions, and then removing glossary autolinking, the nolink markers persist.  @@delta@@ is Syntax error: <nolink>zdelta</nolink>

Time to put this away for another day.

In reply to Mark Burnet

Re: Glossary of TeX /Algebra Expressions

by Petr Skoda -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers

This is cause by "selflinking prevention" mechanism.

See bug: http://moodle.org/mod/forum/post.php?reply=26616

See line in glossary/lib.php, function glossary_print_entry_definition:
$definition = str_ireplace($entry->concept,"<nolink>$entry-concept</nolink>",$definition);

This function needs some major rework.

In reply to Petr Skoda

Re: Glossary of TeX /Algebra Expressions

by Zbigniew Fiedorowicz -
I've already fixed this problem in the TeX and algebra filters by adding code to strip out the nolink tags within mathematical expressions.
In reply to Mark Burnet

Re: Glossary of TeX /Algebra Expressions

by Hugo Troch -

I made a text for my students. It's a brief introduction to Latex in Moodle. I made little booklets of it and they place it near their PC while entering maths in Moodle.

Sorry, it's in dutch, sorry it's written in LaTex and converted to pdf. However if you want to use the source, give me a call. http://www.ritacollege.be/elo/mod/resource/view.php?id=991

Enter as guest.