Are geometric symbols supported?

Are geometric symbols supported?

by Tomokazu Switzer -
Number of replies: 9

I saw the post about the triangle.  Is there one for the angle symbol?  Circles? Parallelograms? How about line segments, rays, arcs?  I looked in the reference list over on eMath, but either I was not searching properly or there was no mention of these.

Thanks

Tomo

Average of ratings: -
In reply to Tomokazu Switzer

Re: Are geometric symbols supported?

by Don Quixote -
Yes, drawing is also supported. Here's a little work of art by Mark Burnet wink

$$$~\unitlength{.6}~\picture(100){~~(50,50){\circle(99)}~ ~(20,55;50,0;2){+1$\hat\bullet}~~(50,40){\bullet}~~(50,35){\circle(50,25;34)}~ ~(50,35){\circle(50,45;34)}}$$$

gives

$$~\unitlength{.6}~\picture(100){~~(50,50){\circle(99)}~ ~(20,55;50,0;2){+1$\hat\bullet}~~(50,40){\bullet}~~(50,35){\circle(50,25;34)}~ ~(50,35){\circle(50,45;34)}}$$

(I hope to find the time to extend the TeX filter reference at eMathPool soon...)

Andreas

In reply to Don Quixote

Re: Are geometric symbols supported?

by Francisco R P Mattos -

Hi Andreas,

I Think Could be more interesting if the student could be copy and paste geometric figures, simply. We have using   the Moodle in math course at university: Geometry. We have using with high school students and it's dificult for them use get image on text editor.

Think about!!

We are very happy using Moodle in Brazil, Rio de Janeiro, UFRJ.

In reply to Francisco R P Mattos

Re: Are geometric symbols supported?

by Don Quixote -
Hi Francisco,

how would you like that your students can copy / paste geometry figures?

Do you think of some predefined geometry figures to use in an animated exercise or rather in the html editor to insert a picture when writting a text?

Andreas
In reply to Tomokazu Switzer

Re: Are geometric symbols supported?

by Tomokazu Switzer -

I found a site with some of the commands listed.  It had $$$\triangle$$$ for $$\triangle$$ symbol.  It also had $$$\angle$$$ for the angle symbol, but I get $$\angle$$ instead.  Am I missing something?  There was another one that didn't work propery was $$$\cong$$$ for congruence symbols.  I tried to find the page again but for the life of me I couldn't find both references.  Here's a partial list http://olympus.het.brown.edu/~danieldf/latex/docs/symbols.pdf that I found somewhere else.

Would these outside references not be relevant to the Moodle implementation?

Thanks

Tomo

In reply to Tomokazu Switzer

Re: Are geometric symbols supported?

by Zbigniew Fiedorowicz -
Moodle's TeX filter uses the program mimetex to render TeX expressions into graphics.  Mimetex does not support all possible TeX expressions, only the most commonly used expressions.  You can write to John Forkosh <john@forkosh.com>, the author of mimetex. If you convince him to support \angle, then that will be supported in Moodle too.
In reply to Zbigniew Fiedorowicz

Re: Are geometric symbols supported?

by Tomokazu Switzer -

Ahh, I get it.

Thanks!

In reply to Tomokazu Switzer

Re: Are geometric symbols supported?

by John Forkosh -
If you use the tex filter directly, then its \line() and \circle() commands, described in the "picture environment" section of the full mimetex manual at http://www.forkosh.com/mimetexmanual.html , work outside the picture environment, too. So you can put line segments, circles, ellipses and arcs anywhere you want. For arbitrary arcs, see the "recent changes" link near the top of http://www.forkosh.com/mimetex.html because the full manual only shows how to specify 90-degree quadrants. See below for parallelograms. As a simple example, abc\circle(25,15)def produces $$\normalsize abc\circle(25,15)def$$

The \angle command is actually supported by the current version of mimetex, at http://www.forkosh.com/mimetex.zip but not from moodle downloads. Actually, you can frequently implement special symbols by the following procedure. For \angle, edit a one-line file called newcommands.h (or anything) containing exactly the single line
 {"\\angle", NULL, "{\\compose{\\hspace{3}\\lt}{\\circle(10,15;-80,80)}}"},
and when you compile mimetex add the switch -DNEWCOMMANDS="newcommands.h" to compile your mimetex with your angle command. Search mimetex.c for NEWCOMMANDS and you'll see dozens of examples of such commands below it, which should give you an idea how it works. Among those examples is the \angle command above, which just superimposes an arc of an ellipse on top of <, e.g., \angle45 looks like, mimetex.cgi?\large\angle45 (which I rendered for you with an <img> tag pointing directly to my mimetex.cgi since moodle's version won't recognize the \angle).

If you get the current mimetex source, it already contains the above \angle command, so you don't need that. But you could create a newcommands.h file for, say, \parallelogram, using the \line() command mentioned above, but inside a \picture environment in order to position the line segments properly. You'd probably have to play around a bit to get it right.
In reply to John Forkosh

Re: Are geometric symbols supported?

by Tomokazu Switzer -

Thank you for the great info.  This gives me a great place to start!

Thanks again!

In reply to Tomokazu Switzer

Re: Are geometric symbols supported?

by Paul Harai -
Tony, you've come a long way since Kubasaki. This seems a bit more complicated than teaching 2nd grade math, which is what I am doing.