Writing a book in LaTeX in 2023: Difference between revisions
No edit summary |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 10: | Line 10: | ||
* I haven't yet been able to get the [https://ctan.org/pkg/pdfx?lang=en pdfx] package working in LuaTeX | * I haven't yet been able to get the [https://ctan.org/pkg/pdfx?lang=en pdfx] package working in LuaTeX | ||
** Not a huge deal, as it turns out, due to PDFs being essentially unmarketable, see below | ** Not a huge deal, as it turns out, due to PDFs being essentially unmarketable, see below | ||
** A bigger deal, actually: Barnes & Noble requires PDF/A for your print copy | |||
** I did finally get this working: | |||
<pre> | |||
[schwarzgerat](130) $ pdfinfo midnight-hb.pdf | |||
Title: midnight's simulacra | |||
Author: nick black | |||
Creator: LaTeX with hyperref | |||
Producer: LuaTeX | |||
CreationDate: Mon Dec 18 13:55:45 2023 EST | |||
ModDate: Mon Dec 18 13:55:45 2023 EST | |||
Custom Metadata: yes | |||
Metadata Stream: yes | |||
Tagged: no | |||
UserProperties: no | |||
Suspects: no | |||
Form: none | |||
JavaScript: no | |||
Pages: 451 | |||
Encrypted: no | |||
Page size: 441 x 666 pts | |||
Page rot: 0 | |||
File size: 81038789 bytes | |||
Optimized: no | |||
PDF version: 1.5 | |||
PDF subtype: PDF/A-3u:2012 | |||
Title: ISO 19005 - Electronic document file format for long-term preservation (PDF/A) | |||
Abbreviation: PDF/A-3 | |||
Subtitle: Part 3: Use of ISO 32000-1 with support for embedded files | |||
Standard: ISO 19005-3 | |||
Conformance: Level U, Unicode support | |||
[schwarzgerat](0) $ | |||
</pre> | |||
** Note that Amazon doesn't seem to accept PDF with a minorversion > 5 | |||
* [https://ctan.org/pkg/footmisc footmisc] is ok, but what i really want is [https://tex.stackexchange.com/questions/233269/paragraph-short-footnotes-following-multiline-footnotes-prevent-footnotes-being?rq=1 what this guy describes], which does not seem to be possible. | * [https://ctan.org/pkg/footmisc footmisc] is ok, but what i really want is [https://tex.stackexchange.com/questions/233269/paragraph-short-footnotes-following-multiline-footnotes-prevent-footnotes-being?rq=1 what this guy describes], which does not seem to be possible. | ||
** [https://ctan.org/pkg/bigfoot?lang=en bigfoot] looks like a better option than footmisc, using <tt>para</tt> and <tt>\footnote+</tt> | |||
there's one fundamental and much more serious problem, though: | there's one fundamental and much more serious problem, though: | ||
| Line 23: | Line 57: | ||
this also means side-by-side dual language editions are more or less impossible, as are annotated editions defined on a page-by-page basis. you pretty much need to use endnotes rather than footnotes (though navigating to and from endnotes is admittedly a much better experience on a device than in a printed book). | this also means side-by-side dual language editions are more or less impossible, as are annotated editions defined on a page-by-page basis. you pretty much need to use endnotes rather than footnotes (though navigating to and from endnotes is admittedly a much better experience on a device than in a printed book). | ||
and there are some problems with <tt>tex4ebook</tt>: | |||
* [https://ctan.org/pkg/unicode-math?lang=en unicode-math] doesn't compile | |||
** simply removing it gets you "! Undefined control sequence. ^->\active@prefix ^\@undefined" | |||
* <tt>\defaultfontfeatures</tt> isn't recognized | |||
* using <tt>tabular</tt>, it'll choke on e.g. <tt>\midrule</tt>, printing endless "Misplaced alignment tab character &" | |||
'''previously: "[[Latex_joy_of_man%27s_desiring|LaTeX joy of man's desiring]]" 2023-09-24''' | '''previously: "[[Latex_joy_of_man%27s_desiring|LaTeX joy of man's desiring]]" 2023-09-24''' | ||
[[Category:Blog]] | [[Category:Blog]] | ||