I'm using exercise package and I want the list of the exercise in the index. In texlive2019 (mac) I did not have any problem. Now, with texlive2020 (mac), I get the list of the exercises in the index, however each value is followed by a "t". Here the code:
\documentclass[12pt,a4paper]{book}
\usepackage[utf8]{inputenc}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
%
\usepackage{exercise}
\renewcounter{Exercise}[chapter]% Reset counter every chapter
\renewcommand{\theExercise}{\thechapter.\arabic{Exercise}}%
\begin{document}
%
\author{Author Name}
%
\title{The proof}
%
\maketitle
%
\tableofcontents
%
\ListOfExerciseInToc
\ExerciseLevelInToc{section}
%
%
\chapter{gas}
\begin{Exercise}[difficulty=1]
bla
bla
bla
\end{Exercise}
\begin{Exercise}[difficulty=2]
blo
blo
blo
\end{Exercise}
\chapter{energy}
\begin{Exercise}[difficulty=3]
blu
blu
blu
\end{Exercise}
\begin{Exercise}[difficulty=1]
bli
bli
bli
\end{Exercise}
\end{document}
exercise– egreg May 18 '20 at 21:57