Learn How To Create An Ebook in Linux Using Calibre

Amazon was the first platform to sell eBooks several years ago and since then they have grown a lot in popularity and people’s choice. What’s even more good news is that anyone can create one from their PC with the use of Free and Open Source tools.

This guide will show you how to do just that using Calibre, a great ebook reader and library program that is built for the purpose of opening ePub files, managing eBook collections, and a lot more.

Creating an Ebook in Linux

Together with the above-mentioned Calibre software, you will need a word processor. In this guide, we will use LibreOffice. Another material you need is your manuscript and the ebook cover of your choice with size 1410×2250.

Step 1

Open your text file in your word processor and set the chapter titles in your manuscript to Heading 1 so that Calibre will be able to  automatically create a table of contents for you. Just highlight the chapter titles and selection “Heading 1” from the paragraph style drop down box.

Do so by highlighting the chapter titles and selecting “Heading 1” from the paragraph style drop down box.

calibre1

Any subtitles you will like to have should be styled as ‘Heading 2’ titles.

Done? Save your document as an HTML file.

Step 2

Open your Calibre app and click the “Add books” button. Navigate to where your HTML file is located through the dialog box and add it to the Calibre.

calibre2

Step 3

After the new HTML file has been added to the Calibre library, select the new file and click “Edit metadata”. This is where you are to add Title, Author, cover image, and description information (among others) so go ahead and do that and the click “OK”.

calibre3

Step 4

Next, click “Convert books”.

A new window will open with a lot of available options, but don’t fret. You wouldn’t need to use all of them.

calibre4a

Look to the top right of the new screen and select ‘epub’. (You can also choose to create a mobi file if you want but it seems the mobi file creation feature hasn’t been optimised yet).

Step 5

Click the “Look & Feel” tab from the left side of the new dialog box and select “Remove spacing between paragraphs”.

calibre5

The next step is to create a table of contents and you can skip this step if you don’t plan on using a table of contents in your book.

Step 6

Select the Table of Contents tab and click to select the wand icon to the right of “Level 1 TOC (XPath expression)”.

calibre5a

Select “h1” from the drop down menu under “Match HTML tags with tag name” in the new window that pops up. Click “OK” to close the window. If you set up sub-chapters, set the “Level 2 TOC (XPath expression)” to h2.

calibre5b

Select the ‘EPUB Output’ tab and then select to tick the “Insert inline Table of Contents” option.

calibre5c

Step 7

Click “OK” and watch the conversion occur. It should not take to long, but really, it depends on the size of the file you are converting.

That’s all folks! You have made an eBook in Linux, thanks to LibreOffice and Calibre for their OPen Source goodness.We hope the guide was easy to follow.

We hope the guide was easy to follow?Feel free to drop your feedback in the comments section below and don’t forget to stay tuned to Ubuntu Next.

Feel free to drop your feedback in the comments section below and don’t forget to stay tuned to Ubuntu Next.

 

About The Author
Okoi Martins Jr.
I'm a Computer Scientist with a passion for learning new things in fields ranging from theoretical implications of computer science and mathematical modeling to web development and music. In my spare time, I listen to music, read like a compiler, and learn like an A.I algorithm.

Leave a Response