File:  [LON-CAPA] / loncom / homework / templates / RandomLabelExample.problem
Revision 1.5: download - view: text, annotated - select for diffs
Mon Jul 6 17:12:47 2009 UTC (14 years, 10 months ago) by bisitz
Branches: MAIN
CVS tags: version_2_9_99_0, version_2_12_X, version_2_11_X, version_2_11_4_uiuc, version_2_11_4_msu, version_2_11_4, version_2_11_3_uiuc, version_2_11_3_msu, version_2_11_3, version_2_11_2_uiuc, version_2_11_2_msu, version_2_11_2_educog, version_2_11_2, version_2_11_1, version_2_11_0_RC3, version_2_11_0_RC2, version_2_11_0_RC1, version_2_11_0, version_2_10_X, version_2_10_1, version_2_10_0_RC2, version_2_10_0_RC1, version_2_10_0, loncapaMITrelate_1, language_hyphenation_merge, language_hyphenation, bz6209-base, bz6209, bz2851, PRINT_INCOMPLETE_base, PRINT_INCOMPLETE, HEAD, GCI_3, BZ4492-merge, BZ4492-feature_horizontal_radioresponse, BZ4492-feature_Support_horizontal_radioresponse, BZ4492-Support_horizontal_radioresponse
Consistent problem templates:
- New line after each tag (not for texts in foils)
- One empty row after each end tag and before new start tag for second level tags
- No indentation for second level tags, e.g. <script>
- Four white spaces as indentation for each further sub level
    Exceptions:
        -Content (mostly text) in separate line(s): no indentation
        - Concept groups: same indentation as foilgroup
          (allows to insert code from problems without concept groups without changing the indentation and vice versa)
- No new line at end of template
- Removed new lines from within the middle of default texts
- Added one blank each after "<m>$" and before "$</m>" to ensure no misinterpretation neither by human nor by machine (e.g. "<m>$x" is not "<m>$ $x")
- Replaced deprecated font tag in <instructorcomment> by CSS
- Removed dos line endings
- dos2unix conversion
  (ClickImageExample.problem, RandomLabelExample.problem, SimpleMatching.problem)

    1: <problem>
    2: 
    3: <randomlabel width="576" height="432" texwidth="60" bgimg="/res/adm/includes/templates/man1.jpg">
    4:     <labelgroup name="face" type="text">
    5:         <location x="73" y="60" value="">
    6:         </location>
    7:         <location x="443" y="169" value="">
    8:         </location>
    9:         <location x="46" y="263" value="">
   10:         </location>
   11:         <location x="364" y="332" value="">
   12:         </location>
   13: 
   14:         <label>A</label>
   15:         <label>B</label>
   16:         <label>C</label>
   17:         <label>D</label>
   18:     </labelgroup>
   19: </randomlabel>
   20: 
   21: <startouttext />
   22: Match the following:
   23: <endouttext />
   24: 
   25: <optionresponse max="10">
   26:     <foilgroup options="('A', 'B', 'C', 'D')">
   27:         <foil name="eyebrow" value="$face{1}">
   28:             <startouttext />eyebrow<endouttext />
   29:         </foil>
   30:         <foil name="eye" value="$face{2}">
   31:             <startouttext />eye<endouttext />
   32:         </foil>
   33:         <foil name="nose" value="$face{3}">
   34:             <startouttext />nose<endouttext />
   35:         </foil>
   36:         <foil name="mouth" value="$face{4}">
   37:             <startouttext />mouth<endouttext />
   38:         </foil>
   39:     </foilgroup>
   40:     <hintgroup>
   41:         <startouttext /><endouttext />
   42:     </hintgroup>
   43: </optionresponse>
   44: 
   45: </problem>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>