I was trying to copy some equations to moodle from mathtype. and having this errors.

i tried some forums and i saw depressing shift key while inserting these symbols fix this issue. i tried it but not working. any help?

This discussion has been locked because a year has elapsed since the last post. Please start a new discussion topic.

I was trying to copy some equations to moodle from mathtype. and having this errors.

i tried some forums and i saw depressing shift key while inserting these symbols fix this issue. i tried it but not working. any help?

Hi Vishnu,

could you provide a screenshot of the formula that is not working? Or even better the LaTeX or MathML code.

HI,

Actully i am facing this error on the math type application.

when trying to copy equaion for moodle platform. this happen only for some equations like this

i can copy if the cut and copy preference set to **AMS Latex**. but when it rendering its like this

when the cut and copy preference set to **Moodle **i cant copy it from the math type application

the error is

There's no left-right arrow over multiple characters in LaTeX. Somewhat of a workaround can be effected by adding a line to MathType's Moodle translator. The arrow will not stretch though, so it may look a little goofy: $$\overset\leftrightarrow {AB}$$.

If you're OK with that, you can add it to the translator like this:

- In Windows Explorer, find the file named
**Moodle-TeX filter.tdl**. and open it in a text editor. Its default location is**C:\Program Files (x86)\MathType\Translators**. [Forget the "(x86)" if you're using 32-bit Windows.] - Add this line as the last line in the file:
`vec/lr = "\overset\leftrightarrow #1"; // Double arrow over-bar`

- Save the file and close it.
- MathType will apply the change after you switch to a different translator, then switch back to Moodle-TeX filter.

Doesn't this partly depend on renderer selection - mimetex supports \overleftrightarrow{AB} - mathtex (with TexLive) supports \overleftrightarrow{AB} like this - MathJax supports \overleftrightarrow{AB} , see http://docs.mathjax.org/en/latest/tex.html#o

How about tex filter here: $$\overleftrightarrow{AB}$$ ...

Good point about renderer selection. I was just going with "off the shelf" models.

I think MathJax is the way to go, but I'm a little biased.

Hi Vishnu,

Try this and see if it works: \longleftrightarrow\\{AB} gives $$\longleftrightarrow\\{AB}$$

AL

Thanks @al rachels that works... do you have any idea why this kind of equations can't copy from mathtype.

or is there any resourse to get the shortcodes of these equations? I have te same issues with some other characters too like this

$$ \[\sphericalangle \]$$

Hi Vishnu,

Sorry, I do not know anything about mathtype. \sphericalangle doesn't work for me either even though it is listed as being a Latex character (http://www.access2science.com/latex/Characters.html), but \angle does seem to give the sphericalangle on my server , but just gives this angle $$\angle$$ here on Moodle. Another source I found, (http://milde.users.sourceforge.net/LUCR/Math/mathpackages/amssymb-symbols.pdf) seems to indicate you need wrisym, which I don't have on my server.

AL

There are simply many different distributions of LaTeX or TeX and each of these have different default symbol sets and often additional packages. What you copy from one environment does not always look the same in that environment where you paste code. Each latex renderer can have different versions.

First you need to know what latex renderer (tex filter) your site is using - Mimetex, TexLive, MikTeX, OzTeX, TeTeX,... or for example cdn MathJax with script tags (and given tokens) in Additional HTML in site administration. MathJax supports both \angle and \sphericalangle symbols http://docs.mathjax.org/en/latest/tex.html#s

If you are using a local LaTeX (for example TexLive) you can add additional packages to settings of tex filter - tex preamble, see for example https://moodle.org/mod/forum/discuss.php?d=152292

If you can't change your latex renderer and can't use several latex renderers (tex filter AND MathJax) you can also copy and paste images from what ever source or math editor... with image plugin in editor toolbar like Al did with his example sphericalangle.

If you check https://moodle.org/mod/forum/discuss.php?d=193064 adding script tags for MathJax is not a complex thing to do. As an administrator of your site you can change the configuration of MathJax, select proper tokens for inlinemaths and use mathJax with or without tex filter, with local files or with cdn files http://docs.mathjax.org/en/latest/configuration.html