Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [answers]

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

1
vote
1answer
55 views

Put exam \answerline blanks as nodes inside \tikzpicture

The exam class allows you to leave spaces for students to write answers, using the answerline command. Furthermore, when \printanswers is enabled, an file can be generated that fills in these blanks ...
1
vote
0answers
44 views

Tcbtheorem with crosslinking

I had created a document with problems. Some feature I implemented is a click on the problem number, which leads to the answer at the end of the document and vice versa (look MWE). My ...
0
votes
0answers
50 views

Building a Math Question bank and Web Application for reading them

Idea is to design a Question bank with answers and solutions for math and science subjects, for a web application (Designed in Laravel(php). Typesetting of questions is done in LaTeX. \...
2
votes
0answers
114 views

How to customize exercise style for using question answers in book auto numbered

I am new to LaTeX and trying to compile several questions and answers for a book. I would be using question answer after a certain section or as per choice anywhere in the document. So, I want the ...
2
votes
1answer
255 views

Using answers with tasks

I'm writing a book of maths problems. I need a way to present both the problems and their solutions at the end of the book. I worked out a way to get the problems and answers to look just as I would ...
0
votes
0answers
73 views

Is there a package for the correction of a homework?

I have a maths homework to do and I got the LaTeX source code of the subject. I would like to naturally insert the answers in the same document, in order to submit a homogeneous work, but don't know ...
1
vote
0answers
44 views

How to use answers package if there are sub parts and sub-sub-parts in the question

I want to use answers to produce solution files for questions with parts, subparts, sub-sub-parts. Here is a MWE: \documentclass[12pt,a4paper]{article} \usepackage{answers} %\usepackage[...
2
votes
1answer
383 views

Answers in a line with `Answers` package

I am typing a set of exercises with an 'answers' package. MWE: \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage[OT1]{fontenc} \usepackage{amsmath} \...
0
votes
1answer
114 views

How can I change all the labels from the exsheets packages?

I am using Exsheets package to do an exam \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{exsheets} \begin{document} \begin{question} Question Here \end{question} \begin{solution} ...
3
votes
2answers
108 views

Task environment and answer package clash

Use of task environment inside my moquestion environment (as below) changes the item-labelling (1., 2., 3., etc) of the solution. In the mymosolution environment, the item-labelling is replaced by (D) ...
1
vote
1answer
473 views

Versatile question/answer package

I need to produce exercise sheets, and I am looking for a package providing exercise/answer environments. I tried for now exercise and exsheets packages, and I can almost do what I want but there is ...
0
votes
1answer
119 views

Automated numbering of questions and solutions

I'm working on a textbook with sections and subsections, where some subsections are dedicated to exercises. \documentclass[12pt]{book} \begin{document} \section{First!} \subsection{Some theorems} ...
2
votes
1answer
133 views

(answer package) Preventing hyperlink to missing answer of problem

Code below is helped to get clickable numbers of problems for best navigation between problem and its answer. An environment solution inside other environment problem imply the problem has a solution....
1
vote
0answers
329 views

Exercise Package - Short Answers and Long Answers

Is it possible to have both short answers and long answers as part of the exercise package? For example, in the following example: Math-Book-how-to-write-exercise-and-answers - stack exchange Would ...
2
votes
1answer
492 views

How to use package 'answers' with one's own solution environment?

I would like to use the answers package to create exercises and answers (printed in different parts of the document). The exercises should refer to the solutions with a margin note (via marginnote) ...
4
votes
1answer
69 views

How can I vertically align my enumerate environment with answers package?

I'm using the answers package to print my solutions at the end of my document. I would like to vertically align my a), b), c), etc. after the number of the exercise. For example, in the code below, ...
2
votes
1answer
126 views

Putting the \qed sign at the right place when using answer package

In the following document I have used the package "answer" and when I end a solution I put a \qed sign at the end of solution. This works fine except if the solution terminates with an equation and ...
2
votes
1answer
236 views

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 ...
4
votes
1answer
216 views

Including section in an environment

I am trying to adapt touhami's solution to How to print out only statements (theorems, lemmata, etc) from a tex file? so that I can also print the section titles. My first guess would have been to ...
2
votes
1answer
74 views

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}? ...
1
vote
1answer
101 views

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 ...
1
vote
1answer
615 views

Answer at the end of exam document - nice solution

you posted a really nice solution to get a separate file with solutions here. I've tried for hours to modify your solution. Is it possible the get the number of the question to the solution? This is ...
3
votes
1answer
374 views

Problem using answers and tasks packages

I am trying to create questions (using answers package) with several subquestions using the tasks package. Each question has a solution wich is to be typeset at the end of the document using ...
2
votes
1answer
132 views

how to link the number of exercise with its solution

I'm using the packages: hyperref and answers. I wanted to link the number of theorem with its proof, or numbers of exercises with their solutions, or numbers of problems with hints, etc. This is what ...
1
vote
1answer
146 views

How to put text templates into the color box theorem environment?

Problem Statement I have been received an error message of ! Argument of \begin has an extra }. regarding to line 28 (i.e. \begin{exref}) of the MWE. Which this is an optional environment to state ...
1
vote
1answer
227 views

Question Answer and Problem Answer document

In the code below, there are two parts in the document. The first part contains a Question then Answer, and the second part contains a Problem then Answer. For Part 1, I wanted to format the ...
2
votes
1answer
91 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 ...
4
votes
1answer
273 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 \...
2
votes
0answers
41 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 \...
3
votes
0answers
206 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 ...
1
vote
0answers
92 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. ...
2
votes
2answers
145 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 ...
3
votes
1answer
112 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 ...
3
votes
1answer
84 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{...
2
votes
2answers
161 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}
4
votes
1answer
132 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 ...
1
vote
1answer
202 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} {% \...
1
vote
1answer
155 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\...
4
votes
1answer
212 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
1answer
80 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
389 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
116 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
2answers
159 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\...
4
votes
2answers
6k 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} ...
0
votes
0answers
99 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 ...
8
votes
1answer
4k 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
7k 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 ...
1
vote
0answers
1k 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
201 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 ...
4
votes
3answers
2k 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 ...