TeX - LaTeX Asked by JIGAR SURA on June 25, 2021
I want to make a colorbox around Exercise (question only). I have used tcolorbox for theorems but unable to understand how it can be used for all Exercise. A suggestion will be appreciated.
documentclass[a4paper, 11pt]{book}
usepackage[lastexercise]{exercise}
begin{document}
begin{ExerciseList}
Exercise Investigate convergence of the following integrals:
end{ExerciseList}
end{document}
I'm not sure to have understood what you exactly like, but this could be a starting point:
documentclass[a4paper, 11pt]{book}
usepackage{tcolorbox}
usepackage[lastexercise]{exercise}
renewcommand{ExerciseListHeader}{begin{tcolorbox}ExerciseHeaderDifficulty%
textbf{ExerciseListName ExerciseHeaderNB ExerciseHeaderTitle}%
ExerciseHeaderOriginend{tcolorbox}}
BeforeBeginEnvironment{ExerciseList}{vspace{10pt}par}
AfterEndEnvironment{ExerciseList}{vspace{10pt}par}
begin{document}
Something before the list. Something before the list. Something before the list. Something before the list. Something before the list.
begin{ExerciseList}
Exercise Investigate convergence of the following integrals:
Answer An answer.
Exercise Another question:
Answer Another answer.
end{ExerciseList}
Something after the list.
Something after the list.
Something after the list.
Something after the list.
Something after the list.
end{document}
Answered by CarLaTeX on June 25, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP