Questions tagged [answers]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
44 views

showallanswers doesn't print my document. No answer key

I am trying to make a nice exam template and everything is fine except that I can't print the answer key. When I use answer (class option) or \printanswers there is an error. \documentclass[11pt]{...
0
votes
1answer
61 views

How to create a Title Answer using exam package?

I've been a user of this place for a long time and searched several solutions about typing latex correctly. I've tried to write a simple exam paper and similar to this @Phil Hirschorn's answer like ...
2
votes
2answers
64 views

How to pass the contents of a newcommand to answers package?

I've got the following code, which uses the exam document class and the answers package. I'd like to pass the point value of the question into a separate file so that I can make use of the question's ...
3
votes
1answer
62 views

Questions which include answers within the Question

I want to create Questions wherein each will include a series of fill in the blanks. I want to display a worksheet which has an answer line in place of the answers. And then a worksheet where the ...
0
votes
1answer
41 views

Adaptive column size based on width of tasks

Problem: This issue is related to the following post: Align enumerate to text and items to numbering for exercises and answers - but it deals with a different aspect of the package tasks, namely how ...
1
vote
1answer
60 views

Align enumerate to text and items to numbering for exercises and answers

Problems: I wish to align the items to the text for the exercises. I wish to move the a) so it is directly to the right of the number 1 for answers. Minimal Working Example (MWE): \documentclass{...
3
votes
2answers
175 views

How to reveal TikZ plot with \printanswers in exam class

In the exam class, you can reveal solutions by uncommenting the command \printanswers. This allows the author to keep both question and solution in the same document, without needing to manually ...
0
votes
0answers
48 views

Indications and corrections appear immediately after the exercise statement

In order to use the answer package, I downloaded a file that contains this package. \documentclass[12pt,a4paper]{article} \usepackage{amsfonts,amsmath,amssymb,graphicx} \usepackage[francais]{babel} \...
1
vote
1answer
208 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
58 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
63 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
1answer
259 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
566 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
83 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
101 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
592 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
159 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
139 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
620 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
166 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
176 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
492 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
686 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) ...
3
votes
1answer
73 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
221 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
326 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 ...
3
votes
1answer
260 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
81 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
118 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
791 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
442 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
145 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
160 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
270 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
94 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
336 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
43 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
245 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
96 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
169 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
129 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
109 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
201 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
144 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
278 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
161 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
360 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
85 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
479 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
126 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} \...