Use LaTeX-Editor with multiple text fields sharing the same ID
Use LaTeX-Editor with multiple text fields sharing the same ID
Hello!
I habe math exercises consisting of several items, each items contains a form with one or more text fields for LaTeX input. Unfortunately I was not able to give each text field a unique id, which is way the different forms always have IDs like "inputUser1", "inputUser2" etc. and there are several of these text fields on one site.
My question is: Is the following possible? When I click on a text field, I want the embedded LaTeX editor to move to the closest "editor" div. And when I click on editor buttons, I want the LaTeX codes to be inserted at this specific text field.
Thanks a lot in advance!
13 Aug 12, 12:51AM
Yes this is possible. Have a look at this page: http://www.codecogs.com/latex/example5.html
A link to the code is also available for download from: http://www.codecogs.com/latex/embedded.php
Look aout half way down on the right side.
Login