1

I'm trying to migrate from exsheets to xsim, and I was wondering if there is an easy way to tell xsim not to print the points of the exercises (I'm thinking about a parameter added within xsimsetup). I used to do this in exsheets with something along the lines of

\ifdefined\exam 5 \else 0 \fi

but this is not working anymore.

Also, I can't find something analogous to

type = exam

in order to get "Question" rather than "Exercise" (yes, I minor thing but anyway...). Is that gone?

Cheers.

4
  • Welcome to TeX.SX!
    – Bobyandbob
    Commented Feb 17, 2018 at 15:59
  • Which template (in the xsim sense) do you use for exercises? Did you try defining your own template without printing points?
    – TeXnician
    Commented Feb 17, 2018 at 17:11
  • No, I didn't...I'm new to xsim and I was an un-advanced user of exsheets where I didn't need this. I'll take a look.
    – manu
    Commented Feb 18, 2018 at 19:42
  • If you do not want points at all, replace \begin{question}[ID=001, points=10] with \begin{question}[ID=001]. If you set a template, something like \GetExercisePropertyT{points}{} might work (untested).
    – PatrickT
    Commented Feb 27, 2018 at 9:45

1 Answer 1

1

Thanks PatrickT, that did the trick!!

For future reference, in the preamble I added

\xsimsetup{                                                                                           
    solution/print = true,
    exercise/template = nopoints,
    solution/template = nopoints
}
\DeclareExerciseEnvironmentTemplate{nopoints}{%                                                       
    \subsection*
    {%
        \XSIMmixedcase{\GetExerciseName}\nobreakspace
        \GetExerciseProperty{counter}%
        \IfInsideSolutionF
        {%
        \GetExercisePropertyT{subtitle}
        { {\normalfont\itshape\PropertyValue}}%
        }%
    }
    \GetExercisePropertyT{points}{}%
}
{}

(the template is simply the default template with the change suggested by PatrickT).

Cheers.

1
  • 1
    Leaving \GetExercisePropertyT{points}{} away completely would be even easier
    – cgnieder
    Commented Feb 28, 2018 at 16:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .