Questions tagged [answers]
A package for constructing question (or exercise) and answer sheets.
104
questions
0
votes
2
answers
34
views
Modification of exam `answer plot` to allow drawing partial opacity when `\printanswers` is uncommented
Following up on this question and this question regarding "answer plots" for the exam class, I am running into an issue. I have a region shading at less than 100% opacity. If I try adding ...
0
votes
1
answer
101
views
Hyperref links pointing to the same place (using thmtools and answers packages)
At the end of each problem, I'd like to have the indication of the page number of the solution to that problem.
If I do something like this,
\documentclass{article}
\usepackage{amsthm,thmtools}
\...
0
votes
1
answer
35
views
How to toggle multiple interleaving parts of the document on or off?
Suppose I want to design a document in the form:
Q1: What's the Color of The Ocean
A1: Blue
Q2: What is the Color of The Wind
A2: White
If I were to print out the PDF generated by this latex ...
0
votes
0
answers
59
views
Exam class & solution box: incompatible color warning when printing answers
The following code uses printanswers and %printanswers (commented out) commands (h/t @simondispa)
The code compiles without error using %printanswers. But when I printanswers the following log warning ...
0
votes
1
answer
201
views
Exam doc class: Is it possible to "no print" solutions AND remove the boxes?
In the mwe, I have commented out the print solutions command: %\printanswers.
As expected, this produced the questions with empty boxes underneath. The "answers" are actually step-by-step ...
0
votes
1
answer
64
views
Hyperlink in answers package does not include number
For the stackexchange question Hyperlink with answers package, the first answer gives a MWE which does not include the number.
The given MWE:
\documentclass[12pt,a4paper]{article}
\usepackage{answers}
...
0
votes
1
answer
117
views
How to make hyperlink to solution in theorem/problem name cover the counter
After Ulrike Fischer helped me out at this thread, I just had one troubling aspect remaining while getting the formatting together for some textbooks that I have written. I was thinking of ignoring it,...
0
votes
0
answers
267
views
Making hyperref, cleveref, and answers work together
I am using the following packages in a math textbook that I am writing:
The answers package to be able to put solutions to problems at the end of the book
The hyperref package to be able to link ...
0
votes
1
answer
38
views
Using answers package in macros
I am compiling a set of problems for my students with hints, and using the answers package for that.
The goal would be to have the problems and hints grouped by exercise session, but still within the ...
1
vote
1
answer
166
views
Automating link to answer in exercise package
I have read the answers to this question about how to manually include a link to the answers in each exercise when using the exercise package.
My question is whether it is possible to automate this in ...
2
votes
1
answer
81
views
Expand two counters in collect package
I write a command to store the problem answer with the collect package.
Mr @egreg help me expand the problem number in the aux file. Now I meet another trouble with the answer. When the answer ...
0
votes
0
answers
165
views
Using aux-directory when you need the output
Several latex distributions have options to put aux files in a separate directory using a -aux_directory command-line option. I use Texpad, so I have a "hide intermediate files" option that ...
1
vote
1
answer
53
views
How can line breaks be suppressed in Questions using Exercise?
I'm trying to display the answers to the different Questions in an Exercise in a single line, since answers to questions are often short. Here a workaround was provided but for subQuestions, not ...
3
votes
0
answers
42
views
Using answers environments inside commands
I use package answers for putting answers or hints to problems at the end of a document. I wonder if it is possible to use the environment for solutions inside a command. But the straightforward way:
\...
3
votes
3
answers
555
views
Hyperlinks from exercises to solutions and vice versa
Writing lecture notes containing exercises and solutions, I would like to create hyperlinks from the exercises to their solutions and vice versa. I use the packages mdframed, hyperref and answers (and ...
1
vote
1
answer
1k
views
How to produce answer key in exam class for multiple choice type of question?
\documentclass{exam}
\begin{document}
\begin{questions}
\question Sample Question 1
\begin{choices}
\choice Option1
\choice Option2
\choice ...
3
votes
3
answers
401
views
exercises in the margin, hints and solutions at the end
I use the answers package to put questions in the text and hints and solutions at the end of the doc. Now I like to use the Tufte book style, and put small exercises in the margin and still have hints ...
0
votes
1
answer
141
views
How to make \newbox respect margin page ends
I'm writing math practicing textbooks to students and I intend to provide an answer key at the end of them. I'm trying to implement the answer key using a storing box with all solutions. But I can't ...
1
vote
0
answers
160
views
Task environment with answer key [closed]
I fixed my problem using hyperref, posted by CarLaTeX Visit Task environment and answer package clash. I got what I want and how to let the answer key be in the horizontal direction, not in vertical.
...
1
vote
1
answer
161
views
How to add right answer key at the end of \newpage, created in article with task environment
I'm creating a math test, this is the file I'm using. I like this file, basically I coped this from different latex files, at the beginning, I used the table to input the right keys, this way is too ...
2
votes
2
answers
687
views
How to hide answer in Moodle package on the pdf file
I am using Moodle package. I would like to print a pdf without the correct answers. How can I do it ?
With the following code, the pdf contains the answers and the questions.
\documentclass[12pt]{...
0
votes
1
answer
204
views
Is there no way in Tex to do this?: MCQ using tasks package with answers to print at the end for each section
I am writing some notes which contains question of multiple choice options, each question has 4 options out of which 0,1,2,3, or 4 options may be correct. I am using tasks package for wring options. (...
0
votes
0
answers
88
views
reset solution number at each chapter
With the answer package I'am be able to reset the exo counter by chapter with
\newcounter{exocounter}[chapter]
note it's not gone by answers. I using the exocounter to define automatically each ...
2
votes
1
answer
177
views
Error with package answers using \Writetofile
Compiling this file
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{answers}
\Newassociation{sol}{Solucao}{solucoes}
\newtheorem{exer}{Exercício}
\begin{document}
\section{Exercícios}
...
1
vote
0
answers
588
views
Aligning Marking scheme in exam solution environment
Am trying to do an efficient code for writing a tabular Marking scheme inside solutions environment in exam style for this problem as an example.
I did not manage to be very successful, the ...
0
votes
1
answer
169
views
Problem with enumerate environment in answers package
Here is a mwe showcasing the problem.
\documentclass[12pt,a4paper]{article}
\usepackage{answers}
\Newassociation{sol}{enumerate}{ans}
\newtheorem{ex}{Exercise}
\...
0
votes
1
answer
123
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]{...
1
vote
1
answer
436
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
2
answers
386
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
1
answer
320
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 ...
1
vote
1
answer
460
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
1
answer
246
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
2
answers
836
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
0
answers
157
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
1
answer
499
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
0
answers
107
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
0
answers
186
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.
\...
3
votes
1
answer
847
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
1
answer
2k
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 ...
1
vote
0
answers
160
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
0
answers
458
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[...
4
votes
1
answer
1k
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
1
answer
343
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
2
answers
345
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
1
answer
2k
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
1
answer
561
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
1
answer
263
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....
2
votes
0
answers
778
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
1
answer
2k
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
1
answer
90
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, ...