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 could apply separate formats to questions and answers. Any suggestion?
\usepackage[margin=1in]{geometry}
\usepackage[skins,most,breakable]{tcolorbox}
\usepackage{multicol}
\usepackage{enumerate}
\usepackage{xcolor}
\definecolor{ocre}{RGB}{1,1,1}
\usepackage{amsmath,amsfonts,amssymb,amsthm}
\usepackage[no-files]{xsim}
\usepackage{tasks}
%%%%%%%% XSIM CONFIG
\xsimsetup{
solution/print=false,
exercise/the-counter = \Alph{exercise}.,
exercise/name=Práctica,
exercises/name=Ejercicio,
solution/name=Soluciones,
solutions/name=Soluciones,
exercise/template =default,
solution/template =default,
exercise/heading = \subsection*,
solution/heading = \subsection*
}
\newcommand\PR[2]{\IfInsideSolutionTF{#2}{#1}}
\settasks{
label = \theexercise.\arabic* ,
label-format=\bfseries,
item-indent = 2.5em ,
label-width = 1em ,
label-align=left,
before-skip =0.5em,
after-item-skip=0pt,
label-offset = 1em
}
\begin{document}
\chapter{Adición y Sustracción de Números Enteros}
\section{Adición y sustracción}
\setcounter{exercise}{0}
\begin{exercise}[solution,subtitle=Efectuar las operaciones de adición y sustracción de números enteros: ]
\begin{multicols}{3}
\begin{tasks}[label=\arabic*)]
\task \PR{$3+9$}{$S=12$}
\task \PR{$8+5$}{$S=13$}
\task \PR{$13-7$}{$S=6$}
\task \PR{$19-4$}{$S=15$}
\task \PR{$9-13$}{$S=-4$}
\task \PR{$5-7$}{$S=-2$}
\task \PR{$-2-7$}{$S=-9$}
\task \PR{$2+5+7+1$}{$S=15$}
\task \PR{$6+8+3+2+4$}{$S=23$}
\task \PR{$-3-6-1-8$}{$S=-18$}
\task \PR{$-7-2-4-5-1$}{$S=-19$}
\task \PR{$6-5-3+9$}{$S=7$}
\task \PR{$2-4-2-4+1$}{$S=-7$}
\task \PR{$2+5-11+6-3$}{$S=-1$}
\task \PR{$2+1-8+25$}{$S=20$}
\task \PR{$28+5-13+7$}{$S=27$}
\task \PR{$8-3-25-36$}{$S=-56$}
\task \PR{$-10+5+4-73-8$}{$S=-82$}
\task \PR{$-3+6-5+12+4-11$}{$S=3$}
\task \PR{$48-60+7+4+57-5$}{$S=51$}
\end{tasks}
\end{multicols}
\end{exercise}
\section{Soluciones del Capítulo}
\printsolutions[chapter=1, headings = false]
\end{document}
This is what I have:
This is what I would like to have:
I look forward to your cooperation, thanks in advance.