Advertisement
rfog

Untitled

Aug 1st, 2022
1,108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Calibre book footer remaining pages in section
  2.  
  3. Paste next text into Calibre Header Template:
  4. <header style="justify-content: center;font-size:x-small"><div  class="even_page">_AUTHOR_</div><div class="odd_page"><i>_TITLE_</i></div></header>
  5.  
  6. Paste next text into Calibre Footer Template:
  7.  
  8. <footer style="justify-content: center;font-size:x-small"><div></div><script>document.currentScript.parentNode.querySelector("div").innerHTML =  ""+ _PAGENUM_ +" of " + _TOTAL_PAGES_ +" (" + parseInt(_PAGENUM_*100/_TOTAL_PAGES_) + "%) / " +_TOP_LEVEL_SECTION_PAGENUM_ + " of " + _TOP_LEVEL_SECTION_PAGES_ + " ("+ parseInt(_TOP_LEVEL_SECTION_PAGENUM_*100/_TOP_LEVEL_SECTION_PAGES_) +"%)"</script></footer>
  9.    
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement