--- doc/tutorial/Attic/tutorial.lyx 2002/06/04 21:07:28 1.5 +++ doc/tutorial/Attic/tutorial.lyx 2002/06/05 21:49:47 1.6 @@ -51,18 +51,7 @@ Author's Tutorial And Manual \layout Standard \align center -This manual was developed by John Williamson in the Office of Medical Education - Research and Development. - Some information in thie manual is adapted from the -\begin_inset Quotes eld -\end_inset - -LON-CAPA Workshop Demo -\begin_inset Quotes erd -\end_inset - - developed by Felicia Berryman in the Laboratory for Instructional Technology - in Education. +John Williamson, Felicia Berryman, Jeremy Bowers \layout Standard \SpecialChar ~ @@ -111,8 +100,8 @@ IMHO LON-CAPA is a web-based interface that helps to organize and present your course website, deliver and manage problems, and manage student enrollment. - All author functions are done using a web browser (Netscape 4.x or higher, - a recent Mozilla, or IE 5+ required) and the LON-CAPA Author Interface. + All author functions are done through a web browser (Netscape 4.x or higher, + a recent Mozilla, or IE 5+ required). \layout Standard At this time, you should have: @@ -122,7 +111,8 @@ developed your objectives for your cours \layout Itemize -developed your problems for testing and identified the question formats. +developed your problems for input into LON-CAPA and determined the appropriate + question formats. \layout Subsection About This Manual @@ -157,13 +147,11 @@ Much of this document can be used as a t with no previous LON-CAPA experience. \layout Standard -For more information, see the website at +For additional help, visit our FAQ at \family typewriter http://help.loncapa.org/ \family default -, where you can get help. - If you cannot find an answer for your question, please email us and let - us know, so we can put the solution to your problem online for everyone. +. \layout Section The LON-CAPA Author Interface @@ -404,8 +392,8 @@ The Author Remote Control, show in figur , will automatically load whenever you log in to LON-CAPA as the course instructor. - The Author Remote Control is a separate window in your browser, so you - may position it on the screen where you can make the best use of it. + The Author Remote Control is a separate window in your browser, and is + automatically sized and placed in the upper left of the screen. The Remote Control is a tool that allows you to switch between functions and roles within LON-CAPA. @@ -413,7 +401,7 @@ The Author Remote Control, show in figur \layout Standard \align center -\begin_inset Figure size 177 420 +\begin_inset Figure size 180 420 file authorRemote.eps height 3 50 flags 9 @@ -479,22 +467,22 @@ RES (RESOURCE SPACE) \series bold -EGRD (ENTER GRADES) +SRC (SEARCH LIBRARY) \series default - is used to enter grades for students enrolled in your course. + brings up a screen that lets you search the LON-CAPA resources using multiple + criteria. \layout Itemize \series bold -SRC (SEARCH LIBRARY) +PREF (PREFERENCES) \series default - brings up a screen that lets you search the LON-CAPA resources using multiple - criteria. + brings up a screen that allows you to change some preferences. \layout Itemize \series bold -LOGOUT (LOGOUT) +EXIT (LOGOUT) \series default will log you out of the LON-CAPA system. \layout Section @@ -555,26 +543,26 @@ Problem A \series bold -Map +Sequence \series default -\begin_inset LatexCommand \index{Map} +\begin_inset LatexCommand \index{Sequence} \end_inset - resource of the + is a type of \series bold -Sequence -\begin_inset LatexCommand \index{Sequence} +Map +\series default -\end_inset +\begin_inset LatexCommand \index{Map} +\end_inset -\series default - type represents a programmed series of events. + which is used to link other resources together. The users of this resource can use directional buttons on their remote or the NAV button to follow the sequence. - These resources are stored in files that must use the extension + Sequences are stored in files that must use the extension \begin_inset Quotes eld \end_inset @@ -583,27 +571,28 @@ Sequence \end_inset . + Sequences can contain other sequences and pages. \layout Itemize A \series bold -Map +Page \series default -\begin_inset LatexCommand \index{Map} +\begin_inset LatexCommand \index{Page} \end_inset - resource of the + is a type of \series bold -Page -\series default - -\begin_inset LatexCommand \index{Page} +Map +\begin_inset LatexCommand \index{Map} \end_inset - type display multiple resources together. + +\series default + which is used to join other resources together into one HTML page. For example, a page of problems will appears as a problem set. These resources are stored in files that must use the extension \begin_inset Quotes eld @@ -862,7 +851,23 @@ How to Create New Content Pages Content Pages \series default are HTML documents that display the course information you are presenting. - To create new Content Pages, do the following: + +\layout Standard + +Many users use tools such as Dreamweaver to create web pages. + To upload HTML files generated with such tools, you can use the +\series bold +Browse +\series default + button in the Construction Space, locate your HTML file, and use the +\series bold +Upload File +\series default + button to create a content page in LON-CAPA. + Remember to upload any graphics your generated web pages may have included. +\layout Standard + +To create new Content Pages, do the following: \layout Enumerate Click the @@ -870,10 +875,11 @@ Click the CSTR \series default button on the LON-CAPA remote. - You web page will change to your Construction Space. + Your web page will change to your Construction Space. \layout Enumerate -In Location bar of your browser, type in full URL of the new Content Page. +In the Location bar of your browser, type in the full URL of the new Content + Page. Make sure the last part of the URL ends with \begin_inset Quotes eld \end_inset @@ -883,22 +889,14 @@ In Location bar of your browser, type in \end_inset , for example, +\newline + \emph on -http://www.s10.lite.msu.edu/priv/\SpecialChar \- -directory/new_resource.html +http://www.s10.lite.msu.edu/priv/username/new_resource.html \emph default -. - Press the Return or Enter key. -\layout Enumerate - -You should see something like the following message: File not found: /home/wmson -j/priv/\SpecialChar \- -directory/new_resource.html, and an Edit button. - Click the -\series bold -Edit -\series default - button, and an HTML editor will open with a simple page template. + . +\newline +Press the Return or Enter key. \layout Enumerate Type the content into the editor, @@ -937,12 +935,29 @@ Repeat this process as many times as nec If you're following this as a tutorial, create at least one content page, which we'll use later as raw material. +\begin_float footnote +\layout Standard + +Visit the FAQ at +\family typewriter +http://help.lon-capa.org/ +\family default + if you get +\begin_inset Quotes eld +\end_inset + +unmatched tag +\begin_inset Quotes erd +\end_inset + + warnings. +\end_float \layout Subsection How to Edit Existing Content Pages \layout Standard -You may edit any any Content Pages that have been created. +You may edit any Content Pages that have been created. \layout Standard To edit Content Pages: @@ -961,7 +976,11 @@ Click on the link for the name of the Co Content Page. \layout Enumerate -Press the Edit button. +Press the +\series bold +Edit +\series default + button. Edit the HTML code, or copy and paste HTML source code into the editor. \layout Enumerate @@ -1012,11 +1031,29 @@ EditXML Problems Types \layout Standard -There are five types of problems that can be created with the LON-CAPA system: - Radio Response, Option Response, String Response, Numerical Response, and - Formula Response. +In this manual we will cover five basic types of problems: Radio Response, + Option Response, String Response, Numerical Response, and Formula Response. You will need to identify which types of problem you want to use and create appropriate questions for your course. +\layout Standard + +The problem editor gives you a testing area where you can try your problems + out, with several different randomizations by varying the +\series bold +Random Seed +\series default +. + If you answer a problem correctly and can no longer enter new answers, + you can get the answer field back by hitting the +\series bold +Reset Submissions +\begin_inset LatexCommand \index{Reset Submissions} + +\end_inset + + +\series default + button. \layout Subsubsection Foils @@ -1031,9 +1068,8 @@ Foil \series default - is a choice in a Radio Response or Option Response problem. - For instance, True/False problems have two foils, one for True, and one - for False. + is the statement after the drop-down box or radio button in a Radio Response + or Option Response problem. Foils do not need to be text; they can be images or other resources. \layout Subsubsection @@ -1049,18 +1085,12 @@ Radio Response \series bold Radio Response \series default - problems represent multiple choice questions. - A True/False problem is a special case of Radio Response problem with two - foils, True or False. -\layout Standard - -Multiple choice problems contain between 3 to 10 foils. - You may display from three to five foils for each problem and the system - randomly picks the choices that are presented to the student. -\layout Comment - -Eh? If this means what I think it means, clarify. - Is the system really incapable of showing eight choices all at once? + problems present a list of foils, with buttons in front. + The student can select +\emph on +one +\emph default + of these statements by clicking the appropriate radio button. \layout Subsubsection Option Response @@ -1071,11 +1101,15 @@ Option Response Problems \layout Standard -Option Response problems present foils to the student with drop-down boxes. - A group of foils is created for each concept group, and the system will - pick one to present to the student from each group. - The student must match each of his or her questions correctly to the possible - answers before receiving credit for the problem. + +\series bold +Option Response +\series default + problems present foils to the student with drop-down boxes. + The student can select the matching choice for the foils from a list of + choices. + Optionally, the foils may be bundled into Concept Groups, and the system + will select one foil from each displayed group to display to the student. For more details, see Create Option Response in section \begin_inset LatexCommand \ref{Create Option Response Problem} @@ -1163,8 +1197,11 @@ Numerical Response Formula Response Problems \layout Standard -Formula Response problems are questions in which the student types in a - math formula for the answer. + +\series bold +Formula Response +\series default + problems ask the student to type in a math formula for the answer. If the answer is \begin_inset Formula \( x^{2}-11 \) \end_inset @@ -1181,7 +1218,7 @@ Creating Radio Response Problems \layout Standard \align center -\begin_inset Figure size 476 201 +\begin_inset Figure size 476 202 file creatingNewProblemResource.eps width 3 80 flags 13 @@ -1198,7 +1235,7 @@ Creating A New Problem Resource \end_float -To create an Radio Response +To create a Radio Response \begin_inset LatexCommand \index{Radio Response} \end_inset @@ -1253,10 +1290,10 @@ Radio Response Creation Form \end_float - You will need to create the possible answers and the questions. + You will need to specify the question text and foil statements. \layout Enumerate -In the drop-down option box as seen in +In the drop-down option box as seen in figure \begin_inset LatexCommand \ref{Creating a new problem resource} \end_inset @@ -1347,7 +1384,15 @@ Four. \begin_inset Quotes erd \end_inset - + Make sure this is set to +\series bold +true +\series default + in the +\series bold +Correct Option +\series default + field. \layout Enumerate Below it, you will see @@ -1368,7 +1413,15 @@ Purple. \begin_inset Quotes erd \end_inset - + Make sure this is set to +\series bold +false +\series default + in the +\series bold +Correct Option +\series default + field. \layout Enumerate Repeat the previous step until you've filled in all of the other incorrect @@ -1414,6 +1467,15 @@ Scroll down to the Hint element, as show . Type some text that will help students when they answer incorrectly. + You may delete the hint by selecting +\series bold +Yes +\series default + from the +\series bold +Delete +\series default + drop-down box. \layout Enumerate Click the @@ -1439,7 +1501,7 @@ true \series bold true \series default -, so you can have questions with multiple correct answers. +, but only one will be shown to any given student. If it is set to \series bold false @@ -1469,9 +1531,9 @@ Maximum Number of Shown Foils box contains the number of incorrect answers, which will force them to all be displayed. If you wish to force the system to display the foils in the order you have - created them in, type the HTML tag + created them in, type the tag \series bold - + \series default into your problem text. This can be useful with the ever-popular @@ -1484,56 +1546,6 @@ All of the above choice, which must be displayed in the correct place or its meaning will change. -\layout Subsubsection - -True/False -\begin_inset LatexCommand \index{True/False Problem} - -\end_inset - - Problem -\layout Standard - -A True/False problem is a Radio Response problem with two choices, True - and False. - set the -\series bold -Maximum Number of Shown Foils -\series default - to -\begin_inset Quotes eld -\end_inset - -1 -\begin_inset Quotes erd -\end_inset - -, and mark the correct answer -\series bold -true -\series default -. - For example, for the True/False question -\begin_inset Quotes eld -\end_inset - -Napoleon conquered Japan in the year 189 A.D. -\begin_inset Quotes erd -\end_inset - -, mark the foil containing the answer -\begin_inset Quotes eld -\end_inset - -False -\begin_inset Quotes erd -\end_inset - - as -\series bold -true -\series default -, because it is the correct answer. \layout Subsection Option Response @@ -1612,12 +1624,12 @@ Concept Group \series default has some number of foils representing questions which are conceptually related. - Option Response Problems can have between 4 and 8 Concept Groups in a problem. + Option Response Problem Templates are available for 4 and 8 Concept Groups. When the Option Response problem is presented to a student, the LON-CAPA system will randomly select one foil from each Concept Group and present it to the student. - In order to receive credit for the problem, the student must answer all - of the Concept Group foils correctly. + In order to receive credit for the problem, the student must select the + corresponding option from the drop-down box for each given foil. \layout Subsubsection Example: Concept Group @@ -1672,10 +1684,13 @@ For each foil, the author marks it True Example: Matching Problem \layout Standard -You might want to ask the student to match musical compositions with their - composers. +Option Response problems can be used as matching problems as well. +\layout Standard + +For example, you might want to ask the student to match musical compositions + with their composers. You could create an Option Response problem with 4 Concept Groups, and - place the following four things each in their own concept group: + place the following four foil groups each in its own concept group: \layout Itemize Claire de Lune @@ -1683,7 +1698,7 @@ Claire de Lune \end_inset - +, Ballade \begin_float footnote \layout Standard @@ -1691,15 +1706,15 @@ Debussy. \end_float \layout Itemize -The Pastoral Symphony +The Pastoral Symphony, The Ninth Symphony \begin_float footnote \layout Standard -Beethoven's Sixth Symphony. +Beethoven. \end_float \layout Itemize -Sleeping Beauty Suite +Sleeping Beauty Suite, The Dance of the Sugar Plum Fairies \begin_float footnote \layout Standard @@ -1707,11 +1722,11 @@ Tchaikovsky. \end_float \layout Itemize -The Dance of the Sugar Plum Fairies +Slavonic Dances, New World Symphony \begin_float footnote \layout Standard -Also Tchaikovsky, from The Nutcracker. +Dvorak. \end_float \layout Standard @@ -1730,7 +1745,7 @@ Schubert Tchaikovsky \layout Itemize -Bach +Dvorak \layout Standard The same answers can be used more then once, or not at all, as you see fit. @@ -1776,7 +1791,7 @@ problem . \layout Enumerate -In the drop-down option box as seen in +In the drop-down option box as seen in figure \begin_inset LatexCommand \ref{Creating a new problem resource} \end_inset @@ -1850,8 +1865,8 @@ Locate the Max Number of Shown Foils \series default element and type a number from 1 to 8 to display that number of questions. - You cannot display more then one foil from each concept group, so this - option will only reduce the number of foils displayed, if it is less then + You cannot display more than one foil from each concept group, so this + option will only reduce the number of foils displayed, if it is less than the number of concept groups in your Option Response problem. \layout Enumerate @@ -1875,15 +1890,7 @@ Save Changes Save Changes \series default button, your option will not be selectable below. -\layout Enumerate - -To delete the irrelevant options from the Option Response question, select - that option from the -\series bold -Delete Option -\series default - drop down, and hit the Save Changes button. - Do that for each option you wish to remove. + (You will delete unwanted options in the last step.) \layout Enumerate Now, you need to define the question foils. @@ -1934,6 +1941,43 @@ In the Hint area, provide a helpful hint Save Changes \series default button. +\layout Enumerate + +Make sure all the options you want to delete are not used for any of your + foils +\begin_float footnote +\layout Standard + +If a deleted option is used in a foil, it will appear in a text box in the + +\series bold +Correct Option +\series default + area for that foil. + To make the drop-down box reappear, type an option already defined in the + +\series bold +Select Options +\series default + field, and hit +\series bold +Submit Changes +\series default +. + A drop-down box will reappear. +\end_float +. + To delete the irrelevant options from the Option Response question, select + that option from the +\series bold +Delete an Option +\series default + drop down, and hit the +\series bold +Save Changes +\series default + button. + Do that for each option you wish to remove. \layout Subsubsection Simple Option Response: No Concept Groups @@ -1944,15 +1988,19 @@ If you select Simple Option Response \series default from the drop-down box, you get a template that will allow you to enter - up to eight foils, and the system will randomly select from these foils, - with no grouping. - Otherwise, it's identical to Option Response problems. + up to eight foils with no grouping. + The system will randomly mix these foils when presenting them to the student. + You can have more foils then the +\series bold +Max Num of Shown Foils +\series default + so that each student will not have the identical foils. \layout Subsection Creating a String Response Problem \layout Standard -To create an String Response problem, create a new resource as described +To create a String Response problem, create a new resource as described in section \begin_inset LatexCommand \ref{Creating New Content Pages} @@ -1984,14 +2032,14 @@ problem . \layout Enumerate -In the drop-down option box as seen in +In the drop-down option box as seen in figure \begin_inset LatexCommand \ref{Creating a new problem resource} \end_inset -, select +, select \series bold -Simple String Response Problem + String Response Problem \series default , and click the \series bold @@ -2035,8 +2083,11 @@ String Response Editor . \layout Enumerate -Clear the text from the Text Block at the top of the problem, and type in - your problem's question. +Clear the text from the +\series bold +Text Block +\series default + at the top of the problem, and type in your problem. \layout Enumerate In the @@ -2046,7 +2097,7 @@ Answer Box , type the correct answer. \layout Enumerate -Select the answer condition from the drop down box. +Select the answer condition from the drop-down. There are three cases to choose from: \begin_deeper \layout Enumerate @@ -2064,7 +2115,7 @@ Case Sensitive \end_inset . - For example, this is useful in Chemistry, where HO and Ho are completely + For example, this is useful in chemistry, where HO and Ho are completely different answers \begin_float footnote \end_deeper @@ -2230,11 +2281,27 @@ Single Line Text Entry Area box size to 2, the student can still enter 3 or more letters in their answer. \layout Enumerate -Scroll down to the Hint element, and type some text that will help students - when they answer incorrectly. +Scroll down to the +\series bold +Hint +\series default + element, and type some text that will help students when they answer incorrectl +y, or delete the hint by setting the +\series bold +Delete +\series default + field to +\series bold +Yes +\series default +. \layout Enumerate -Click the Submit Changes button. +Click the +\series bold +Submit Changes +\series default + button. \layout Subsection Creating Numerical Response And Formula Response Problems @@ -2258,15 +2325,15 @@ Numerical Response problems are answered \begin_inset Formula \( x^{2}+11 \) \end_inset -, the system will accept -\begin_inset Formula \( x*x-11 \) +, the system will also accept +\begin_inset Formula \( x*x+11 \) \end_inset or \begin_inset Formula \( x^{2}+21-10 \) \end_inset - as well. +. \layout Standard Creating Numerical Response and Formula Response problems starts the same @@ -2289,7 +2356,7 @@ Creating Numerical Response and Formula Publishing Your Resources \layout Standard -In order to make the content you've created available for courses to use, +In order to make the content you've created available for use in courses, you must publish your content. LON-CAPA provides an easy interface for publishing your content pages, problem resources, and sequences. @@ -2327,16 +2394,17 @@ data about data For instance, if you create a problem and neglect to say in the title or subject of the problem what it is about, then a human who wants to use that problem would have to read the problem itself to see what it was about, - which is much more difficult then just reading a title. + which is much more difficult than just reading a title. A computer trying to do the same thing would just be out of luck; it is too stupid to understand the problem statement at all. \layout Standard -One example of metadata you use all the time is the of a web page, - which usually shows up in the title bar of the browser. +One example of metadata is the <title> of a web page, which usually shows + up in the title bar of the browser. That's information about the web page itself, not actually part of the web page. - People use it when they bookmark a page, so they know what the page is. + People use the title information when they bookmark a page, so they know + what the page is. Search engines use it as a clue about the content of the web page. \layout Subsection @@ -2425,12 +2493,16 @@ Publishing Metadata Screen \layout Standard -The language is the language the problem is written in. - The Publisher/Owner is the person who owns the problem; it should be the - email address where anybody with questions about the resource can contact - someone who can help them. - In smaller environments, this is likely to be the author. - In larger environments, it may be a coordinator or manager. +The +\series bold +Language +\series default + is the language the problem is written in. + The +\series bold +Publisher/Owner +\series default + is the LON-CAPA user who owns the problem. \layout Standard The @@ -2456,8 +2528,8 @@ pulley \end_inset as a key word. - LON-CAPA pulls out likely-looking keywords for you so you can just click - on their check boxes to make them keywords. + LON-CAPA pulls out words used in the text of the resource for you so you + can just click on their check boxes to make them keywords. \series bold Additional keywords @@ -2474,11 +2546,23 @@ statics , even though it doesn't appear in the original problem, because Physics uses that as a classification of problem type. + +\series bold +Additional Keywords +\series default + are also useful when publishing graphics. \layout Standard -Finally, you need to set the copyright and distribution notice. - This setting controls who is allowed to use your resource. +Finally, you need to set the copyright and distribution permissions in the +\series bold +COPYRIGHT/DISTRIBUTION +\series default + drop-down. + This setting controls who is allowed to use your resource as follows: +\layout Comment + +Is this right? \layout Itemize @@ -2544,14 +2628,26 @@ In order to create a useful course, we n so that students can use them. \layout Subsection -Binding Together Resources In One Map: Page -\begin_inset LatexCommand \index{Page} +Creating Sequences +\begin_inset LatexCommand \index{Sequence} \end_inset \layout Standard +A +\series bold +Sequence +\series default + is a series of resources that can be navigated using the +\series bold +NAV +\series default + remote control button, or by using the arrow keys on the remote control. + +\layout Standard + \begin_float fig \layout Standard \align center @@ -2573,16 +2669,7 @@ Map Editor Selection \end_float -To join several resources into one web page, you need to create a -\series bold -Map -\series default - of type -\series bold -Page -\series default -. - To create Page resource, create a new resource as described in section +To create a Sequence resource, create a new resource as described in section \begin_inset LatexCommand \ref{Creating New Content Pages} @@ -2593,7 +2680,7 @@ Page \begin_inset Quotes eld \end_inset -page +sequence \begin_inset Quotes erd \end_inset @@ -2601,7 +2688,7 @@ page \begin_inset Quotes eld \end_inset -.page +.sequence \begin_inset Quotes erd \end_inset @@ -2610,7 +2697,7 @@ page \begin_inset Quotes eld \end_inset -.page +.sequence \begin_inset Quotes erd \end_inset @@ -2621,67 +2708,9 @@ page . You can use either the advanced editor or the simplified editor. - -\layout Comment - -The following is a commented-out section of the manual, likely to not be - useful. -\layout Comment - -About The Editor -\layout Comment - -\begin_float fig -\layout Caption - -Example of the Map Editor -\begin_inset LatexCommand \label{Map Editor Example Figure} - -\end_inset - - -\end_float -Maps are very powerful and can do a lot. - They can make decisions as the user progresses, going down different paths - under different circumstances. - For instance, a map can go down one path if the user gets a problem right, - and another path if they don't which will provide more help for the student. - -\layout Comment - -To facilitate editing these powerful entities, LON-CAPA has a map editor - that helps you take advantage of this power, as seen in figure -\begin_inset LatexCommand \ref{Map Editor Example Figure} - -\end_inset - -. - The map editor can display the different paths in your browser, and allow - you to edit, insert, and delete resources from your map. - The editor has a -\series bold -Start -\series default - area and a -\series bold -Finish -\series default - area. - The students in the course will progress along on path or another, depending - on decisions made at each resource, as explained later. - Different paths are represented with different lines in the map editor. - In the example figure, there are two paths the student can go down, depending - on whether or not they get the problem at the branch point correct. - By the end of this section, we'll create the map represented in this figure. -\layout Comment - -The branching ability can obviously be used to help the student understand - the concept in the problem by having them go through some extra material - based on their performance, but the total uses of this feature are limited - only by your imagination. \layout Subsection -Creating a Simple .page With The Simple Editor +Creating a Simple .sequence With The Simple Editor \layout Standard \begin_float fig @@ -2705,8 +2734,8 @@ Simple Map Editor \end_float -After creating a new .page resource and getting the editor selection prompt - (figure +After creating a new .sequence resource and getting the editor selection + prompt (figure \begin_inset LatexCommand \ref{Map Editor Selection Figure} \end_inset @@ -2715,7 +2744,7 @@ After creating a new .page resource and \series bold Simple Edit \series default - button to get to the simple sequence editor, which appears in figure + button to get to the simple map editor, which appears in figure \begin_inset LatexCommand \ref{Simple Map Editor} \end_inset @@ -2749,7 +2778,8 @@ On both sides of the screen, you can do from that search into either directly into your Map, or into your Import space. Checkboxes will appear next to the results in the Group Search, and you - can click the resource you wish to add to your map. + can click the resource you wish to add to your map in the order that you + want them added. After you select the resource, you will be presented with a screen that allows you to change the order of the selected resources, then you will be able to import the selected resources and work with them. @@ -2770,11 +2800,11 @@ Both list boxes support standard multi-s OS. \layout Subsection -Creating a Simple .page With The Advanced Editor +Creating a Simple .sequence With The Advanced Editor \layout Standard -After creating a new .page resource and getting the editor selection prompt - (figure +After creating a new .sequence resource and getting the editor selection + prompt (figure \begin_inset LatexCommand \ref{Map Editor Selection Figure} \end_inset @@ -2783,7 +2813,7 @@ After creating a new .page resource and \series bold Advanced Edit \series default - button to get to the advanced sequence editor. + button to get to the advanced map editor. \begin_float fig \layout Standard @@ -2806,15 +2836,14 @@ Initial Map Editor \end_float -You should the initial map editor as seen in figure +You should see the initial map editor as shown in figure \begin_inset LatexCommand \ref{Initial Map Editor FIgure} \end_inset . - Note there are two windows. - One is the workspace, and one is a secondary window which will contain - information as you add resources. + Note there are two windows: One is the workspace, and one is a secondary + window which will contain information as you add resources. \layout Enumerate \begin_float fig @@ -2831,14 +2860,22 @@ flags 9 \layout Caption -Clicked Start in the Map Constructor +After clicking +\series bold +Start +\series default + in the Map Constructor \begin_inset LatexCommand \label{Clicked Start Figure} \end_inset \end_float -Click the Start box. +Click the +\series bold +Start +\series default + box. You'll see what you see in figure \begin_inset LatexCommand \ref{Clicked Start Figure} @@ -2846,14 +2883,14 @@ Click the Start box. . Click -\begin_inset Quotes eld -\end_inset - +\series bold Link Resource -\begin_inset Quotes erd -\end_inset - - in the secondary window, then click on the Finish box. +\series default + in the secondary window, then click on the +\series bold +Finish +\series default + box. \begin_float fig \layout Standard \align center @@ -2876,13 +2913,9 @@ Straightened Map \end_float After that, click -\begin_inset Quotes eld -\end_inset - -straighten -\begin_inset Quotes erd -\end_inset - +\series bold +Straighten +\series default . You should see something like figure \begin_inset LatexCommand \ref{Striaghtened map} @@ -2914,7 +2947,21 @@ Inserting a Resource \end_float -To insert a resource into the flow, click the black line with two arrows. +To insert a resource into the flow, click the black line with two arrows, + seen between the +\series bold +Start +\series default + and +\series bold +Finish +\series default + boxes in figure +\begin_inset LatexCommand \ref{Striaghtened map} + +\end_inset + +. In the secondary window, you'll see something like figure \begin_inset LatexCommand \ref{Inserting a Resource Figure} @@ -2926,8 +2973,12 @@ To insert a resource into the flow, clic Insert Resource Into Link \series default . - A new resource will appear in the link. - Click the resource. + A new resource box will appear in the link. + Click the resource, which will have the label +\series bold +Res +\series default +. \layout Enumerate Click @@ -2966,7 +3017,12 @@ Network Directory Browser \end_inset . - Press the select button that is next to the resource you want to include. + Press the +\series bold +SELECT +\series default + button that is next to the resource you want to place in the chosen resource + box. \begin_float fig \layout Standard \align center @@ -3008,13 +3064,13 @@ URL Title \series default into the secondary window, if you prefer, following the format you see - above. + when you've successfully browsed to a resource. After you click \series bold Save Changes \series default -, your changes will be saved, and the icons for the resource will appear - in the +, your changes will be set, and the icons for the resource will appear in + the \series bold Res \series default @@ -3024,6 +3080,11 @@ Res \end_inset . + Click +\series bold +Save Map +\series default + in the bar above your map to save the map. \begin_deeper \layout Standard @@ -3055,21 +3116,23 @@ In addition to manually adding in resour The advanced editor has many more capabilities which you can explore. \layout Subsection -Creating Sequences -\begin_inset LatexCommand \index{Sequence} +Page Maps +\layout Standard +Creating a .page map is the same as creating a sequence map, except that + when choosing the name of the resource, the URL will end with +\begin_inset Quotes eld \end_inset +.page +\begin_inset Quotes erd +\end_inset +. + Then all resources you add in the map editor will appear on one page together. \layout Standard -Sequences are a series of resources that can be navigated using the -\series bold -NAV -\series default - remote control button, or by using the arrow keys on the remote control. - Sequence maps are created identically to page maps. - The only difference is how they are displayed. +Pages are often used to connect problems in a homework set. \layout Subsection Creating a Course: Top-level Sequence @@ -3103,10 +3166,10 @@ Creating a New Course \end_float Courses have a Top-level Map which defines the whole course. This top-level map will often itself contain maps corresponding to homework - assignments or weekly sequences. + assignments, chapters, or units. To view your maps, you will need to make them part of a course. - Only Domain Administrators can make courses and set their Top-level maps, - so coordinate with your Domain Administrator if you need to view your maps. + Only Domain Coordinators can make courses and set their Top-level maps, + so work with your Domain Coordinator if you need to view your maps. \layout Section Numerical Response @@ -3125,34 +3188,12 @@ Numerical Response Numerical Response problems are very powerful. In fact, they are so powerful it would be impossible to fully explain what is possible in a document like this. - This chapter will focus on just getting you started with Numerical Response + This chapter will focus on getting you started with Numerical Response problems, and showing you some of the possibilities, with no prerequisite knowledge necessary. The more you learn, the more you will find you can do. \layout Standard -In this chapter and the next, I will use the terms -\series bold -static -\series default - and -\series bold -dynamic -\series default -. - -\series bold -Static -\series default - means the object never changes, and is the same for each student. - By contrast, -\series bold -dynamic -\series default - means the value can change, because there is some script that computes - it for each student. -\layout Standard - If you like, you can follow this chapter along as its own tutorial. Create a Numerical Response problem using the instructions in section \begin_inset LatexCommand \ref{Creating New Content Pages} @@ -3218,15 +3259,14 @@ Script The Script language is \series bold Perl -\begin_float footnote -\layout Standard - -For lots and lots more information about Perl, see the Perl website at http://ww -w.perl.org/ . -\end_float +\series default . - You do not need to know Perl to use the Script block, as we will be stepping - through some advanced examples in this chapter, but knowing Perl can help. + You do not need to know Perl to use the +\series bold +Script +\series default +block, as we will be stepping through some advanced examples in this chapter, + but knowing Perl can help. \layout Enumerate Like other problem types, the @@ -3234,7 +3274,7 @@ Like other problem types, the Text Block \series default is used to display the problem the student will see. - In addition, you can place things in the + In addition, you can place variables in the \series bold Text Block \series default @@ -3266,7 +3306,7 @@ tolerance \series default - parameter, which determines how closely the system will require the student + parameter, which determines how closely the system will require the student's answer to be in order to count it correct. For technical reasons, it is almost never a good idea to set this parameter to zero @@ -3311,7 +3351,7 @@ need \end_float , though you may find the default too large for some problems. There are two kinds of tolerance. - If there is some answer + For some answer \begin_inset Formula \( a \) \end_inset @@ -3498,11 +3538,31 @@ min,max \end_inset are the same. -\begin_deeper -\layout Comment + A significant figure specification of +\begin_inset Quotes eld +\end_inset -Confirm this. -\end_deeper +3,4 +\begin_inset Quotes erd +\end_inset + + means both +\begin_inset Quotes eld +\end_inset + +1.30 +\begin_inset Quotes erd +\end_inset + + and +\begin_inset Quotes eld +\end_inset + +1.300 +\begin_inset Quotes erd +\end_inset + + are acceptable. \layout Enumerate The @@ -3517,8 +3577,7 @@ Finally, the \series bold Hint \series default - provides a place to help students who get the problem incorrect the first - time. + should contain text which will help the students when they answer incorrectly. \layout Subsection Simple Numerical Response Answer @@ -3560,8 +3619,7 @@ Answer \series bold Hint \series default - has been set to something appropriate for this problem (unless this problem - is being given to very young children). + has been set to something appropriate for this problem. Everything else has the default values from when the problem was created. \layout Standard @@ -3577,7 +3635,12 @@ View yourself. Note the last box in the HTML page has the answer LON-CAPA is looking for conveniently displayed for you, along with the range the computer will - accept and the number of significant digits the computer requires. + accept and the number of significant digits the computer requires when + viewed by an +\series bold +Author +\series default +. \layout Standard As you're playing with the problem, if you use up all your tries or get @@ -3628,7 +3691,7 @@ statement \series default - is the smallest kind of instruction to the computer you can give. + is the smallest kind of instruction to the computer. Most problems will be built from several statements. \layout Standard @@ -3666,7 +3729,7 @@ variable assignment variable \series default can hold any value in it. - Simple values, such as a number or a string of text, start with a + The variable name must start with a \series bold $ \series default @@ -3676,32 +3739,18 @@ $ Script \series default , you need to assign to variables before you use them. - Put the program in Figure -\begin_float fig -\layout LyX-Code -\align center -$variable = 3; -\layout Caption -\pextra_type 3 \pextra_widthp 40 - -A simple script with a variable -\begin_inset LatexCommand \label{A simple script with a variable} - -\end_inset - - -\end_float - -\begin_inset LatexCommand \ref{A simple script with a variable} - -\end_inset - - into the + Put this program into the \series bold Script \series default - field of the Numerical Response. - This creates a simple variable named + field of the Numerical Response: +\begin_deeper +\layout LyX-Code + +$variable = 3; +\layout Standard + +This creates a variable named \series bold variable \series default @@ -3715,6 +3764,7 @@ variable . That's one statement. +\end_deeper \layout Standard Variable names are @@ -3727,13 +3777,6 @@ case sensitive \layout Standard -Getting variable names right is a skill. - Variable names should not be too long, because they become easy to mistype. - Variable names should also not be too short, with the exception of some - conventionally short variable names used in control flow statements, which - are not covered in this manual. -\layout Standard - There are many variable naming conventions, covering both how to name and how to capitalize variables \begin_float footnote @@ -3746,7 +3789,7 @@ capsOnNewWords . Some people use \family typewriter -underscore_to_seperate_words +underscore_to_separate_words \family default . Many use uppercase letters to specify constants like @@ -3763,7 +3806,7 @@ GOLDEN_MEAN StartWithCapatalization \family default . - What's really importent is to be consistent, so you don't have to guess + What's really important is to be consistent, so you don't have to guess whether the variable you're thinking of is \family typewriter coefFriction @@ -3875,7 +3918,11 @@ stringVar \layout Standard If you are following this chapter as a tutorial, add the previous two lines - and save the problem. + to your +\series bold +Script +\series default + and submit the changes for the problem. There's no need to view it; there's still no visible change. \layout Subsubsection @@ -3973,14 +4020,10 @@ Answer This means you can compute an answer to a question, which we'll see in a bit. If you set the answer of the question to be -\begin_inset Quotes eld -\end_inset - +\series bold $variable -\begin_inset Quotes erd -\end_inset - - (without the quotes), +\series default +, \series bold Save Changes \series default @@ -3992,7 +4035,7 @@ View \begin_inset Quotes eld \end_inset -3 +3.0 \begin_inset Quotes erd \end_inset @@ -4019,13 +4062,13 @@ ework5.html. \begin_float fig \layout LyX-Code -$a = 3; +$a = -3.0; \layout LyX-Code $b = &sin($a); \layout LyX-Code -$c = &pow(3, &floor($a)); +$c = &pow(3.0, &abs($a)); \layout Caption Some Function Calls @@ -4054,20 +4097,19 @@ Script of other function calls as parameters. The \family typewriter -sin +&sin \family default function returns the sine of an angle expressed in radians. \family typewriter -pow +&pow \family default raises the first parameter to the power of the second parameter. \family typewriter -floor +&abs \family default - returns the nearest integer below the parameter, which since 3 is already - an integer is 3. + returns the absolute value of the argument. \layout Subsubsection Randomization @@ -4083,7 +4125,7 @@ For LON-CAPA, one of the most important random \family default function. - Random takes three parameters, a + Random takes three parameters: a \emph on lower limit \emph default @@ -4098,7 +4140,7 @@ interval . The \family typewriter -random +&random \family default function returns a random value between the upper and lower limit, some integer number of @@ -4113,7 +4155,7 @@ interval might return 1, 1.2, 1.4, 1.6, 1.8, or 2. \family typewriter -random +&random \family default uses a uniform distribution. Other distributions are available in LON-CAPA, and can be found by consulting @@ -4123,10 +4165,10 @@ random \begin_float fig \layout LyX-Code -$a = &random(1,10,1); +$a = &random(1.0,10.0,1.0); \layout LyX-Code -$b = &random(-10, -3, 1); +$b = &random(-10.0, -3.0, 1.0); \layout LyX-Code $answer = $a+$b; @@ -4279,7 +4321,7 @@ both \emph default with the expression \family typewriter -&rand(-1,1,.2) +&random(-1.0,1.0,.2) \family default . One out of ten students would get a problem where both slopes were equal, @@ -4358,50 +4400,29 @@ Format \begin_inset Quotes erd \end_inset - will display three significant digit in traditional notation if possible, - and scientific notation if the number is too large or too small. - You can use any small number that you want instead of -\begin_inset Quotes eld -\end_inset - -2 -\begin_inset Quotes erd -\end_inset - -. + will display two digits after the decimal point. \layout Subsection For More Information \layout Standard -It's always a good idea to look at other people's LON-CAPA problems, especially - those from the same discipline as your problems, and see what they are - doing. - -\series bold -Very often, the easiest way to create a new problem is to copy it and modify - the copy until it does what you need. - -\series default - The more complicated a problem is, the more time you'll save by doing this. - You may also find new ideas you can use and elaborate on in your problems. -\layout Comment - -Is there UI for this? Check. -\layout Standard - -The full power of the Perl is well outside the scope of this document. - Looking in the function list at http://mileva.lite.msu.edu/loncapadocs/homework/ho -mework5.html can give you some ideas. +The full power of Perl is well outside the scope of this document. + Looking in the function list at +\newline +http://mileva.lite.msu.edu/loncapadocs/homework/homework5.html +\newline +can give you some ideas. O'Reilly has some good Perl books. - The Perl 5 Pocket Reference will contain more then what you need to know - to use LON-CAPA, available at http://www.oreilly.com/catalog/perlpr3/ . + The Perl 5 Pocket Reference will contain more than what you need to know + to use LON-CAPA, available at +\newline +http://www.oreilly.com/catalog/perlpr3/ . \layout Standard If you have any problems, consult http://help.loncapa.org/fom/cache/5.html . If you don't find the answer to your problem, please help us expand the - FAQ by emailing us your question so we can answer it. + FAQ by submitting a new pending question. \layout Standard Our advanced users often come to prefer the XML interface for the problems, @@ -4496,7 +4517,7 @@ As you may know, it is extremely difficu Sampling Specifications \layout Standard -To specify where to sample the formulas to determine whether the student's +To specify where to sample the formulas for determining whether the student's answer is correct, you need to put a sampling specification in the \series bold Sample Points @@ -4508,10 +4529,10 @@ Sample Points field. The sampling specifications takes the following format: -\layout Itemize +\layout Enumerate -A comma seperated list of the variables you wish to interpret, -\layout Itemize +A comma separated list of the variables you wish to interpret, +\layout Enumerate followed by \begin_inset Quotes eld @@ -4522,7 +4543,7 @@ followed by \end_inset (not in quotes), -\layout Itemize +\layout Enumerate followed by any number of the following two things, separated by semi-colons: \begin_deeper @@ -4533,8 +4554,8 @@ a comma separated list of as many number \layout Enumerate a comma separated list of as many numbers as there are variables, followed - a colon, followed by another list of as many numbers as there are variables, - followed by #, followed by an integer. + by a colon, followed by another list of as many numbers as there are variables, + followed by a #, followed by an integer. \end_deeper \layout Standard @@ -4575,11 +4596,22 @@ x@2 \begin_inset Quotes eld \end_inset +x@1:5#4 +\begin_inset Quotes erd +\end_inset + + will takes 4 samples from somewhere between 1 and 5. +\layout Itemize + + +\begin_inset Quotes eld +\end_inset + x@1:5#4;10 \begin_inset Quotes erd \end_inset - will take 4 samples from somewhere between 1 and 5, and also sample at + will takes 4 samples from somewhere between 1 and 5, and also sample at 10. \layout Standard @@ -4652,58 +4684,46 @@ Script , place the following: \layout LyX-Code -$slope = random(-5,5,.5); +$slope = &random(-5.0,5.0,.5); \layout LyX-Code -$yint = random(-5,5,.5); -\layout Itemize +$yint = &random(-5.0,5.0,.5); +\layout LyX-Code -In the -\series bold -Text Block -\series default -, place the following: +$answer = \begin_inset Quotes eld \end_inset -For a line with slope $slope and y-intercept $yint, what is y equal to? +$slope*x + ($yint) \begin_inset Quotes erd \end_inset - +; \layout Itemize In the \series bold -Answer +Text Block \series default , place the following: \begin_inset Quotes eld \end_inset -$slope*x + ($yint) +For a line with slope $slope and y-intercept $yint, what is y equal to? \begin_inset Quotes erd \end_inset \layout Itemize -Set the Tolerance to .000001. -\layout Itemize - -Set the +In the \series bold Answer \series default - to -\begin_inset Quotes eld -\end_inset - -$slope * x + $yint -\begin_inset Quotes erd -\end_inset +, place the following: $answer +\layout Itemize -. +Set the Tolerance to .000001. \layout Itemize Set the @@ -4806,12 +4826,4 @@ ANOT (ANOTATE) LOGOUT (LOGOUT) \series default will log you out of the LON-CAPA system. -\layout Standard - - -\begin_inset LatexCommand \printindex{} - -\end_inset - - \the_end