Questions tagged [xsim]

xsim is the official successor of exsheets. Use this tag if you have a question about xsim. For questions about other packages like exsheets use the respective tag instead.

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

How to reset exercise counter in XSIM

How can I reset the exercise counter within the same exercise type. I don’t want to create different exercise types as I want to create question bank and use collection option. I have attached MWE and ...
  • 15
1 vote
2 answers
98 views

LaTeX package schule - How to make changes to the template

I have discovered the wonderful schule package and would like to change the layout of the evaluation units. However, I have absolutely no idea how to make any changes. \documentclass[a4paper]{scrartcl}...
  • 11
0 votes
0 answers
22 views

List of exercises with the same of property (for example the same difficulty level)

I would like to create a list of exercise numbers that share the same property (for example the difficulty level) at the beginning of my exercise handout. So for example, I would like to see something ...
  • 118
1 vote
1 answer
65 views

Collecting hints to exercises with xsim

I have a few chapters to my book. Inside each chapter there are a few exercises and for each exercise there are solutions and to some of them also a hint. The last chapter of the book will be a ...
  • 818
1 vote
2 answers
65 views

Remove hint reference when there is no hint

I am using xsim to print hints and solutions to exercises. All of the exercises have corresponding solutions, but not all exercises have hints, as shown below. When there is no hint to an exercise, ...
  • 818
0 votes
0 answers
42 views

XSIM : print solutions for each chapter when the chapter depends on part counter

My chapters are numbered according to the part they are in. I know that it is not possible to use printallsolutions[chapter=true] in this case. Is there a way to get around this? For example, by using ...
  • 783
0 votes
1 answer
45 views

Reference to a hint of the current exercise when using xsim

I want to print on the margin paragraph a \pageref to the hint of the current exercise. This is a follow up to a previous question of mine which I rely on, but for some reason my code doesn't work. I ...
  • 818
0 votes
1 answer
81 views

Access the value of a newly declared exercise property in xsim

I want to write a book with exercises, solutions to exercises and some hints to those exercises. I need help with understanding how to work with a new declared property (hint, in this case). I am ...
  • 818
0 votes
1 answer
157 views

XSIM exercises with normal numbers

This is my first SE question. I am trying to learn LaTeX. This forum helped me in many ways. I am very thankful to TeX SE community especially @cgnieder for wonderful package XSIM. I want XSIM ...
  • 15
0 votes
0 answers
52 views

Suddenly, the xsim package refuses to wrap my listing-enviroment

I wrote a script with a set of coding problems, and made use of the xsim package to produce an optional sample solution. Until September, this worked fine, especially wrapping a lstlisting-enviroment ...
0 votes
0 answers
38 views

Why is XSIM printing exercise statements as solutions?

Whenever a solution is not provided, XSIM is repeating the statement of the exercise as its solution. This only happens for custom exercise types. In the example below, it should not show the "...
1 vote
1 answer
42 views

xsim, babel and tikzcd clash: quotation marks

I'm trying to write a simple commutative diagram like A \arrow[r, "f"] & B but I can't do it inside xsim's exercise environment (the combination of the exercise environment with the ...
1 vote
0 answers
36 views

Tikz picture with externalize in xsim solution

I have a document using the package xsim for creating exercises and corresponding solutions. The solutions are printed in the back of the document so students do not directly skip forward to the ...
  • 11
3 votes
1 answer
68 views

How to use a crossword inside an xsim exercise?

I was mandated to create some grid-based puzzles for the students. I planned to use the xsim package to separate the exercises, and cwpuzzle to create the puzzles. But the display was garbaged inside ...
0 votes
1 answer
45 views

No linebreak before TASKS in solution-environment of XSIM-Package

Is it possible to avoid linebreak before tasks in xsim? \documentclass{article} \usepackage{xsim,tasks,ulem} \loadxsimstyle{layouts} \xsimsetup{% exercise/template = mytemplate , solution/...
  • 3
0 votes
0 answers
106 views

Migrating from exam to xsim

I have a lot of exams written using exam class. However, recently, I would like to move to xsim, which I couldn't understand how to properly do it. So, I would like to get the following exam output ...
  • 8,959
0 votes
0 answers
68 views

Combination of TASK and XSIM

I am using a combination of XSIM and TASK but when I format the questions, this formatting also affects the answers (for example applying multicols to the questions also affects the answers). I wish I ...
3 votes
1 answer
112 views

Use tabularray in xsim template

Is there a way to use tabularray in the xsim ExerciseTableTemplate? I copied the default template from xsim, just replacing tabular with tblr which results in an error I cannot make sense of: \...
0 votes
2 answers
187 views

Type hint and solution page references to an exercise in the margin paragraph using xsim

I am writing exercises along my book and I am using xsim for this. For some of the exercise there will be a hint that should appear at the end of the chapter (under "Hints to exercises" ...
  • 818
0 votes
0 answers
63 views

Optionally discarding contents of environment or saving it

I'm trying to set up an environment whose body is either written to an external file, verbatim, or ignored entirely, at the user's option. In either case, the body is to be replaced by an external ...
1 vote
2 answers
103 views

Change \printsolutions header string in xsim

I am using xsim to type exercise-solution environments in my document. I want to change the string used for the header in \printsolutions[headings=true]. The document language is Hebrew, so I want it ...
  • 818
0 votes
0 answers
17 views

xsim file suffixes [duplicate]

The behavior of the example below is very odd. Every file name suffix I've tried works -- except for .js! I've tested this on Windows, but not Linux. The behavior is the same whether run under ...
0 votes
0 answers
53 views

XSIM package and custom grade table

How do I go about using the xsim package to display a custom gradetable in tags rather than exercises/questions. So far I have (my MWE) \documentclass{article} \usepackage{xsim,tasks,siunitx} \...
0 votes
1 answer
108 views

Custom enumeration of a list of exercises

I'd like to typeset a set of exercises from a book, from different chapters and sections, and give the solutions. I'm aware of packages like xsim or exercise, but I have not found a way to change ...
1 vote
1 answer
40 views

Ignore empty line in runin template of exercise/solution environment with xsim package

How can I modify the runin template of the exercise/solution environment of xsim package to ignore an empty line at the beginning of the environment in the source code? Thanks \documentclass{article} \...
  • 118
1 vote
0 answers
80 views

How to hide a solution in xsim for the student book and display all solutions for the teacher book

In my books there are two types of exercises. The first type has public solutions, those solutions should appear in the student's book and teacher's book. The second type has solutions that should ...
1 vote
1 answer
46 views

LaTeX xsim: printing only even/odd number answer

I am writing exercises sheets for my student and I want to print only solutions to odd (or even) numbered exercises using LaTeX xsim. I have searched on Google and looked in the xsim manual, but ...
1 vote
1 answer
107 views

Xsim shortsolution appear after each exercise

I am trying to have a document with some exercise and solution. I know there is many packages to do that, and I chose xsim because it fits to many of my criteria. Now, I would like to had a short ...
  • 926
1 vote
1 answer
70 views

xsim multiple choice repeating letter that is designated as \correct

Why is the (C) popping up instead of (D). (D) should be the right solution. Code copy/pasted from xsim manual. \NewTasksEnvironment[label=(\Alph*),label-width=15pt]{choices}[\choice] \newcommand*\...
  • 11
1 vote
2 answers
95 views

xsim collections: how to filter on multiple tags?

My goal is to have mandatory exercises sorted by subject and then optional exercises sorted by subjection using this MWE: \documentclass{report} \usepackage{xsim} \DeclareExerciseTagging{subject} \...
0 votes
1 answer
133 views

xsim solution environment within exercise environment vs outside exercise environment

For previous versions of xsim, it was possible to have the solution environment within the exercise environment and the global command \xsimsetup{solution/print = true} would print the solutions right ...
  • 311
4 votes
3 answers
507 views

Creating a solution label for an exercise using \declaretheoremstyle

I am writing a book with exercises scattered throughout the text, for which solutions are presented at the end of each chapter. I want the layout to be as follows: An exercise environment is ...
  • 818
1 vote
1 answer
71 views

In the LaTeX package XSIM, how do I get points in parentheses right after the question?

MWE: \documentclass{article} \usepackage[verbose]{xsim} \begin{document} \begin{exercise}[points = 4] Solve the equation \[ 3(x-2) + 7 = x + 3 \] \end{exercise} \end{document} The output: I ...
0 votes
1 answer
366 views

Need help creating an exercise/solution template

I am trying a create a simple and minimal layout for a collection of problems my department uses for a high school mathematics contest. I would like the exercises to simply be numbered consecutively, ...
0 votes
1 answer
139 views

XSIM: Question counter does not print

The following template worked with xsim v.0.19, but no longer works with v.0.20. The problem seems to be that \GetExerciseProperty{counter} is unable to retrieve the counter. Package info: Package: ...
  • 2,787
1 vote
1 answer
178 views

answer space in xsim

I am trying to use xsim to design a workbook for students, with a second version available for tutors. Therein will be exercises/questions/homework, however you want to call it, and their respective ...
  • 319
1 vote
1 answer
98 views

How do I create a solution manual for a textbook which uses xsim (v0.20) for its exercises?

I am writing a textbook using LaTeX. Within the textbook I am using the xsim package to create the exercises and their solutions. I would like the printed textbook to contain the exercises only and I ...
0 votes
0 answers
88 views

Issue with exercice titles with XSIM

If I create a first exercise using the XSIM package, with a certain subtitle, everything typesets correctly. However, when the body of the exercise is changed for an other one which does not have a ...
  • 783
2 votes
1 answer
227 views

Instructions between Exercises in XSIM Exercise Collection

I am writing a book and I want the book to have Exercises at the end of each chapter and Solutions at the end. I'm using "xsim" to typeset the Exercises and Solutions. I've started my MWE ...
1 vote
1 answer
57 views

Conditional header's content depending on xsim solutions being printed or not

Is there a way to set the header contents depend on whether the solutions are printed or not ? \documentclass[headsepline]{scrartcl} \usepackage{xsim} \usepackage{scrlayer-scrpage} \cohead{...
1 vote
0 answers
90 views

Numbering with greek numeral of exercises with xsim package

I would like make xsim numbering my exercises with greek numerals. For example instead of Θέμα 1 Θέμα 2 ... i would like Θέμα Α Θέμα Β ... etc How can i modify or set the counter? I have tried \...
4 votes
1 answer
172 views

Exercise order in grading tables using xsim and collections

I'm trying to build exam sheets with xsim using collections where exercises doesn't show up in the id order. The exercises print in the specified order (= counter order) in the exam itself but in the ...
0 votes
0 answers
67 views

How to set normal vertical alignment using xsim and tasks packages?

MWE \documentclass[13pt]{scrartcl} \usepackage[no-files]{xsim} \usepackage{tasks} \DeclareExerciseEnvironmentTemplate{main-task}{ \par \textit{\GetExerciseName} \GetExerciseProperty{counter}. } ...
  • 365
1 vote
2 answers
150 views

Add xsim exercises in table of contents

I wanted to know if it was possible to insert the list of exercises in the table of contents via \tableofcontent. For each of my exercises, I use a template like this: \begin{exercise}[subtitle=title ...
1 vote
0 answers
302 views

Faster Compilation for a large latex book

I am working on an application where the user learns a topic by interacting with a chatbot. After the completion of the course, the user can generate a personalized notebook using their interaction ...
2 votes
1 answer
318 views

xsim number chapterwise in own exercise environment

My code is: \documentclass{scrbook} \usepackage[utf8]{inputenc} %Rahmenumgebung \usepackage{tcolorbox} \usepackage[ngerman]{babel} \tcbuselibrary{skins,breakable,xparse} \usepackage[% blank,%...
1 vote
1 answer
134 views

xsim changes case in `solution-name`

Consider the following example code for xsim (in German): \documentclass{article} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{xsim} \...
  • 28.5k
0 votes
1 answer
115 views

Multiple hint environments with xsim

I want to use the xsim package to write exercises with may contain multiple hints (short and long version) and maybe also solutions. I.e. something like this: \documentclass{article} \usepackage{xsim} ...
  • 28.5k
1 vote
1 answer
194 views

xsim: Can't get custom exercise types to use custom numbering

Using xsim, I have defined two custom exercise types, meditation and thoughtexperiment. They seem to work right, except for custom numbering. I'm trying to get meditation to appear as Meditation ...
2 votes
1 answer
582 views

How to print questions and exercises in-place with xsim?

I'm working on a textbook, and I'm trying to use xsim for questions/exercises and their answers. What I want to do is simple: Place small question/exercise items throughout each chapter, ...