numbas / editor Goto Github PK
View Code? Open in Web Editor NEWAn editor for the Numbas e-learning system.
Home Page: http://numbas.mathcentre.ac.uk
License: Apache License 2.0
An editor for the Numbas e-learning system.
Home Page: http://numbas.mathcentre.ac.uk
License: Apache License 2.0
Not quite sure what they mean - olive green, red and magenta.
See the advice window MAS1041_20122013_CBA1_1
Doesn't give any maths display in rich text input. The first \eqnarray is surrounded by a box, the rest as is.
Similarly for \align.
Each question is returned twice (once without a handle).
1st item is inside the list element, second is not in a list element, but is in the list.
Tried to add Steps in a question which does not have Steps (MAS1142 CBA1_5) . It did not appear when the question was run. I tried to delete it in the editor and another copy of the Steps appeared! Eventually found myself with 4 copies of now empty Steps. (Not quite sure how the content was removed!)
This looks loads better than TinyMCE: http://redactorjs.com/?utm_source=javascriptweekly&utm_medium=email
See question Bill2 in the editor. The ruleset std in that question includes the rule fractionNumbers. Although the variables {a}, {b} are set as decimals the question prompt
Be a bit cleverer about whether we insert or update questions in exams on exam save.
Have the buttons for running and copying for each question in the list of questions for an exam (as well as the delete button). This is for purely local purposes in the exam. The copying button would create a reference to the copy of the question into the same exam. It is often the case that you want to use a question for a template for other questions in an exam. Also being able to run a single question within an exam would be useful.
Several times when bringing, for example, MAS1041CBA2_4, into the editor the last sections of the question are missing. However if I keep on trying this, eventually all of the question is loaded.
When you enter (1..3)
(for example) as a variable definition this displays 1 dots 3
rather than the random number
To being a property of a question not an exam.
Look at MAS1141 CBA1_1
The statement contains latex in display mode. Clicking on this shows the maths display for only part of the latex, although when the question is run the display is fine. The html editor shows no spaces or anything untoward (as far as I am concerned!). This may be an effect of copying and pasting as for example the question further down in this example asks:
Find the unit vector
The \boldsymbol{ was copied and pasted and immediately this was done the error "Missing close brace" appeared but remained even though the close brace was added.
But on running this also displayed properly.
This is an issue for users to be aware of.
Created a copy of a question in an exam and added to it to the same exam. Then clicked on the copy to put it into the question editor and deleted it there using the red button. On accessing the exam by clicking on its tab, the exam list of questions still showed the copy as you need to refresh to show the deletion.
If you write something like [\int \var{a} y;dy] in the display maths test area of the displaying maths section then very nicely we have a spotted as a variable. However if we write [\int \simplify{{a} y};dy] then not only a is displayed as a variable but y is given as one, which it is not.
Users should be able to
1 - choose a theme to use with an exam
2 - upload themes in .zip format.
Instead of showing a separate form when clicking on Delete, show a JS dialog box of some sort, which POSTs directly to the exam_delete
URL. Form could be as in editor/templates/(exam|question)/delete.html
.
Entering e^(cx) for a negative c in an answer results in a display with brackets around the c, whereas other displays in content areas do not have the brackets. See MAS1041CBA3_2. This also occurs with the revealed answer.
On entering an expression which starts with a negative fraction e.g. -3/4e^x-7/4x^4 then the first negative fraction is not displayed nicely, whereas the second one is. An issue with the negative as a unary operator?
Only content areas and (selected) variables visible/editable. "Advanced mode" button somewhere on the page switches to the detailed view with everything editable.
Which view users see by default should be a setting.
In IE8 the display of content areas is not formatted when in edit mode. Also long variable definitions have a scroll bar rather than the definition.
I can get the list of questions, but on choosing a question, it does not appear in the editing window.
On Chrome and Firefox, when typing anything into the new TinyMCE editor, the cursor jumps back to the beginning of the line. No such problems in IE.
Clicking on the red delete button for a variable has no effect.
From MAS1041CBA3_8 answer expression for second question.
(-({a}_x+{b})^2/{c})_cos({c}_x+{d}) gives, for example, (-(2x+7))^2_cos(3x+4) on revealing. Clearly wrong.
I have had to write as
-(({a}_x+{b})^2/{c})_cos({c}*x+{d}) in order to get the correct expression
If you add a new line in a content area in the editor (but do not type anything in) an error message is generated as follows on attempting to run from the editor.
Error making the preview: Compilation failed. Failed to compile exam Traceback (most recent call last): File "/srv/numbas/dist/bin/exam.py", line 58, in makeContentNode return etree.fromstring(''+s+'') File "/usr/lib/python3.1/xml/etree/ElementTree.py", line 947, in XML parser.feed(text) File "/usr/lib/python3.1/xml/etree/ElementTree.py", line 1224, in feed self._parser.Parse(data, 0) xml.parsers.expat.ExpatError: undefined entity: line 4, column 5 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/srv/numbas/dist/bin/exam.py", line 273, in tostring xml = self.toxml() File "/srv/numbas/dist/bin/exam.py", line 267, in toxml questions.append(q.toxml()) File "/srv/numbas/dist/bin/exam.py", line 380, in toxml que...............
However, if you type something in that line then no error message and the question runs.
I cannot edit in a new content area once I create a new question type or Steps. OK for the question statement or Advice or Author's Notes. So I cannot create new questions.
For example, if
$\simplify[std]{{a}+{b}x} $ is in a content area and is clicked on we get the maths display subvar(a,gray)+subvar(b,gray)x rather than the maths display expected.
In question MAS1041CBA2_4 the last part has a mathematical expression input as a fraction. Ruleset used is dPoly. But if the fraction has a negative numerator then the display does not follow the rule and gives a nasty display.
These should all be switched on by default , they are turned off at present, allowing for free navigation and for question regeneration.
Even when turned on in the navigation section of the exam editor, the regeneration button does not appear.
See advice in MAS1041CBA3_5 and in particular the advice for the second question. The cursor on the eqnarray there reports an error although the question compiles and runs. I inserted simplify and displaystyle in various places and this appears to be the reason why the error message appeared in the first place(?)
If a variable has a long definition then the definition is shown as a scroll bar in the variables section with no other detail.
For example, variable d1 in MAS1041_20122013_CBA1_1
Should uploading an exam also upload any questions defined within that exam?
Copied an exam. Then chose to delete the copy. The question about whether or not I really wanted to delete it was referring to a question not the copy's name. So I chickened out as I might have removed all the exams as it looks like a bug.
Created Test exam and a copy. Tried to delete copy, and chose yes , the name of the exam still exists even after refreshing. Get error page on accessing. Tried to delete the original Test. Asked whether or not I wanted to delete a question, not an exam, somehow chosen from the list of questions and not even in the exam. So once again I made my excuses and left.
When clicked on you sometimes get very small edit windows, or very narrow edit windows or quite rarely, well proportioned windows.
Author notes for exams does not have a maths display on clicking on a latex expression (which does not involve jme or of course variables)
Ability to define functions.
On occasion I would use the notes to explain the reason why I chose a particular mode of solution for the question or some other mathematical comment. In that case there would normally be maths in the notes relevant to the question and this should be displayed for the author and for other authorised authors as well. Could Test Run also display the notes?
The present windows for content areas are rather small and this can be a problem in editing. Is it possible to undock these?
It is difficult to edit these answer fields and to see if they are correct, other than running the questions and using reveal. The field is to small and there should be a display mode for the answer
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.