Hacker News new | ask | show | jobs
by wombat23 1929 days ago
Having your own book in your hands feels awesome. I've done the same, but not with KDP. Unfortunately, I can't publish it as I had to give up my rights to it (screw you OUP/publishing requirements!).

On the technical side, it wasn't so straightforward to me to get a good result. In my case, I had to iterate a few times and order a new copy with adjustments to margins, etc. until it looked right.

One issue I didn't manage to solve back then was that the inner margin needs to slightly increase towards the end of the book. That's because the binding is eating up visual space since you can't open the book flat without destroying it. Professional publishing tools do this automatically, but Latex doesn't have an option for it. At least that's how I remember the issue. But maybe things have changed?

2 comments

I've not come across this myself, but pretty sure if you asked on tex.stackexchange.com someone would knock up a macro to do it for you, if one didn't already exist.
I had alternating margin issue sorted out for my thesis, and remember it being easy once I figured it out. Can't for the life ofme remember what it was right now though.
I think you're describing the book layout, which has a broader inner margin by default. So pages destined for the left side have a wider right margin, and vice versa. The parent is describing a situation where the inner margin has to get progressively wider as page numbers increase, which I'd personally never heard of. It does sound like something a macro could handle.
Yes, that's what I meant. Perhaps it's related to the way the printing company produced the books, so this might not be an issue with other companies.

My memory is a bit fuzzy about the details, maybe it was about the inner margins of left-hand side and right-hand side changing. Maybe someone else recognises what I mean? :)

Since Latex is very powerful, I'm sure there is a way to code that behaviour in. But I had spent too many hours already on that project and I was happy with the result anyway, so I stopped investigating.

You do this simply by setting the documentclass option `twoside`. Eg

  \documentclass[twoside,a4paper,11pt]{article}
Setting it to `oneside` will prevent the inner margins from swapping.