Putting some contents in open question frames (Feature #62)


Added by Hiroto Kagotani over 12 years ago. Updated almost 12 years ago.


Status:Closed Start date:05/30/2012
Priority:Normal Due date:
Assignee:- % Done:

100%

Category:LaTeX
Target version:1.2.0

Description

I would like to draw something in advance in open question frames, for example, axes for mathematical graphs, tables to be filled in, etc.


History

Updated by Pieter Van den Hombergh over 12 years ago

Hiroto Kagotani wrote:

I would like to draw something in advance in open question frames, for example, axes for mathematical graphs, tables to be filled in, etc.

Maybe this can be realised with something like a "\newif" construct.
In my pre-AMC times I used something like that to distinguish between the exam redering and the solution redering.
In the exam rendering the construct placed the figure/table to be filled in and in the solution rendering the complete figure/table.

In general a \ifAMCAnswers or something like that is useful.
Then all above can be done like this:
...

\begin{figure}
\ifAMCAnswers{\includegraphics{.../exercise6-sol.pdf}}{\includegraphics{.../exercise6.pdf}}
\end{figure}

Updated by Alexis Bienvenüe over 12 years ago

  • Target version set to 1.2.0

Updated by Alexis Bienvenüe over 12 years ago

From revision r1099, you can use the contentcommand option to AMCOpen. For example (with \usepackage{tikz}):

\newcommand\onegrid{\begin{tikzpicture}\draw[step=0.5cm] (-3,-3) grid (5,5);\end{tikzpicture}}

\element{group}{
  \begin{questionmultx}{drawing}
    Draw something on this grid.
    \AMCOpen{contentcommand=onegrid}{\wrongchoice[F]{f}\scoring{0}\correctchoice[J]{j}\scoring{2}}
  \end{questionmultx}
}

  • Status changed from New to Feedback

Updated by Mar Marcos about 12 years ago

Hello,

I get the following message when I try to use this option: Package xkeyval Error: `contentcommand' undefined in families `AMCOpen'.

My AMC version is Auto Multiple Choice 1.1.1 (svn:1104).

Any hint?

Thanks in advance!

mar
~~

Alexis Bienvenüe wrote:

From revision r1099, you can use the contentcommand option to AMCOpen. For example (with \usepackage{tikz}):
[...]

Updated by Alexis Bienvenüe about 12 years ago

My AMC version is Auto Multiple Choice 1.1.1 (svn:1104).

You have to upgrade to AMC version 1.1.1099 or newer (revision 1104 from AMC 1.1.1 is newer than 1099 but concerns the 1.1 branch, so the new contentcommand option for AMCOpen is not available in AMC 1.1.1).

Updated by Alexis Bienvenüe almost 12 years ago

  • % Done changed from 0 to 100
  • Status changed from Feedback to Closed

Also available in: Atom PDF