Jump to ContentJump to Navigation/Login
` ` ` ` ` `

[Register]

Occasional ATutor release updates


No Members Logged In

(4 guests in past 15 min.)
Locations of visitors to this page

Support Forums

ATutor Bug Reports

Using latex in tests


You must be signed-in to post.

AuthorSubject
  Page: 1
kiwilara
Subject: Using latex in testsQuote this post in your reply
Hi,

I am having problems using latex in the feedback section of open-ended questions in tests (Atutor 1.6.3)
I am using the [tex] [/tex] syntax with normal latex written between these. I think something funny is happening with the editor but I don't seem to be able to choose my editor (eg plain txt or html) as in other places---I am not sure what the editor is doing but it is stripping out all my latex backslashes.

If I use latex in both the question and feedback sections then the first time I view the question the latex works properly in the question but NOT in the feedback but the second time I view it the latex does not work in either place and when I edit the file I find that all my backslashes have disappeared somewhere.

Latex works fine on content pages and in forum posts.

Not sure whether this is a bug or there is just some editor preference I need to reset---if there is documentation about how Atutor handles latex please refer me to it.

Thanks alot,
Lara



Things to describe:
Operating system ATutor is installed on -
ATutor version -1.6.3
Patch #s applied - None.
ATutor theme name -? default? It has pencils in the upper RH corner.
PHP version -?
MySQL version -?
Webserver & version -?
Copies of error messages -
Changes to default settings -
Web browser being used - Firefox
...and anything else relevant -
Posted: 2010-01-12 15:50:05
kiwilara
Subject: Re: Using latex in testsQuote this post in your reply
Fix to above in Atutor 1.6.3 (after much frustration--given I know neither php nor html syntax!)

Line 152 of ATutor-1.6.3/ATutor/tools/view_results.php
changed from commented out line below to the line now above

if ($row['feedback']) {
/*line 151*/
echo '<div class="row"><p><strong>'._AT('feedback').':</strong></p><p> ';
/*new line 152*/
echo AT_print($row['feedback'],'tests_questions.feedback').'</p></div>';
/*removed line 152*/
/*echo nl2br($row['feedback']).'</p></div>';*/
}

This seems to work, but I've only checked against my own test results not other users.

There is another file with the same name within the tests directory which I've also changed in the same manner (well that was the one I changed first---and it didn't seem to work, cue increasing frustration!!); really not sure when this second file gets called or by what function but I've left it changed for now.
Posted: 2010-01-19 06:22:07
kiwilara
Subject: Re: Using latex in testsQuote this post in your reply
I don't know how to get the url for another thread, but this thread
"Subject: Strip slashes causing a problem with LaTeX?"
In the Atutor Support forum solves the other problem (latex backslashes getting unwantedly removed) in my original post above.
Posted: 2010-01-19 06:25:38
 Page: 1

You must be signed-in to post.