考试写作:如何创建选项来圈出答案

考试写作:如何创建选项来圈出答案

我正在尝试找到一个代码,让学生选择正确的答案。我知道如何做多项选择题。但是,我希望这道题能全部放在一个问题中,而不是分散开来。有什么建议吗?

目前我已经为学生创建了一个空间来写下他们的答案。但是,我更希望提供两个选项供他们选择。

因此,我尝试添加格式化的“还原/氧化”

在每个化学半方程式/方程式的末尾。

在此处输入图片描述

\documentclass[
    a4paper,
    12pt,
    addpoints,
    noanswers
]
{exam}

\usepackage[version=4]{mhchem}

\newcommand{\subject}{Chemistry}
\newcommand{\paper}{SAT 2: Topic 3}
\newcommand{\papershort}{SAT 2}
\newcommand{\conditions}{90 Minutes, Exam Conditions}
\newcommand{\duedate}{June 26}

\begin{document}

\begin{questions}

\ifprintanswers
\else
\fullwidth{You and your supervisor must \textbf{write your names}
to agree that exam conditions were satisfied.}
\fi

\question
Identify these reactions as either oxidation or reduction (circle answer):
\begin{parts}
\part[1]
\ce{Ca -> Ca^2+ + 2e-}

\begin{solutionordottedlines}[.25in]
oxidation
\end{solutionordottedlines}

\part[1]
\ce{F2 +2e- -> 2F-}

\begin{solutionordottedlines}[.25in]
reduction
\end{solutionordottedlines}

\part[1]
\ce{H2O2 + 2H+ +2e- -> 2H2O}

\begin{solutionordottedlines}[.25in]
reduction
\end{solutionordottedlines}

\part[1]
\ce{Cu -> Cu^2+ + 2e-}
\begin{solutionordottedlines}[.25in]
oxidation
\end{solutionordottedlines}
\end{parts}

\end{questions}

\end{document}

答案1

我是否正确,你只是想获得:

在此处输入图片描述

如果是这样,那么您只需 Reduction /Oxidation在每个问题末尾添加即可实现此目的。或者,您可以使用类似

\newcommand\ReductionOxidation{\hfill Reduction / Oxidation}

这样做。\hfill将 推reduction/oxidation到右边距。如果您愿意,您可以更“花哨”地定义

\newcommand\ReductionOxidation[1]{\ce{#1}\hfill Reduction / Oxidation}

然后写下\ReductionOxidation{Ca -> Ca^2+ + 2e-}问题——这样你就不用再输入了\ce。以下是上述输出的完整 MWE:

\documentclass[ a4paper, 12pt, addpoints, noanswers ] {exam}

\usepackage[version=4]{mhchem}

\newcommand{\subject}{Chemistry}
\newcommand{\paper}{SAT 2: Topic 3}
\newcommand{\papershort}{SAT 2}
\newcommand{\conditions}{90 Minutes, Exam Conditions}
\newcommand{\duedate}{June 26}

\newcommand\ReductionOxidation{\hfill Reduction / Oxidation}

\begin{document}

\begin{questions}

\ifprintanswers
\else
\fullwidth{You and your supervisor must \textbf{write your names} to agree that exam conditions were satisfied.}
\fi

\question
Identify these reactions as either oxidation or reduction (circle answer):
\begin{parts}
\part[1]
\ce{Ca -> Ca^2+ + 2e-}\ReductionOxidation

\begin{solutionordottedlines}[.25in]
oxidation
\end{solutionordottedlines}

\part[1]
\ce{F2 +2e- -> 2F-}\ReductionOxidation

\begin{solutionordottedlines}[.25in]
reduction
\end{solutionordottedlines}

\part[1]
\ce{H2O2 + 2H+ +2e- -> 2H2O}\ReductionOxidation

\begin{solutionordottedlines}[.25in]
reduction
\end{solutionordottedlines}

\part[1]
\ce{Cu -> Cu^2+ + 2e-}\ReductionOxidation
\begin{solutionordottedlines}[.25in]
oxidation
\end{solutionordottedlines}
\end{parts}

\end{questions}

\end{document}

编辑

您可能还会更加好奇,将的定义替换\ReductionOxidation为:

\usepackage{tikz}
\usetikzlibrary{shapes.geometric}
\newcommand\ellipse[1]{\tikz[baseline=(current bounding box.center)]{\node[ellipse,draw]{#1};}}
\newcommand\ReductionOxidation{\hfill\ellipse{Reduction}\space\ellipse{Oxidation}}

生产:

在此处输入图片描述

相关内容