I would like to give a custom style to my table of contents, in a memoir document.
My goal is to make it look like in the image below, more specifically underline the entire line for sections and nothing for subsections, instead of having dots like with the default style:
I know the tocloft package can be used to some extent, but I didn't find how to use it to do that. I saw someone mixing its use with tikz figures but I hope there is an easier way to do it.
memoir
, see my answer