258 points · by grecy · 5y ago · 81 comments
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?
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.
\documentclass[twoside,a4paper,11pt]{article}
Setting it to `oneside` will prevent the inner margins from swapping.I'm curious about the choice of LaTeX. According to the article, it was about controlling the layout. I did something similar [0] a few years ago, but my "stack" was Markdown + Pandoc; converting Markdown directly to an epub with Pandoc was more than enough, but for the paperback version I converted the Pandoc to a LibreOffice document with a custom template; this let me do all the fine-tuning for the styles, paragraph flow, etc.
I wonder if you tried this and decided LaTeX was better, or if you went for LaTeX due to your previous familiarity with it. I have the feeling that for my novel it would have been overkill; did you get most of the value by having precise control of the layout of the images?
(btw, the "Power Move One – Conditionals" anchor seems to be broken)
Don't know about the author, but having written a few lecture notes to be converted to pdf and html, I have found that writing the source document in LaTeX is much more convenient than markdown, especially for math-heavy text. The LaTeX->pdf conversion is natural, and then you can convert easily to html+mathjax using a simple script.
Have had many unsolicited comments from those who have handled/thumbed through it about the high quality of the book (look/layout/feel) - most are surprised that it was not done by a 'big' publishing house. Frankly, my own opinion is that the quality is at least equal, probalby higher, than what is being churned out today by big names today. Part of that is the format/layout as a result of using LaTex, the rest is the physical material characteristics from using an excellent printer. None of that speaks to the actual content, of course :)
I did eventually make a kindle version, unfortunately I do not recall the tool chain used.
Highly recommend Lightning Source (Ingram) for your printing/distribution needs if you are serious about your publication.
The point of OP is that you keep one type of file. Also doing mass edits or source control with office must be a nightmare.
I can’t even imagine how hard it must be to get details right as well. As horrible as latex is, it still gives you much more control.
Eh? With all the great tools and self-publishing options available these days, publishing a book is not a fantastic achievement. In fact, anyone can do it. Writing a book is no achievement either, especially if it is not of great quality. It simply takes a bit of time.
One of the major advantages of LaTeX is that it will fill lines automatically, hyphenating where necessary.
Another important part of type design is flowing paragraphs so that the final line contains enough type. One does not want a paragraph to end with a single “me” by itself on the final line, and ideally you want a substantial amount of type there.
Are these parameterised in LaTeX? Did you turn hyphenation off?
These are known as widows and orphans.
> Cobbler's boy and whore's child (in German Schusterjunge und Hurenkind) [1]
I never forgot these two terms.
This is for straight narratives or non-fiction books. Things with more complex layouts will require more work.
Most of the work in making a book is not in the typesetting.
>No comments about my sed magic please
The commands are fine. Had a doubt if you are using GNU sed or some other flavor since you mention MacOS a few paras earlier. If you are not using GNU implementation, `-i -e` will likely create backup files with `-e` as extension. See [0] for details.
For the Perl command, `-0` option will use ASCII NUL as the record separator. To slurp entire file, pass a value 400 or greater, `-0777` is idiomatically used. If your input doesn't have NUL characters, which is likely the case here, this distinction doesn't play a role.
[0] https://stackoverflow.com/questions/5694228/sed-in-place-fla...
I've done a similar thing wrote about it here: https://pascalprecht.github.io/posts/writing-an-ebook
Instead of using Latex, I went with markdown as the source to generate PDFs, Mobi and Epub from that.
Thanks for sharing your experience!
I guess the trick is to write about something you have a special "qualification" to write so that you are not just writing something that will only sell 100 copies after taking a year of your life!
Being James Patterson would probably be great but it takes time to get the success that then pays for you to sit and churn stuff out at the rate he does! I need to go back to work now...
Congratulations on doing what lots of folks only dream about!
I have been struggling with this and finally got my class to produce possibly PDF/X-4 compatible printable file and PDF/A-2b compatible PDF file for archival purposes.
Maybe the next step is adding epub generation from the same LaTeX source.
I follow your IG and your trip looked like a lot of fun. I dream of the day when my boys will be off at college and I can do something similar. For now, two-week dirt trips every year.
Chris (@desertdefender on the Gram)
Nice to see Chris here too, I wonder how many of us are at the intersection of geekery and overlandery?
LaTeX on the other hand (or more specifically, TeX) is a set of macros that will generate formatting for you. Usually, the output is a DVI file, but can also be a PostScript or PDF file.
LaTeX is all plain text. It only handles document processing, turning the LaTeX document into an outputted formatted document.
Edit: You can still include images etc. Pandoc allows you to convert between LaTeX and many other formats. What you can do with LaTeX is almost limited only by your imagination: https://www.latex-project.org/publications/2020-egreg-TUB-tb...
When I used LaTex for my (sociology of computing) PhD it made it look I'd put far more effort into the document formatting than I actually had.
Everything is a pain to do, and I just described the happy path. If you try to do something a little tricky you easily run into incompatible packages wreaking with each other. Word has its shortcomings for sure, but for writing a short paper it’s a magnitude or two more easier and faster (except when a coworker uploaded it in Google Docs with deleted the styles...)
I started learning few weeks ago and now working on two additional documents because I start to understand of how to use it and it become quicker from there. But again every person have a different approach with learning LaTeX.
Seems hard to replicate this approach in word in my experience without good discipline
https://www.thebookdesigner.com/2018/05/selling-out-going-wi...
I'm afraid to read your books because your bravery may inspire me to road trip to Africa.