Questions tagged [exercises]

{exercises} is about creating exercise sheets including questions or problems, and maybe even their respective answers. Popular packages are {xsim}, {exsheets}, {probsoln}, and {answers}.

Filter by
Sorted by
Tagged with
42
votes
1answer
6k 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 ...
40
votes
7answers
7k views

How can I produce exercises in one part of a LaTeX document with selected answers in another?

How can I produce exercises in one part of a LaTeX document with selected answers in another? I could, of course, simply typeset the questions and the answers separately, but this is too likely lead ...
20
votes
5answers
7k views

Comment out lines without using % and comment enviroment

I would like to ask something which will greatly facilitate my work. But before, I introduce you to the problem I face. In my attempt to gather my notes for my students and give them something more ...
7
votes
2answers
1k views

Hide content to show later

My question appeared about this egreg's answer. I have a list of exercise-answers but I don't want to show the answers immediately but after till I'll pull with a command and fetch all the answers ...
24
votes
2answers
10k views

Math book: how to write Exercise and Answers

EDIT within \documentclass[12pt]{book}I want to create chapter-wise exercises and put all the solutions (with or without hints) at the end of the book. I want to do this in simple and non-tedious ...
19
votes
5answers
2k views

How to put a star (or other symbol) in sections that are “special” (difficult, optional, etc)?

I'm currently writing a book, and I'd like some of the sections to be clearly marked as "difficult" or "optional". Not only sections, but also exercises (I'm using the exercise package) and theorems ...
9
votes
1answer
1k 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 ...
3
votes
2answers
102 views

Hiding part of the text when certain macro is enabled

Problem I am now preparing exercises for the course I am going to teach next quarter. I have two concerns Writing problem descriptions and corresponding solutions in two separated files are pretty ...
4
votes
1answer
522 views

xsim access exercises text

While experimenting with xsim I found that a basic functionality for me is missing: printing solutions which repeat the exercise's text (btw: styled with tcolorbox). I could emulate a similar behavior ...
4
votes
4answers
1k views

Making text difficult (but not impossible) to read?

I'm making a file of exercises, and I occasionally leave hints next to some of the problems. The issue is that if the hint follows directly after the problem, I find myself immediately and ...
1
vote
2answers
2k views

Exercise sheet with two enumerated columns

Do you have a simple, minimal template to type Exercise sheets with exercises enumerated with two columns (please check image). Thank you.
26
votes
5answers
10k views

How to write a multiple choice test book with LaTeX?

I want to write a book which will consist of many multiple choice exam sheets. Putting the codes below into my preamble, I wrote the question like as \begin{enumerate} \item $2+2=?$ \choice $1$ \...
20
votes
1answer
3k views

Exercises in lecture notes without predetermined placement

I'm writing up some lecture notes for a math course in LaTeX (using the book class so far, but I may change that), and as I do so possible homework exercises occur to me which I want to include in the ...
14
votes
3answers
1k views

Using an exercises package to build lots of Math/Calculus exercise lists and tests

I have been using the exercise.sty package for a while now, mostly to build exercise lists for my students. After a few months from when I started, the code became very complicated. Today, it is a ...
10
votes
1answer
3k views

How to type multiple choice questions with more than one correct choice

I want to type multiple choice question (which may have two or more answer) book using exercise package such as \begin{questions} \question This is the first question \choice Wrong answer \...
7
votes
1answer
788 views

Solutions of exercises produced with tcolorbox

I produce exercises with solutions, in book class, chapter by chapter, using the doc in the last version of tcolorbox. I want to produce the answers grouped in the end of the book. I can do this using ...
7
votes
2answers
1k 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
2answers
1k views

Math book: Exercise - Solution environment

If I use this code provided by a question formulate of Sebastian for exercise environment. \documentclass{article} \usepackage[most]{tcolorbox} \usepackage{lipsum} \newtcolorbox[auto counter]{...
5
votes
2answers
1k views

The numbering of exercises automatically on table

I have several hundred exercises in form \begin{exercise} \end{exercise} where each one is a small own file. I input those through \input{...} on master documend. I have done some other ...
8
votes
1answer
2k views

How to use figure inside a exercise environment?

Trying to use figure inside an Exercise environment (exercise.sty) gives me "LaTeX Error: Not in outer par mode." Example: \documentclass{article} \usepackage[]{exercise} \begin{document} \begin{...
2
votes
1answer
544 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
1answer
265 views

TikZ Solution Set Not Compiling

I've made exercises and solution sheets with TikZ in the past, so I'm not sure why this is failing. It's just an ultra simple set of 2+2=? exercises and their solutions. I hope it isolates the ...
0
votes
1answer
86 views

How i make like this figure? [duplicate]

Bonjour, Comment produire un document avec des exercices dont les corrigés apparaissent à la fin du document et quels soient clickable avec latex. J'aimerais avoir quelque chose comme ça:
5
votes
1answer
1k views

How to make a template latex like this?

I wana ask a question. How to make a template latex like this?
7
votes
1answer
599 views

Embedding Examples & Solutions In Worksheets

How can I "embed" examples and solutions into my code to make easy-to-use worksheets and solutions manuals? Context: I am creating a fractions workbook for students, many of whom have many ...
7
votes
1answer
1k views

How I can customize fbox and hrule?

I want to customization a sample exercises for a book. I like so much this style: I think that is possible with fbox and hrule, but I don't know how I can do it. No need to use fbox and hrule if ...
6
votes
2answers
556 views

Is there a package to pull out Answer Keys from Exercises to the last page? [duplicate]

Possible Duplicate: How can I produce exercises in one part of a LaTeX document with selected answers in another? I am writing a book containing exercises for the readers. To ease writing phase, ...
14
votes
3answers
6k views

Number exercises according to chapter

I'm using the exercise package together with memoir class. How do I number my exercises according to chapter number, in the same way that display equations are numbered? Here's a minimal example \...
7
votes
2answers
2k views

Multiple choice with answers at the end of the chapter

I would like to set up an environment for multiple choice questions, such that the list of the correct answers, and some lines of comments, will be typeset at the end of the chapter. Something like ...
4
votes
1answer
272 views

xsim slow with external files

I'm using the package xsim for writing exercises. The exercises are stored in external files and when I use several files, the latex compilation is slow. It is at least 3-4 minutes. The exercises ...
4
votes
1answer
406 views

Exercises with links to answers (problem using counter)

Sorry, website won't allow me to ask detailed questions as a comment (neither does it show the formatting toolbar) so adding a new question. Problem: Trying to create an exercise list (with links to ...
5
votes
2answers
370 views

How to use \newenvironment; why doesn't this code work? How do I fix it?

I've been trying to find out but my latex skills are too weak to understand what seem like similar problems. When I try this: \documentclass{memoir} \usepackage{graphicx} \usepackage{exsheets} \...
4
votes
2answers
665 views

Solutions of exercises produced with tcolorbox-Numbering titles

Using the brilliant macros from the tcolorbox package, I write in a book of probability, in every chapter, exercises with solutions. Because I want to write all the solutions together in a chapter, I ...
2
votes
2answers
943 views

Link to answer in exercise package

i am creating an exercise book using the exercise package. i understand that i can add a label to a question to link an answer to a specific question. however, i'd like to add a link to the answer ...
2
votes
1answer
384 views

Creating a multi-labeled question bank with xsim/exam

I want to make a question bank on functional equations problems (in mathematical olympiads) using xsim or exam (or any other) packages. The number of the questions is huge (around 3000) and I have ...
1
vote
1answer
63 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{...
1
vote
1answer
57 views

Is there a command for separated lines for each word in a \blank in xsim?

I want to print a cloze with xsim, but instead of one complete line for the gap I want a line that indicates how many words there have to be. Of course it's doable by giving each word an extra blank, ...
12
votes
2answers
2k views

Solution of problems in the end of a book [duplicate]

Possible Duplicate: How can I produce exercises in one part of a LaTeX document with selected answers in another? I'm writing a book and want to add some math problems and solutions to this book. ...
3
votes
1answer
264 views

Using `\ExerciseSelect` (and friends) command of the `exercise` package

In the documentation says: "The purpose of these commands is to select exercises within a long list stored on an auxiliary file." But I don't know how to tell the package which is the external ...
3
votes
1answer
252 views

Lecture notes with embedded exercises and separate keys

I have a collection of lecture notes which have exercises scattered throughout them. I would like to provide a key to these exercises that is a separate file from the compiled notes, but whose ...
2
votes
1answer
106 views

Answer Page Not Working

I'm developing worksheets for students to practice determining equations of lines. Everything is working except for the last command \ManySolutions. In fact, the code compiles without it. Does ...
2
votes
2answers
846 views

Creating my own sectioning command for exercises

I'm editing a book. What I want is a sectioning command like \section, \subsection, and friends, to typeset a exercises section at the end of each section of the book. This exercises are in some list ...
1
vote
1answer
72 views

Solutions Will Not Compile

I'm trying to make simple integer exercise pages and solution pages. Why does this code not compile? I'm pretty sure the problem is in the \xdef line, but I don't know what the problem is. Any help ...
1
vote
1answer
78 views

Why does not cross-referencing of exercises work with `exsheets`?

I am trying to use cleveref package to create custom referencing scheme for exercises created using exsheets. I customize cross-referencing of floats and equations very well using codes similar to the ...
1
vote
1answer
511 views

Exercise package with Babel

About two years ago, I used the Exercise package with Babel to obtain a document of exercises in French. Now, I can't get it to work : it's always in English, with the exercise header as "Exercise" ...
0
votes
1answer
249 views

Theorem numbering as subsections and automatic solutions

I have a problem environment where the counter is coupled to the subsection counter. However this doesn't work with automatic solutions. I tried to couple the solutions counter to the subsections as ...
0
votes
1answer
383 views

How to create this document with tikz

Good morning friends; I would be very grateful if you help me create this TD10 document with tikz. Thanks.
0
votes
0answers
279 views

What's the best way to hide (leave space) for “Solution”?

Sorry if my previous question was not so clear. I will delete it later. Here is a MVE. \documentclass[12pt,a4paper]{report} \usepackage{amsmath,amsthm,amssymb} \usepackage{enumerate} %%%%%%%%%%%%%%...