Skip to main content

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
2 votes
1 answer
29 views

DeclareExerciseType/XSIMtransate doesn't appear like I expected?

This is my first time asking a question here because every question I've had over the past 20 years was already answered somewhere in here. So thank you all so much for that. I'm not ok with your ...
Aliska Gibbins's user avatar
0 votes
0 answers
44 views

Why can't I use comment environment with xsim?

I am writing some lecture notes in which I want to add some hints for exercises. To do that I use the package xsim and I create a new environment for hint. And sometimes I also need to call some ...
R. N's user avatar
  • 1,138
0 votes
0 answers
46 views

Error: "Missing \endcsname" [duplicate]

I have a problem when compiling my Latex file. The problem seems to be the babel-package \usepackage[english,ngerman]{babel} (because the error goes away if I delete this line) the xsim-package and ...
garondal's user avatar
  • 455
0 votes
0 answers
64 views

xsim problem statement and solution in the same tcolorbox

The following result is obtained using the tcolorbox package and the exam class. Since I'm writing a book, I switched to the scrbook class and the xsim package. Is it possible to get the same result? ...
azazello's user avatar
1 vote
0 answers
47 views

Xsim Exercise without numbering

I use xsim to create exams and it works very well. I kove the way it handles exercises and solutions. Now I'm starting to create a script and I was wondering if there is a way to hide the numbering ...
Martin Heydenreich's user avatar
0 votes
0 answers
31 views

Why referencing within xsim exercise/solution environment is not working?

In the text of a solution, I would like to make a reference to a figure which is inside the solution environment as well, but it is not working. The code is as simple as: \begin{solution} \begin{...
Salvatore Manfredi D's user avatar
0 votes
1 answer
105 views

Printcollection of xsim outputs questions without question number

I am currently working on an exam template using xsim. I created a custom exercise template which can output indiviual points if the question consists of several subquestions. In the MWE below I now ...
Hirshy's user avatar
  • 143
1 vote
1 answer
127 views

Testing if a string is a part of a csv list of strings

I use the xsim package with tags for my exercises. These tags are a CSV lists of strings. I have a tag called year (year={2020-2021,2017-2018}, for instance) which contains school years. I can ...
Didier's user avatar
  • 1,323
1 vote
1 answer
48 views

Resetting counter exercise for each page with Xsim package

I've seen this topic:How to reset exercise counter in XSIM but thats's not exactly what I want. I am creating a document which contains exercices for my students. Each page contains exercices for only ...
Didier's user avatar
  • 1,323
0 votes
0 answers
53 views

Level of difficulty in the title with package xsim

I would like to indicate the level of difficulty in the title of the exercise with the package xsim. Here is a MWE: \documentclass[10pt,a4paper,twoside,french]{article} \usepackage{xsim} \usepackage{...
Didier's user avatar
  • 1,323
5 votes
1 answer
262 views

Using 'xsim', how to print two ExerciseTypes and their solutions separately using custom templates

I am trying to use two ExerciseTypes 'exercise' and 'question' using xsim. Both the ExerciseTypes will be used to display 'exercises' and 'questions' in different sections of a book and their answers ...
Aarone's user avatar
  • 103
1 vote
1 answer
61 views

Minted inside Xsim environment

It is needed to insert a Minted inside Xsim environment. The basic code is as follow: \documentclass{book} \usepackage{xcolor} \usepackage{minted} \usepackage[verbose]{xsim}%paquete de ejercicios ...
ABV's user avatar
  • 449
1 vote
1 answer
80 views

Wrapping verbatim environment (xsimverb)

I am designing a library that needs to deal with some verbatim code. For now, I use the great xsimverb package that provides nice things, like gobble, deal with basically all kinds of characters… I ...
tobiasBora's user avatar
  • 8,954
0 votes
1 answer
44 views

Points question xsim package precision decimal

How can I customize the score accurately as a 1.0 is not able to recognize. Look in MWE I like show points 1.0 and 2.0, if points is major 1.001 show in points questions, how change this \...
Fabio Lima's user avatar
3 votes
1 answer
96 views

How to modify an existing environment with tcolorbox and keeping the name?

I want to redefine the aufgabe environment and combine it with the declared tcolorbox. In the end Aufgabe 1 subtitle should have the same textcolor/backgroundcolor like Exercise 0.1. I also want to ...
user2809537's user avatar
2 votes
0 answers
96 views

xsim problem with reverse synctex

I am possibly experiencing a strange behaviour with package xsim while working with reverse synctex (from document to source). Expected behaviour I activate reverse synctex in my IDE, then I get ...
marc's user avatar
  • 701
0 votes
1 answer
143 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 ...
Krishna's user avatar
  • 125
1 vote
2 answers
355 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}...
Janne 's user avatar
  • 11
1 vote
1 answer
126 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 ...
tush's user avatar
  • 1,147
1 vote
2 answers
89 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, ...
tush's user avatar
  • 1,147
0 votes
1 answer
85 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 ...
tush's user avatar
  • 1,147
0 votes
1 answer
126 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 ...
tush's user avatar
  • 1,147
0 votes
1 answer
325 views

XSIM exercises with normal numbers

I want XSIM questions with normal numerals. I tried but I am not getting proper indentation. How can I get proper indentation as shown in next image. I can get by using exam class but I want it using ...
Krishna's user avatar
  • 125
0 votes
0 answers
102 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 ...
Peter Sanctus's user avatar
1 vote
0 answers
70 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 "...
Leonardo Castro's user avatar
1 vote
1 answer
122 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 ...
Ricardo Ferreira's user avatar
1 vote
0 answers
78 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 ...
asekno's user avatar
  • 11
3 votes
1 answer
113 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 ...
Thomas Benko's user avatar
0 votes
1 answer
68 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/...
Stefan's user avatar
  • 3
4 votes
1 answer
156 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: \...
Manuel Schmidt's user avatar
0 votes
2 answers
279 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" ...
tush's user avatar
  • 1,147
1 vote
2 answers
162 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 ...
tush's user avatar
  • 1,147
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 ...
Randall Fairman's user avatar
0 votes
0 answers
79 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} \...
Alan Jones's user avatar
0 votes
1 answer
226 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 ...
Sebastian Molina's user avatar
1 vote
1 answer
79 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} \...
Marca85's user avatar
  • 118
1 vote
0 answers
115 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 ...
Michael.H's user avatar
  • 107
1 vote
1 answer
90 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 ...
Nicolas Leduc's user avatar
1 vote
1 answer
170 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 ...
R. N's user avatar
  • 1,138
1 vote
1 answer
94 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*\...
mike's user avatar
  • 11
1 vote
2 answers
146 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} \...
Manuel Schmidt's user avatar
0 votes
1 answer
195 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 ...
Manuel's user avatar
  • 363
4 votes
3 answers
1k 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 ...
tush's user avatar
  • 1,147
1 vote
1 answer
83 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 ...
LektorAugedal's user avatar
0 votes
1 answer
546 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, ...
J Robert Buchanan's user avatar
0 votes
1 answer
200 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: ...
PatrickT's user avatar
  • 3,013
1 vote
1 answer
261 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 ...
marc's user avatar
  • 701
1 vote
1 answer
121 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 ...
J Robert Buchanan's user avatar
0 votes
0 answers
137 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 ...
jowe_19's user avatar
  • 991
3 votes
1 answer
393 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 with an ...
Meand314's user avatar