View Single Post
Old 09-06-2022, 11:14 AM   #12
CubGeek
Connoisseur
CubGeek began at the beginning.
 
Posts: 52
Karma: 10
Join Date: Sep 2021
Location: Upstate NY, USA
Device: iPad Pro, Kindle basic
Quote:
Originally Posted by odamizu View Post
Am I the only one where the templates only work with EPUB2 and don't work with EPUB3?
Windows 10 (21H2)
Sigil 1.9.20


I have Sigil set in my preferences to default to EPUB3. I opened the Sigil Preferences directory through the button in the preferences dialog, then closed Sigil. I then created a "user-template3.css" and "user-template3.xhtml" into that same directory, using Notepad++. The CSS has a couple of basic entries, and the XHTML file has a basic framework with a couple paragraphs of "Lorem ipsum" content.

When I start Sigil, the user-template3.xhtml is automatically loaded and shown as the "OEBPS/Text/Section0001.xhtml" file in the Book Browser. When I right-click the Styles directory and select Add Blank Stylesheet, the user-template3.css is loaded as the "OEBPS/Styles/Style0001.css" file.


[Edit] I just tried the same process for EPUB2 (user-template2.*) with a couple changes so I could easily tell if they were the correct files, and when I had Sigil switch to a new EPUB2 document, the xhtml file was loaded as expected as was the CSS file for a new stylesheet. [/Edit]

Last edited by CubGeek; 09-06-2022 at 11:28 AM.
CubGeek is offline   Reply With Quote