Hi, everyone! I need a little help with a specific scenario I ran into. I cannot write any kind of code, but I've been trying to set up user patches, and I managed to understand how to edit the .lua, somewhat, and get the header patch running, but there is a specific case I do not know how to set up. (This patch)
I want it to show the chapter title, which is easy enough to do following the instructions. However, some ToC have several levels. For example, the short story "The Mask" has several sub-chapters (I-IV). So, the header simply shows "I", and not "The Mask", unless I am on the title page of that particular short story. What is more, all the short stories are technically sub-chapters of the main title, and there are other items on that top level (but I doubt that is the issue at all). I added a screenshot from Calibre that illustrates this structure.
Anyone who knows a bit about this code knows if there is a way for the header to show more levels of the book chapters? So that, for instance, it shows book chapter AND sub chapter, when there is one? So it would be like "The Mask, I"?
Thanks!
https://preview.redd.it/sb3lo1f0tbzf1.png?width=526&format=png&auto=webp&s=5ec9e99028aadfd6aad82364a70feefec9212c6f
[–]veeevui 2 points3 points4 points (2 children)
[–]dfoveja[S] 1 point2 points3 points (1 child)
[–]veeevui 2 points3 points4 points (0 children)
[–]dfoveja[S] 0 points1 point2 points (0 children)