Document ClassesEqexam True False

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
Mikerada6
Posts: 42
Joined: Fri Oct 17, 2008 5:55 pm

Eqexam True False

Post by Mikerada6 »

I am trying to make a homework assignemnt with the very powerful Eqexam package. I was wondering how i would go about makeing a two part True False question with the following instructions:

In problems 1-22, answer true or false. If the statement is false, justify your answer by either explaining why it is false of giving a counterexample; if the statement is true, justify your answer by either proving the statement of citing an appropiate result in this chapter.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

sitex
Posts: 70
Joined: Sat May 09, 2009 12:37 pm

Eqexam True False

Post by sitex »

Hello,
I forwarded a copy of your post to Don Story, a former colleague, who wrote the eqexam package. The following code and reply are his. Tom
Attached are some suggested formats. I’m assuming the space for the extended response parts is included in the document; otherwise, you can just have the true/false questions, and say “On separate sheets of paper, justify your answers.”

Code: Select all

\documentclass{article}
\usepackage[fleqn]{amsmath}
\usepackage[pointsonleft,nototals,forpaper,nosolutions,useforms,usexkv]{eqexam}
%\usepackage[pdf,pointsonleft,nototals,forpaper,answerkey,useforms,usexkv]{eqexam}


\university
{%
      NORTHWEST FLORIDA STATE COLLEGE\\
         Department of Mathematics
}
\email{storyd@nwfsc.edu}

\subject[CA]{College Algebra}
\title[HW-17]{Homework~17}
\author{Dr.\ D. P. Story}
\date{\thisterm, \the\year}
\duedate{09/30/09}
\keywords{Due date \theduedate}


\parskip3pt
\everymath{\displaystyle}

\begin{document}

\maketitle

\begin{exam}{Test\nExam}

\begin{instructions}[Instructions:]
In problems 1-22, answer true or false. If the statement is false, justify
your answer by either explaining why it is false of giving a
counterexample; if the statement is true, justify your answer by either
proving the statement of citing an appropriate result in this
chapter.
\end{instructions}

% The first most obvious format for the question
\begin{problem*}[5]
All triangles have four sides.
\begin{parts}
    \item \TF{F} (True/False)
    \item \textbf{Proof or Counter-example}
    \begin{solution}[1in]
        \textbf{False.} Recall the famous 30-60-90 triangle.
    \end{solution}
\end{parts}
\end{problem*}

% We can attempt to move part (a) up, so that the question is part of (a) and aligned
% on the first line.  This method is a bit iffy, the alignment may not be perfect.
\begin{problem*}[5]
\vskip-1.5\baselineskip
\begin{parts}
    \item\TF{F} (True/False) All triangles have four sides.
    \item\textbf{Proof or Counter-example}
    \begin{solution}[1in]
        \textbf{False.} Recall the famous 30-60-90 triangle.
    \end{solution}
\end{parts}
\end{problem*}

% Another possibility is to have a single question like so.
\begin{problem}[5]
\TF{F} (True/False) All triangles have four sides.\\
    \textbf{Proof or Counter-example:} Justify your answer in the space
    below.
    \begin{solution}[1in]
        \textbf{False.} Recall the famous 30-60-90 triangle.
    \end{solution}
\end{problem}


\end{exam}

\end{document}
Post Reply