File:  [LON-CAPA] / loncom / homework / templates / reaction.problem
Revision 1.2: download - view: text, annotated - select for diffs
Mon Jul 6 17:12:47 2009 UTC (14 years, 11 months ago) by bisitz
Branches: MAIN
CVS tags: HEAD
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: <script type="loncapa/perl">
    4: $formula = "C2H5OH";
    5: $name = "ethanol";
    6: $answer = "C2H5OH + 3O2 -> 2CO2 + 3H2O";
    7: </script>
    8: 
    9: <startouttext />
   10: <p>
   11: Write a balanced reaction for the complete combustion of $name (<chem>$formula</chem>) in oxygen, using the smallest integer coefficients.
   12: </p>
   13: <endouttext />
   14: 
   15: <reactionresponse answer="$answer" initial="$formula ->">
   16:     <textline readonly="yes" />
   17:     <hintgroup showoncorrect="no">
   18:         <stringhint answer="/\(g\)/" name="state" type="re" />
   19:         <hintpart on="state">
   20:             <startouttext />Do not include symbols for state of matter in your answer.<endouttext />
   21:         </hintpart>
   22:     </hintgroup>
   23: </reactionresponse>
   24: 
   25: </problem>

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