I want to unbold the chapter name of the appendices in the toc, and only keep the appendix title/numbering bold. For example: "Appendix A supplementary materials for chapter 5". I used the solution from here Removing boldface from appendix chapters in TOC. I thought I could apply the unbold function to titletoc, but it doesn't work.
\documentclass{book}
\usepackage[titletoc,title]{appendix}
\usepackage{etoolbox}
\makeatletter
\g@addto@macro\appendices{%
\addtocontents{titletoc}{\protect\patchcmd{\protect\l@chapter}{\bfseries}{}{}{}}
}
\makeatother
\begin{document}
\tableofcontents
\begin{appendices}
\chapter{Supplementary materials for Chapter 5}
\chapter{Supplementary materials for Chapter 6}
\end{appendices}
\end{document}