A package for constructing question (or exercise) and answer sheets.

learn more… | top users | synonyms

35
votes
1answer
4k views

Comparing packages which facilitate typesetting exercises and solutions: exercise vs. answers vs. probsoln

Could someone with experience in using these exercise typesetting packages please offer a quick compare and contrast of these packages to help me choose? Packages under consideration are: exercise ...
14
votes
2answers
810 views

Best way to part answers from solutions?

Now, if anyone could change the title into something better that would be great =) I am writing a rather long document, which contains plenty of integrals. I have a big list of integrals sorted in a ...
10
votes
1answer
518 views

Adding a section of answers for each section of exercises at the end of a book using answers package

I'm writing a book and for it I have created a little class file. Each section in the book have (sub-)section of exercises. At the end of all the chapters I want to put a chapter* of answers to some ...
9
votes
2answers
1k views

Setting up a Multiple Choice Answer Key

I had a question about setting up a LaTeX document. I'm not sure if it is proper to post such a question here, but I figured that many people here have experience with the system and might be able to ...
9
votes
1answer
785 views

Please explain \Newassociation and provide an overview of how the package answers works

I've found the answers package a little difficult to use and the documentation isn't as accessible as it could be to a novice like me. I'm not sure but it often seems at times like multiple files are ...
7
votes
1answer
448 views

Adding another answer hyperlinked to the question itself

I asked this question here Best way to part answers from solutions? And obtained a very good answer. Though I now have a new problem. I want to type the question, then have one answer linked to the ...
7
votes
2answers
828 views

Hyperlink with answers package

I'm using the answers package for an exercises book. I would like to create clickable hyperlinks (in the generated pdf file) from the exercise to the corresponding solution and back from the solution ...
6
votes
3answers
797 views

Create odd-numbered answers, or all answers

I'm starting with a clean slate creating a solutions manual. I would like the ability, by setting a switch, to produce only the solutions for the odd-numbered problems, or those for all problems, in ...
6
votes
3answers
725 views

Labeling problems with exam class usage when using multiple chapters

Using the exam document class I'm trying to create a questions/answers-sheet for a book. When working on the first chapter, everything worked nicely. When I came to the second chapter, I realized I ...
5
votes
1answer
680 views

How to format answer in answer package?

I use answers package. In out put of answer, I want to format 1) or Answer 1. instead of 1 as default. How can I do it? My code is \documentclass[12pt,a4paper]{article} \usepackage{amsthm} \...
5
votes
1answer
47 views

Hyperref (+answers) points to chapter instead of page

I've this problem where an Exercise environment automatically generates a reference to its Solution, and while the page displayed is correct, clicking on it leads to the Solution's chapter (if any) or ...
4
votes
2answers
2k views

Incomplete \iffalse error using answers package

This code \documentclass{book} \usepackage{answers} \Opensolutionfile{foo} \begin{document} %\Writetofile{foo}{whatever} % OK \Writetofile{foo}{\noexpand\chapter{bar}} % fails \end{document} ...
4
votes
2answers
247 views

Package answers: is it possible to append all solutions to one output file?

I am trying to use the package answers and found the answer to "Please explain \Newassociation and provide an overview of how the package answers works" very useful. However, when working with answers ...
4
votes
2answers
175 views

Problem putting answers in a macro

I want to put the \begin{sol} and \end{sol} from the answers package in a macro like \newcommand{\assignment}[2] { \item #1 \begin{sol} #2 \end{sol} } ### \assignment{question}{answer} It's just ...
4
votes
1answer
37 views

Giving each Task a solution with the answers package

Currently I've this one as a starter MWE. It's messed up right at the start because it counts a c) at the beginning of the solutions but it is something to work with. How do I fix this? MWE \...
4
votes
1answer
2k views

How to generate a dynamic bubble answer sheet for multiple-choice exam [duplicate]

I want to produce a bubble answer sheet where the number of questions are shown by \qCount. It is always below than 100. Is it possible to produce it dynamically? I cannot print the question numbers ...
4
votes
1answer
44 views

Modify contents of environment using l3regex and then write to file

I want to define an environment (in a class file, as it happens) the contents of which are both displayed on-screen as they are written, but they are also modified (e.g. using the l3regex package) and ...
4
votes
1answer
34 views

Bug in package answers?

I have this slight variation of an example from the answers package \documentclass[12pt,a4paper]{article} \usepackage{ifthen} \usepackage{answers} \Newassociation{sol}{Solution}{ans} \newboolean{...
3
votes
1answer
312 views

Answers package modification

I'm using answers package and 2 levels of enumerate environment. Sample: (a) Excercise 1a (b) Excercise 1b (a) Excercise 2a (b) Excercise 2b Inside the answers file I want to get the first level ...
3
votes
1answer
253 views

Latex answers package and cyrilic symbols in enumerate environment

I'm using both the answers package for an exercise book and Cyrillic symbols for 2nd level items. Here is my .tex code. \documentclass[10pt, a4paper, openany]{report} \usepackage[utf8]{inputenc} \...
3
votes
1answer
46 views

Evaluating macros in answers package

I am using the answers package to create a list of exercises in a set of lecture notes and solutions to those exercises as files separate from the notes. I would like for the solution files to have ...
3
votes
0answers
50 views

How to link Questions to Answers - Hyperlink and hypertarget - Multiple chapters

For a Question bank, which is a pdf-only CC edition, I defined hyperlinks and hypertargets as explained in Adding another answer hyperlinked to the question itself. To typeset more chapters as ...
3
votes
0answers
49 views

Matching enumerated exercises with their answer when using the answers package

I am using the answers package to write a number of exercise sheets. Some of the questions I write contain an enumerated list (say from part (a) to (h) and beyond). The problem I am having is in the ...
2
votes
3answers
591 views

How to typeset subquestions and the corresponding answers

I would like to typeset exercises with subquestions so that in the code I have an answer immediately following each subquestion, but in the output all the answers will be in the end. Also I want both ...
2
votes
2answers
53 views

Hyperref and answers package: How to put the link which goes back to the question at the end of the solution

In the MWE below, created following other threads from the website, I would like to know how to change the following two things: 1) How to add the buttons which link back to the question (E.g. the ...
2
votes
2answers
71 views

Creating a “solution” in math document

Is there a tidy way to print solutions like there is for proofs? Something like the following but for solutions. \begin{proof} ... \end{proof}
2
votes
2answers
73 views

answers package + environ package + equation won't compile

This MWE works perfectly when the I comment out equation in the teacher environment. With that equation in place I get this error: (C:\Users\Ethan.Bolker\AppData\Roaming\MiKTeX\2.9\tex\latex\...
2
votes
1answer
74 views

Answer environment should give different font and different size I want. How can I do?

I am working with this codes for my Question paper. \documentclass[10.5pt,a4paper,addpoints]{exam} \newbox\allanswers \setbox\allanswers=\vbox{} \newenvironment{answer} {% \global\setbox\...
2
votes
1answer
109 views

two columns with answers package

I want to use multicol package in answers package for my text book. How can I fix this problem? \documentclass[12pt,a4paper]{book} \usepackage{enumitem,calc} \setlist[enumerate]{labelsep=10pt,...
2
votes
1answer
49 views

Using utf8 inputenc package and answers package together

I'm trying to typeset using UTF8 and use the answers package. However, compilation halts on \begin{sol}, with Kapitola 1. ! Missing \endcsname inserted. <to be read again> ...
2
votes
1answer
65 views

Incompatibility between enumitem and answers packages?

I am facing a strange problem while using the enumitem and answers packages. The following code compiles with no errors. \documentclass{article} \usepackage{enumitem} \usepackage{answers} \...
2
votes
1answer
392 views

Exercises in lecture notes without predetermined placement (Follow-up)

I found a partial answer to my problem so I update the question, and leave the unmodified original post here below for reference. The only problem left is how to pass the actual value of a command to ...
2
votes
0answers
24 views

How can I divide an Xparse generated list by “section-like” environments?

I mostly use the xparse library to create organized lists. Here's an MWE: \documentclass{article} \usepackage{xparse} \newcounter{quest} \newcommand{\quest}{\noindent\stepcounter{quest}{\bf Q}{\bf \...
2
votes
1answer
82 views

problem with texpad editor and the package answers [closed]

I don’t know why the command \input don’t work in the package answers. If I use \include it’s OK but it’s not good because some things don’t work correctly. Only under TexPad editor.
2
votes
0answers
126 views

Checking if first portion of an environment's content is empty

Motivation: I am working on a very personalized Exercise/Answer package for my colleagues. The exercise, exsheets, etc. packages don't do what I need. To accomplish this, I create an exercises ...
1
vote
2answers
311 views

Problem with the answers package.

I am using the answers package to build a series of exercises. The problem i have encountered is when going from \item $ 5x^2-x \geq 0 $ \begin{sol} $x \geq 1, x \leq 0$ \end{sol} to \uppg{$x<-...
1
vote
1answer
328 views

Hyperref with answers [ntheorem]

I read Hyperlink with answers and have tried to apply the technique to my environments that I have defined using the ntheorem package. In the MWE below the answer links correctly go to the questions, ...
1
vote
0answers
47 views

What is a good environment for writing problems and solutions? [closed]

I'm writing a book where I record interesting problems and their solutions. However, there does not seem to be an organized list, or other reference to these types of latex packages and tex macros. ...
1
vote
0answers
455 views

How to generate an answer key of a multiple-choice exam? [closed]

I have a number of multiple-choice questions. I want to produce an answer key (a small table with nx5 cells where the answer places are somehow highlighted). My code (from another post ) is shown ...
1
vote
0answers
122 views

Problem with answers using hyperlinks and tbox

I have minor problems with the solutions shown in Hyperlink with answers package I wanted to make a macro which takes solution and exercise as arguments, uses a button like mutual reference, and ...
1
vote
0answers
115 views

How can I fix this bug in answers package? [closed]

I have just updated the answers package. I copy simple example \documentclass[12pt,a4paper]{article} \usepackage{answers} \Newassociation{sol}{Solution}{ans} \newtheorem{ex}{Exercise} \begin{...
0
votes
1answer
922 views

Custom environment using the answers package

I want to create a custom environment to be used with the answers package, something like ... \usepackage{answers} \Newassociation{solu}{Soln}{ans} \newtheorem{ex}{Ejercicio}[chapter] \...
0
votes
0answers
20 views

Answers package How to link Soln environment with theorem counters

Please help with answers package -- refer Please explain \Newassociation and provide an overview of how the package answers works To the same MWE, I have added a subEx theorem environment within the ...
0
votes
0answers
117 views

How to align the answer environment so that it has to look like Question Environment?

I am using these code to generate my Question paper... \documentclass[a4paper,addpoints]{exam} \newbox\allanswers \setbox\allanswers=\vbox{} \def\qn{\question} \newenvironment{answer} {% \...
0
votes
0answers
79 views

Package for redirecting from questions to answers

Good evening, could someone tell me which package should I use in order to be redirected from the number of a question to its answer. In detail, suppose that I have written some questions and their ...
0
votes
0answers
201 views

Problems with answers package v2.14

I recently updated the answers package to its latest version (2014/08/08 v2.14) and, now, I cannot even successfully build the examples in the package's manual. Case in point, the first example ...
0
votes
0answers
467 views

answers using exercise.sty, beginning each chapter on new page

I have a multi-chapter tex document containing lecture notes, problem sets, and solution keys. I'm using exercise.sty to deliver the exercises and their solutions. Everything works great with the ...