1

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:

enter image description here

I would like (ignore the font differences):

enter image description here

0

1 Answer 1

2

"Solved" by adding this to the preamble:

\DeclareExerciseEnvironmentTemplate{custom}{%
\GetExerciseHeadingF{\subsection*}%
    {\XSIMmixedcase{\GetExerciseName}\nobreakspace
    \GetExerciseProperty{counter}
\IfInsideSolutionF{%
    \GetExercisePropertyT{points}{\normalfont %
        (%
         \printgoal{\PropertyValue}
         \IfExerciseGoalSingularTF{points}
            {\XSIMtranslate{point}}
            {\XSIMtranslate{points}}%
        )%
    }}%
}%
\par}

\DeclareExerciseType{problem}{
    exercise-env = problem ,
    solution-env = answer ,
    exercise-name = Problem ,
    solution-name = Answer ,
    exercise-template = custom ,
    solution-template = custom
}

Output now yields:

enter image description here

You must log in to answer this question.

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