View Single Post
Old 11-10-2021, 01:09 PM   #37
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Peter Ahlstrom View Post
OOHHHH I think I got it now. The problem is that Sigil fakes nav.xhtml's location in the sidebar. I opened the ePub in BBEdit and it shows that nav.xhml is NOT inside the Text folder like Sigil shows. It's in the OEBPS folder. So the stylesheet reference needs to remove the "../"

Now to see if that works!

And it does, perfectly.
You can also Tools > Restructure Epub to Sigil Norm.

This will move all files to organized folders:
  • HTML/XHTML
    • ../Text/example.html
  • CSS
    • ../Styles/example.css
  • Images
    • ../Images/example.jpg
  • Fonts
    • ../Fonts/example.jpg
  • (Audio/Video + all other [Misc] move into their own folders too.)

and Sigil will update all your code as well.

So if your TOC links pointed to:

Code:
<a href="Chapter01.xhtml">
it will update to:

Code:
<a href="../Text/Chapter01.xhtml">
Side Note: This file moving/renaming is what older versions of Sigil forced upon opening EPUBs. Now, it's optional.
Tex2002ans is offline   Reply With Quote