Take a look at the manual for mobilesheets, which you can download from the homepage. If you download the manual and import it into mobilesheets, the table of contents will work as you have described.
I think if you create a pdf following this example you should get what you want.
https://zubersoft.com/mobilesheets/manual/
I think if you create a pdf following this example you should get what you want.
https://zubersoft.com/mobilesheets/manual/
Samsung Galaxy Tab S7 FE Android 12
Samsung Note Pro 12.2 LineageOS 14.1
Huawei Media Pad M3 lite Android 7
Samsung Note Pro 12.2 LineageOS 14.1
Huawei Media Pad M3 lite Android 7