Questions tagged [answers]

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

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

103 questions
10
votes
1 answer

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 of the exercises. Since the exercises are numbered…
leo
  • 1,337
9
votes
2 answers

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 help. I've been asked to write a list of…
roninpro
  • 193
8
votes
1 answer

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…
minthao_2011
  • 4,534
  • 7
  • 36
  • 61
5
votes
2 answers

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} produces this error Output from handle foo going to…
Ethan Bolker
  • 9,333
  • 3
  • 42
  • 69
4
votes
1 answer

Answers in a line with `Answers` package

I am typing a set of exercises with an 'answers' package.…
4
votes
2 answers

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 I ran into another problem. I am writing a book…
3
votes
1 answer

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{InSol}\setboolean{InSol}{False} \newenvironment{Sol} %…
Jack
  • 1,137
3
votes
1 answer

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,…
Ilya Y.
  • 53
2
votes
1 answer

Error with package answers using \Writetofile

Compiling this…
user212305
  • 21
  • 1
2
votes
1 answer

Answers package: Writing the solution right after the exercise environment (not inside it)

I know the correct format to use the solution in answers package is the following: \begin{ex} First exercise \begin{sol} First solution. \end{sol} \end{ex} But when the statement of the exercise and its solution are very long the following…
Name
  • 2,816
2
votes
1 answer

Another Way to Conclude an Answer

I understand that \boxed{} would give a box surrounding a math. However, I want to make answer this way instead of full rectangular box. Is there a way to make this command to, say, \halfboxed{x=3}? Thanks,
Panha
  • 587
2
votes
1 answer

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 the text of the corresponding question. I tried…
cjohnson
  • 529
2
votes
2 answers

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}
Jack
  • 141
  • 1
  • 4
2
votes
2 answers

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\trimspaces\trimspac es.sty)) Output from handle…
Ethan Bolker
  • 9,333
  • 3
  • 42
  • 69
1
vote
1 answer

Suitable environment for answers to exercises

There are different packages out there to add answers to exercises to a document, like answers and exercise, however they're all a bit overkill, e.g. they re-format and re-number the list of exercises in my document. What I want to achieve is juist…
Werner
  • 179
1
2