### Glossary of TeX /Algebra Expressions

Number of replies: 12### Re: Glossary of TeX /Algebra Expressions

### Re: Glossary of TeX /Algebra Expressions

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?

### Re: Glossary of TeX /Algebra Expressions

First of all there are two

*distinct*vocabularies: algebra notation and TeX notation.

- 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.
- 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: $$$=$$$ ==> $$=$$.
- 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 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.

### Re: Glossary of TeX /Algebra Expressions

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?

### Re: Glossary of TeX /Algebra Expressions

Sure.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?

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

### Re: Glossary of TeX /Algebra Expressions

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

### Re: Glossary of TeX /Algebra Expressions

### Re: Glossary of TeX /Algebra Expressions

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.

### Re: Glossary of TeX /Algebra Expressions

### Re: Glossary of TeX /Algebra Expressions

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.

### Re: Glossary of TeX /Algebra Expressions

### Re: Glossary of TeX /Algebra Expressions

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.