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 [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}.

1
vote
1answer
18 views

Even spacing for exercise sheet

I want to create a design for an exercise sheet. That's what I've got so far: \documentclass[DIV=15]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[...
1
vote
1answer
23 views

Stop resetting question counter after a new part

I use the exercise package for typesetting exercises and questions. After a new part the (sub)question counter is reseted. I would to avoid this but I don't know how. MVE \documentclass[11pt]{...
3
votes
0answers
39 views

Using a LaTeX class to generate separate exercise sheets for questions, solutions, and hints

I'm currently relying on the exam class to produce separate exercise sheets for questions and solutions. Is there a way to use that class to produce a third sheet with hints instead of full solutions, ...
1
vote
1answer
55 views

Mulitple choice question in Exercise package

I am creating an assignment for students that would contain some several chapters with theory, exercise and solution. I want to create multiple choice questions using exercise package of latex. I ...
5
votes
2answers
60 views

Why there is no space left after the answer header?

I redefined the exercise and the answer headers of exercise package in the same way. After the exercise header there is correctly some space left, after the answer header no. Of course, I can put it ...
4
votes
1answer
53 views

Showing points and total points using exercise or any other suitable package

I want to prepare a book with many chapters (and sections), notes, exercises and linked solutions at the end of the book . I decided to adopt the example from on matching enumerated exercises with ...
1
vote
1answer
60 views

How to split a sheet of exercises in different files, one file containing just one exercise?

I have a big file having the following structure : \begin{exo} ... \end{exo} \begin{exo} ... \end{exo} My aim is to create different files containing just one exercice. How can I do this ? Does ...
2
votes
1answer
158 views

How to customize the exercise package?

\documentclass[a4paper,11pt]{book} \usepackage{hyperref} \usepackage[lastexercise,answerdelayed,exercisedelayed]{exercise} \renewcommand{\AnswerName}{Exercise} \begin{document} { \tableofcontents \...
1
vote
0answers
71 views

Exercises with solutions math's sheet : packages or template advice needed

I would like to create a exercises&solutions math's sheet for my students. I would love to be able to insert each exercise and solution in one section like : \begin{exercise) $(2x-3)^2-(3x+2)^...
1
vote
1answer
46 views

Dot after theorem/exercise and text in same line

I would like to have the "Exercise xx." (with a dot) in italic bold red in the same font size and the exercises text that would follow in the same line. Exercise 1. Solve x+1=2. Exercise 2. Solve x-1=...
1
vote
0answers
39 views

different types of exercises, theorems etc [closed]

I need to categorize theorems like School Book Theorem, Important Theorem, Interesting Theorem etc with different numbering. The same at the exercises. How can I do it?
1
vote
1answer
104 views

Add optional argument to new environment template

I'm attempting to create two new environments, one for writing exercises and another for its solutions, with the following characteristics: The Exercise environment should have: By default, have no ...
0
votes
0answers
21 views

Pagebreaks between environments rather than within it

I use the exercise package to produce exercise sheets composed of series of small questions. As I use a two columns layout, I often encounter page/column breaks, and sometimes it cuts the exercise at ...
2
votes
0answers
23 views

Package conflict to generate page break: mdframed and exercise

I'm trying to write a text box inside an exercise environment. Unfortunately, this prevents mdframed to break among pages. I want to obtain mdframed to work inside the exercise environment and get ...
1
vote
1answer
59 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
61 views

Reenumerate exercises

I want to re-number the exercises below by changing the number 1. by 9., the number 2. by 12. and the number 3. by 15. How should I proceed? \documentclass{article} \usepackage[brazil]{babel} \...
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 ...
1
vote
1answer
130 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 ...
0
votes
0answers
182 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} %%%%%%%%%%%%%%...
6
votes
2answers
771 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]{...
0
votes
0answers
100 views

How to express level of difficulty in exercises? [duplicate]

How would it be possible to have graphic expression of level of difficulty in exercises package like in Stewart's book? Let say, to have those colored rectangles around the exercise number.
0
votes
0answers
145 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 ...
3
votes
1answer
145 views

Reference a question (exercise package)

I am using the package 'exercise' and I want to reference a question and a question later in the text. Something like this: \documentclass{article} \usepackage{exercise} \begin{document} \begin{...
2
votes
1answer
173 views

Problems with colourful exercise environment in latex

I create an exercise sheet with solutions and I would like to use the following colourful exercise environment that I also found on this blog : \documentclass[a4paper,10pt,oneside]{article} \...
1
vote
1answer
55 views

How to remove the heading of an exercise?

\documentclass[12pt]{article} \usepackage[a4paper]{geometry} \usepackage[spanish]{babel} \RequirePackage[framemethod=default]{mdframed} \newtheorem{exerciseT}{exercise}[section] \newmdenv[skipabove=...
1
vote
1answer
70 views

How can I remove the exercise number?

I do not want to see "Exercise 1 find", I want only just "find": \documentclass[12pt]{article} \usepackage[a4paper]{geometry} \usepackage[lastexercise]{exercise} \begin{document} \section{...
2
votes
2answers
249 views

exercise box with title and example number in marginpar

I would like to get the exercise number and title in the text area and example number should be print in marginpar. How do achieve this? My MWE is: \documentclass{article} \usepackage[margin=1in]{...
0
votes
1answer
81 views

exercise package: use alphabetical counter for questions

I'm using the exercise package, and instead of Questions of an exercise being numbered, I'd like them to use letters, for instance a. , b. , c. and so on. I tried to use \renewcommand\theQuestion{...
0
votes
1answer
161 views

How to use exercise.sty for an exercise with several questions

This should be easy, but I just cannot figure it out reading the documentation. Somehow I get confused by all this Exercise/ExePart/subQuestion, etc. Basically I want to typeset an exercise which ...
2
votes
1answer
199 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
0answers
146 views

Two Font Sizes and \xdef

I need both \large and \huge fonts inside of TikZ diagrams for an exercise for kids to learn that, say, adding a negative is the same as subtracting a positive. Unfortunately, the font size commands ...
1
vote
1answer
65 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 ...
2
votes
2answers
189 views

Text with gaps and white text

I have a kind of learning document with exercises. In this document I have texts with gaps. The gaps are currently filled by dots. I am using the following commands for this purpose: \newcommand{\...
1
vote
1answer
471 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 ...
2
votes
1answer
199 views

Splitting up gradetables in xsim

I am using the great xsim-package to create a new exam-template at work. So far, I have the following setting: I created two exercise-types, one for the first part of the exam (question) and one for ...
0
votes
1answer
85 views

Hyphenation and strange line breaks with xsim \blanks

I have a problem with the line breaks using \blank from the xsim package. As shown in the following picture the line breaks, even if there would be way enough space to finish it at both questions (...
4
votes
3answers
498 views

How to (use package exsheets to) make a exercise section at the end of each section or subsection like the following?

PS: exsheets isn't a must, all methods are welcome. My document structure: \documentclass{book} \title{Introduction to Latex} \author{Me} \date{} \begin{document} \chapter{first} \...
2
votes
1answer
220 views

more complex use of tags in xsim

I would like to use the tag level (1,2,3) in xsim, but not only in exclusive manner, but as multiple tags, so that an exercise can have the tag level 1 and 2. So that, collecting later all level 2 ...
1
vote
1answer
47 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, ...
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 ...
2
votes
1answer
87 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 ...
0
votes
1answer
108 views

Solutions Page Not Compiling

I am creating exercise worksheets with solutions for students to practice determining equations from linear graphs. But my solutions page is not compiling... again. [Previous post.] I replaced all ...
0
votes
3answers
1k views

How to create an exercise environment like this

How can we to create an exercise environment like this: Full document is here: Exercises.pdf
4
votes
1answer
398 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 ...
1
vote
1answer
78 views

stacking environments within user-defined environment [duplicate]

I am using two packages - exercise and listings. I am trying to create an environment "codeAnswer" for answers specifically containing source code, so that i don't have to do - \begin{Answer} \begin{...
3
votes
1answer
263 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 ...
3
votes
2answers
628 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 ...
5
votes
1answer
197 views

How do I fix incompatibility of exercise and unicode-math packages?

I wanted to use the exercise package in a LaTeX-document that is processed with LuaLaTeX. In this case, I encountered the problem that numbering and formatting of questions does not work correctly. ...
1
vote
0answers
326 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 ...
3
votes
1answer
104 views

Conditionally display lstlisting

I'm writing a documentclass for creating exercise sheets and exams at school. For this purpose I created a boolean variable \g_test_showresults_bool which can be used to conditionally display the ...