3 ms·
Thats a pretty decent time for laying out that much text. I would like to point out that if you throw in indexes or a complete "book environment" like memoir th
by dfc 15y ago
Thats a pretty decent time for laying out that much text. I would like to point out that if you throw in indexes or a complete "book environment" like memoir that time is going to change remarkably.
Why are we talking about PDFs now? If you seek to a location in the kindle it takes you to a page with that location at the top. That location might be in the middle if you read from cover to cover.
- wtallis 15y agoI'm already using the memoir class, albeit with a fairly minimalist theme. And indexes can be partially pre-computed if necessary, though it may require some changes from how it's done in stock LaTeX. The reason we're talking about PDFs is because that's the quickest and easiest way to get good typography on screen. And being able to scroll to put an arbitrary line at the top of the page is not a killer feature for a book replacement, and certainly doesn't make up for a book that is hard to read due to poor line spacing, justification, and kerning.
- dfc 15y agoYou are not using indexes if you are laying out 800k of text in 30 seconds with memoir+fontspec+microtype. I'm not sure what a partial index even is but whatever it is you are right its vaporware at the moment. As far as PDFs go what ebook reader uses pdfs as the native ebook format? Out of curiosity if you set the paper size to ebook in memoir how does the compilation time change?
- wtallis 15y agoWith \documentclass[twoside,12pt,openany]{memoir} \usepackage{fontspec} \usepackage{hyperref} \hypersetup{bookmarksnumbered} \setmainfont{Baskerville} \usepackage{graphicx} \usepackage{microtype} \raggedbottom $time lualatex *.tex real 0m16.498s user 0m14.291s sys 0m0.395s Adding ebook to the memoir options, real 0m18.642s user 0m15.243s sys 0m0.449s Removing the use of fontspec and typesetting with pdflatex: real 0m5.946s user 0m3.601s sys 0m0.179s Enabling SyncTeX (which does half the work of building an index): real 0m11.652s user 0m5.449s sys 0m0.250s
- pdw 15y agoAre those advanced packages needed for ebooks? Consider Knuth's TeXbook, written in plain TeX (the source is available on CTAN) and which looks good enough for me: $ time tex texbook.tex Output written on texbook.dvi (494 pages, 2029384 bytes). Transcript written on texbook.log. real 0m0.615s user 0m0.584s sys 0m0.024s (And an e-book reader would only need the information in a DVI file, assuming the fonts are built-in.)