Hyperlink ToC bookmarks in LibreOffice that don’t fight with Calibre

NOTE: UPDATED WITH VIDEO 6/24/18

If you read e-books, you’ve seen it. The Table of Contents at the beginning of a book, listed in blue. Tap or double-click a chapter name and voilà, you’re there. Nifty, huh? If you use Word, you know how to create that ToC, or can readily find out how, because instructions abound on the web. Heck, even KDP explains it somewhere. But what if you use a Mac and LibreOffice? You’ll find nothing helpful on Amazon’s KDP site because a) they’re indifferent to Mac users, b) they’re indifferent to LibreOffice users, and c) they’re indifferent to Mac users who utilize LibreOffice. What to do?

You could save your ODT file as a DOC or DOCX, which kind of defeats the purpose of using Libre if you ask me. Not so very long ago, KDP used to tell Mac users to hand code all the HTML, good luck! Now their not-so-helpful help entry merely says to use hyperlinks and bookmarks. Which brings me to the crux of the matter.

I use Calibre to create an EPUB from an ODT file. I never created that active ToC because I didn’t know how, didn’t have time to learn, and didn’t have the inclination to wander the web trying to find out how. Yesterday, however, through some semi-useful information found on the internet and a lot of trial and error, I figured it out. There may be a better and faster way, but this seems to work and is fairly simple. Continue reading “Hyperlink ToC bookmarks in LibreOffice that don’t fight with Calibre”

How to change page numbers in LibreOffice

I know I’m not the only one who has wrestled with page numbers in a LibreOffice Writer document. The content of your book (excluding the front matter) should start on page 1. Sure, but in your document, the good stuff starts on page 7. How do you change those pesky numbers?

I was looking into this today and found several explanations to try to achieve that. When I tried them, they didn’t work and, worse, messed up my formatting. Then I started playing around with various options. I thought I discovered the secret, but that, too, altered my formatting, though ever so slightly. Try again. Jackpot! You won’t believe how easy it is.

On your first numbered page, place your cursor in front of the page number in your header or footer. For this example, that would be document page 8. Choose Edit — Fields. The Edit Fields dialogue box that pops up will have three columns; Type, Select, and Format. Below the Format column is a narrow box that says “Offset.” Enter a negative value of the number of front matter pages in your document. For instance; my book has six pages of front matter that I don’t want numbered, and the first chapter begins on page 7, but I don’t have a number field on that page, so I’ll enter -6.

Number Change

Page 8 has now turned into page 2, and all even numbered pages should have also changed.

Number Change 2

Repeat the process on the next page to turn 9 to 3. All the odd pages should automatically change. The lower left hand corner of your document window will show the actual page number (page 2 in your header or footer will show as page 8 of xxx).

There you have it. Quick, painless, and no unwanted alterations to your carefully formatted pages and header/footer styles.