Designing ebooks with free software
Working with CSS
To gain full control over formatting, you will need to work with CSS, which is used in both the content files and the stylesheets in the ebook. Some features, like tables or multiple columns, can only be added to ebooks through CSS, although the easiest choice might be to avoid such features altogether.
Some CSS tags, like those for lists, are identical to those for plain HTML. However, you will probably need to learn more to edit your ebooks. W3Schools [1] has some tutorials that include an introduction to CSS's structure and pages for CSS tags that you can experiment with online. Both are first-rate resources that can quickly bring you up to speed (Figure 4).
At first, Calibre may seem like a crowded environment for editing text files. However, when a text file displays in the Edit book window, the Live CSS pane to the right of the text pane shows an enlargement of the code at the cursor's current position. You can also close other panes to give the text pane more room. Alternatively, you can use a CSS editor like Sigil to copy and paste into Calibre.
Finishing Touches
When your ebook is ready, Calibre offers some final touches in the Edit book window. Some of the most useful features are in the Tools menu (Figure 5).
You can:
- Edit the text in the separate files that Calibre creates during conversion.
- Create and edit a TOC (although doing so in the LibreOffice raw file is easier).
- Delete or edit images. To update an image, simply give the new image the same name as the original. To add an image, you will have to add the CSS for it (see below).
- Edit or add stylesheets. CSS knowledge is required.
When you are finished editing to your satisfaction, Edit book | Tools offers functions to put the final polish on your ebook:
- Smarten punctuation: Add smart or curly quotation marks.
- Compress images losslessly: Reduce file size while keeping high-quality images.
- Check spelling: Spell checking is organized by word, not paragraphs. CSS tags are omitted. Work with the Writer source file open for reference.
- Check book: Validate the structure of the ebook. Results display at the top of the window. You can then attempt to correct errors.
You may need several tries to produce an ebook to your highest standards, but, with LibreOffice Writer, Calibre, and a little patience, you can get far better results than from most online conversion tools. If you are lucky, you may even be able to do so with only the CSS knowledge learned from existing examples.
Bruce Byfield goes into more detail about producing ebooks in"Designing eBooks with Free Software," which is available as a free download from https://www.designingebooks.com/download-buy/
Infos
- W3Schools: https://www.w3schools.com/Css/
« Previous 1 2
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Linux Kernel 6.13 Offers Improvements for AMD/Apple Users
The latest Linux kernel is now available, and it includes plenty of improvements, especially for those who use AMD or Apple-based systems.
-
Gnome 48 Debuts New Audio Player
To date, the audio player found within the Gnome desktop has been meh at best, but with the upcoming release that all changes.
-
Plasma 6.3 Ready for Public Beta Testing
Plasma 6.3 will ship with KDE Gear 24.12.1 and KDE Frameworks 6.10, along with some new and exciting features.
-
Budgie 10.10 Scheduled for Q1 2025 with a Surprising Desktop Update
If Budgie is your desktop environment of choice, 2025 is going to be a great year for you.
-
Firefox 134 Offers Improvements for Linux Version
Fans of Linux and Firefox rejoice, as there's a new version available that includes some handy updates.
-
Serpent OS Arrives with a New Alpha Release
After months of silence, Ikey Doherty has released a new alpha for his Serpent OS.
-
HashiCorp Cofounder Unveils Ghostty, a Linux Terminal App
Ghostty is a new Linux terminal app that's fast, feature-rich, and offers a platform-native GUI while remaining cross-platform.
-
Fedora Asahi Remix 41 Available for Apple Silicon
If you have an Apple Silicon Mac and you're hoping to install Fedora, you're in luck because the latest release supports the M1 and M2 chips.
-
Systemd Fixes Bug While Facing New Challenger in GNU Shepherd
The systemd developers have fixed a really nasty bug amid the release of the new GNU Shepherd init system.
-
AlmaLinux 10.0 Beta Released
The AlmaLinux OS Foundation has announced the availability of AlmaLinux 10.0 Beta ("Purple Lion") for all supported devices with significant changes.