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, 10 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)

<problem>

<script type="loncapa/perl">
$formula = "C2H5OH";
$name = "ethanol";
$answer = "C2H5OH + 3O2 -> 2CO2 + 3H2O";
</script>

<startouttext />
<p>
Write a balanced reaction for the complete combustion of $name (<chem>$formula</chem>) in oxygen, using the smallest integer coefficients.
</p>
<endouttext />

<reactionresponse answer="$answer" initial="$formula ->">
    <textline readonly="yes" />
    <hintgroup showoncorrect="no">
        <stringhint answer="/\(g\)/" name="state" type="re" />
        <hintpart on="state">
            <startouttext />Do not include symbols for state of matter in your answer.<endouttext />
        </hintpart>
    </hintgroup>
</reactionresponse>

</problem>

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