Smart Assignments Help - Assignment Editor
This page allows you to compile and edit an assignment.
The central part of the web page displays the assignment's template (we call it assignment) as it will be processed by SmartAss to create QUESTIONS, SOLUTIONS and SHORTANSWERS files.
Typical assignment contains text, a set of TeX clauses and control operators.
Typical usage involves creating an assignment file and then calling question templates from the assignment file with CALL operator.
Each control operator begins with "%%" symbols at the start of a line. Currently there are operators:
Their purposes are:
1. CALL would be used to call question template from the assignment file.
SmartAss allows template nesting, i.e. template can be called using the CALL operator within this template. SmartAss includes the result of processing nested templates into the text of this template.
2. Cycle operator REPEAT forces SmartAss to repeat the chosen part of the template a specified number of times. Useful for generating several variants of the same assignment.
3. Text randomisation operator MULTI allows random selection of one or many blocks of text from the specified set of blocks inside the template.
4. Sectioning: all SmartAss output is separated into three sections, comprising questions (output from section QUESTION), short-answers (section SHORTANSWER) and fully-worked solutions (section SOLUTION). Also there is a section DEF that typically contains declarations of variables, the text from section DEF will not be placed into any of the output files.
Any Tex code, such as TeX/Latex operators or simple text within a template is passed directly into the output files without any further processing by SmartAss. The standard LaTeX and pdfTeX are used to process these formatting commands after the output files are generated.
Assignment Editor web page has the following controls to assist user in creating an assignment on-line.
Buttons on the left part of the screen are used to insert or edit text and operators into an assignment. Text or operators are inserted immediately after the line selected with the radio button. So, to add a new text / operator into the assignment you need to click on a radio button where you want to make an insertion and then click on one of the following buttons:
Add text - to add any text (including tex) in any part of the assignment.
Add CALL - to add %%CALL operator with a question template.
Add REPEAT - to add a cycle with %%REPEAT operator.
Add MULTI - to add %%MULTI operator.
Add CHOICE - to add a new %%CHOICE within MULTI operator.
Add SECTION - to add a new section (QUESTION, SHORTANSWER or SOLUTION).
Edit - to edit selected text or operator.
Delete - to delete selected text or operator.
At the bottom part of the web page there are the following controls:
View code - to view and edit the assignment code.
Download - to download the assignment code (for example, you can save this assignment template on your hard-drive).
Execute - to process the assignment with SmartAss engine and produce Tex/Pdf QUESTIONS, SOLUTIONS and SHORTANSWERS files.
Clear - to clear all the existing content of this assignment (including all Latex operators).
New assignment - to start a new assignment.
Upload - to upload an assignment template from an external source. For example, you may have an assignment template stored on your computer. You can upload it to Assignment Editor, edit it and generate Tex/Pdf files on-line.
Exit - to exit Assignment Editor.
Check box Decorate assignment constructions with LaTeX is used to enable automatic addition of Latex operators into your assignment. For example, SmartAss will use enumerate environment to produce a numbered list of questions. Uncheck this box if you don't want any Latex operators being automatically added into the assignment. Also, you need to be careful not to add Latex into existing and processed assignments, where Latex operators are already present.