<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>非標準の使用方法</title><link rel="stylesheet" type="text/css" href="../style.css" /><meta name="generator" content="DocBook XSL Stylesheets V1.79.1" /><link rel="home" href="index.html" title="Auto Multiple Choice" /><link rel="up" href="index.html" title="Auto Multiple Choice" /><link rel="prev" href="graphical-interface.html" title="GUIの使用方法" /><link rel="next" href="commands.html" title="コマンドマニュアル" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">非標準の使用方法</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="graphical-interface.html">戻る</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="commands.html">次へ</a></td></tr></table><hr /></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="idp1246724440"></a>非標準の使用方法</h2></div></div></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a id="idp1246724760"></a>問題用紙コピー方式</h3></div></div></div><p><a class="xref" href="graphical-interface.html#printing" title="印刷と試験実施">印刷と試験実施</a>で説明したように、複数の受験者に同一の答案用紙をコピーして配るのは常に可能とは限りません。しかし、別紙答案用紙方式で、設問と選択肢がシャフルされていなければ、問題用紙はコピーで用意して、答案用紙だけ全員分個別に印刷することができます。ここではその方法を詳しく説明します。</p><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"><p><code class="option">separateanswersheet</code>オプションを使用します(<a class="xref" href="latex.html#sec.package.options" title="パッケージオプション">パッケージオプション</a>参照)。</p></li><li class="listitem"><p><span class="command"><strong>onecopy</strong></span>コマンドを呼ぶ前か、<span class="command"><strong>examcopy</strong></span>環境の外側に試験問題を記述します。</p></li><li class="listitem"><p><span class="command"><strong>onecopy</strong></span>/<span class="command"><strong>examcopy</strong></span>の内側で<span class="command"><strong>\AMCformS</strong></span>コマンドを用いて、マーク用のボックスを各答案用紙に出力します。</p></li></ul></div><p>最小限の例を示します:</p><pre class="programlisting">\documentclass[a4paper]{article} \usepackage[separateanswersheet,lang=JA]{automultiplechoice} \begin{document} \noindent{\bf 試験問題} \begin{question}{和} 1足す1はいくつですか? \begin{choices} \wrongchoice{1} \correctchoice{2} \wrongchoice{3} \end{choices} \end{question} \begin{question}{k2} K2の標高はいくらですか? \begin{choices} \wrongchoice{約8000m} \correctchoice{約8600m} \wrongchoice{約9000m} \end{choices} \end{question} \AMCcleardoublepage \onecopy{5}{ \AMCformBegin {\large\bf 答案用紙:} \hfill \namefield{\fbox{ \begin{minipage}{.5\linewidth} 氏名: \vspace*{.5cm}\dotfill \vspace*{1mm} \end{minipage} }} \AMCformS } \end{document} </pre><p>このLaTeXファイルから、印刷してから受験生全員分をコピーする(試験問題番号0の)試験問題用紙1部と、(各受験生に1部の)複数の答案用紙が得られます。</p></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a id="postcorrect"></a>採点時正解提示</h3></div></div></div><p>単一の汎用答案用紙を毎回の試験で使いたい場合を想定します。答案用紙には単純にマーク用ボックスだけを(例えば40問、各設問に5個)印刷し、問題は別のどこかに書いて受験者に提示します。ここでのポイントは、正しい選択肢はLaTeXファイルに明示されておらず、そのためAMCはそれがどれかわかりません。この解決方法は、出題者に答案用紙を渡して正しい選択肢をマークしてもらうことです。そうすれば、スキャンをしてAMCでマーク認識をしたあと、AMCにどれが出題者の記入した答案用紙かを教えるだけです。</p><p>このアイデアを実施するには、次のルールに従ってください:</p><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"><p><code class="option">postcorrect</code>、<code class="option">insidebox</code>、<code class="option">noshuffle</code>オプションを使用します(<a class="xref" href="latex.html#sec.package.options" title="パッケージオプション">パッケージオプション</a>参照)。</p></li><li class="listitem"><p>選択肢には<span class="command"><strong>\wrongchoice</strong></span>のみを使ってください(<span class="command"><strong>\correctchoice</strong></span>は一切使わないでください)。</p></li></ul></div><p>最小限の例を示します:</p><pre class="programlisting">\documentclass[a4paper]{article} \usepackage{multicol} \usepackage[insidebox,noshuffle,postcorrect,lang=JA]{automultiplechoice} \begin{document} \onecopy{5}{ \noindent \begin{tabular}{|l|l|l|} \hline 受験番号 & クラス & 科目\\ \hline \vspace{-0.25cm} & &\\ \AMCcode{StudentNum}{10}& \AMCcode{class}{2}& \AMCcode{subject}{3} \\ \hline \end{tabular} \hfill\namefield{\fbox{ \begin{minipage}{.25\linewidth} 氏名: \vspace*{.5cm}\dotfill \vspace*{.5cm}\dotfill \vspace*{1mm} \end{minipage} }}\hfill \vspace{.5cm} \noindent\hrulefill \begin{multicols}{2}\columnseprule=.4pt \begin{question}{01} \begin{choicescustom} \wrongchoice{}% \wrongchoice{}% \wrongchoice{}% \wrongchoice{}% \wrongchoice{}% \end{choicescustom} \end{question} \begin{question}{02} \begin{choicescustom} \wrongchoice{}% \wrongchoice{}% \wrongchoice{}% \wrongchoice{}% \wrongchoice{}% \end{choicescustom} \end{question} % これを必要な設問数の分だけ続ける... \end{multicols} } \end{document} </pre><p>そしてこのLaTeXファイルをAMCで処理し、用紙を印刷し、試験実施後に(模範解答の用紙も含めて)スキャンして、AMCの自動マーク認識を開始させます。<span class="guilabel">採点</span>タブで<span class="guilabel">採点基準を更新</span>にチェックを入れて<span class="guilabel">採点</span>ボタンをクリックすると、出題者が記入した模範解答用紙の番号を入力するよう求められます。そのあとは通常どおりに続けることができます。</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Note"><tr><td rowspan="2" align="center" valign="top" width="25"><img alt="[注記]" src="../images/note.png" /></td><th align="left">注記</th></tr><tr><td align="left" valign="top"><p>アルファベット(あるいは数字)をボックスの外に印刷することもできます。<code class="option">insidebox</code>オプションを<code class="option">outsidebox</code>に置き換え、次のように設問を記述してください:</p><pre class="programlisting">\begin{question}{01} \begin{choicescustom} \wrongchoice{A }% \wrongchoice{B }% \wrongchoice{C }% \wrongchoice{D }% \wrongchoice{E }% \end{choicescustom} \end{question} </pre></td></tr></table></div></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a id="idp1246741576"></a>指名試験問題用紙</h3></div></div></div><p>状況によっては、受験者名簿をもとに各受験者を個別に指名した試験問題用紙を準備すると有用かもしれません。これをどのように行うか見てみます。</p><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"><p>受験者名簿はCSVリストでなければなりません。以下では、students.csvファイルが、プロジェクトディレクトリにあり、UTF8でエンコードされ、中身が次のようになっているものとします:</p><pre class="programlisting">name,surname,id Boulix,Jojo,001 Golin,André,002 Moniuszko,Stanisław,003</pre></li><li class="listitem"><p>LaTeXソースファイルで、次のようにcsvsimpleパッケージをロードします:</p><pre class="programlisting">\usepackage{csvsimple}</pre></li><li class="listitem"><p>LaTeXソースファイルで、試験問題を生成するコマンドを定義します。このコマンドは、各受験生ごとに一回、<span class="command"><strong>\csvreader</strong></span>が呼び出します(ここでは、設問が定義されていて<code class="code">general</code>というグループに含まれているものとします):</p><pre class="programlisting">\newcommand{\subject}{ \onecopy{1}{ \noindent{\bf AutoMultipleChoice \hfill TEST} \vspace*{.5cm} \begin{center}\em Pre-filled test. \end{center} \hfill \namefield{\fbox{ \begin{minipage}{.5\linewidth} Name: \Large\bf \name{} \surname{} \vspace*{1mm} \end{minipage} }} \noindent\hrulefill \vspace{1ex} \shufflegroup{general} \insertgroup{general} \AMCassociation{\id} } } \csvreader[head to column names]{students.csv}{}{\subject} </pre><p><span class="command"><strong>\csvreader</strong></span>の<code class="option">head to column names</code>オプションは、<span class="command"><strong>\subject</strong></span>内で使えるように(CSVのヘッダーから)<span class="command"><strong>\name</strong></span>、<span class="command"><strong>\surname</strong></span>、<span class="command"><strong>\id</strong></span>コマンドを定義します。<span class="command"><strong>\AMCassociation</strong></span>の呼出しにより、AMCは現在の試験問題用紙を<span class="command"><strong>\id</strong></span>というidをもつ受験者にリンクします。</p></li><li class="listitem"><p>印刷、スキャン、マーク認識、採点が終わった後、用紙と受験者をリンクする際、「答案内のリンク用コード名」フィールドに「<span class="emphasis"><em>印刷時リンク済</em></span>」、「名簿内のリンク用主キー」フィールドに「<span class="emphasis"><em>id</em></span>」を選択してください。</p></li></ul></div></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="graphical-interface.html">戻る</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="commands.html">次へ</a></td></tr><tr><td width="40%" align="left" valign="top">GUIの使用方法 </td><td width="20%" align="center"><a accesskey="h" href="index.html">ホーム</a></td><td width="40%" align="right" valign="top"> コマンドマニュアル</td></tr></table></div></body></html>