Live data from Hacker News

The LaTeX Fetish (2016)

danielallington.net

31–40 of 185 posts

Re: The LaTeX Fetish (2016)

#31
post #24

I am currently writing my first print book, and honestly feel that LaTeX is the best solution. I want precise control over a 250+ page book. I have never seen a WYSIWYG editor that doesn't make that a royal PITA. Different gutters on left and right pages, chapters always starting on a right hand page, consistent and great justification, fine control over how chapter headings appear (and quick to update) etc. etc. On…

I haven't used it, but pandoc seems like "the way".

Re: The LaTeX Fetish (2016)

#32
post #24

I am currently writing my first print book, and honestly feel that LaTeX is the best solution. I want precise control over a 250+ page book. I have never seen a WYSIWYG editor that doesn't make that a royal PITA. Different gutters on left and right pages, chapters always starting on a right hand page, consistent and great justification, fine control over how chapter headings appear (and quick to update) etc. etc. On…

You can compile from LaTeX to HTML with pandoc and then repackage the HTML into an epub using a tool like epubmaker[0].

YMMV though with pandoc, not sure how well it handles more fancy latex macros and packages.

The simplest thing to do might be start with a more HTML-based solution (e.g. Markdown with extensions, RST) and then compile that into whatever layout you intend for the physical/pdf form.

[0]: https://github.com/setanta/ebookmaker

Re: The LaTeX Fetish (2016)

#33
post #29

I have only three gripes about LaTex and friends. First, LaTeX was intended for physical publication, so there's no native notion of text reflow or "responsiveness". Worse, everyone distributes their documents as PDFs, which are a PITA to read on a smaller device or ereader. At best, an author could utilize something like pandoc to distribute an HTML version, but alas, publishers never give a damn. Second, I have bee…

> Worse, everyone distributes their documents as PDFs, which are a PITA to read on smaller devices

For anything other than simple linear text, I've found PDFs easier to work with than alternatives, even using letter/A4 PDFs on a smartphone.

Re: The LaTeX Fetish (2016)

#34
I agree that at the draft stage it's not desirable to use LaTeX, or when you need to collaborate with non academic users. But Libre Office is really not a serious alternative to LaTeX (please don't ask why). Use markdown in the beginning, and when you have enough materials, you can export to LaTeX and do the final editing.

Re: The LaTeX Fetish (2016)

#35
post #32
post #24

I am currently writing my first print book, and honestly feel that LaTeX is the best solution. I want precise control over a 250+ page book. I have never seen a WYSIWYG editor that doesn't make that a royal PITA. Different gutters on left and right pages, chapters always starting on a right hand page, consistent and great justification, fine control over how chapter headings appear (and quick to update) etc. etc. On…

You can compile from LaTeX to HTML with pandoc and then repackage the HTML into an epub using a tool like epubmaker[0]. YMMV though with pandoc, not sure how well it handles more fancy latex macros and packages. The simplest thing to do might be start with a more HTML-based solution (e.g. Markdown with extensions, RST) and then compile that into whatever layout you intend for the physical/pdf form. [0]: https://githu…

Pandoc is excellent, but I'd recommend coverting Markdown to LaTeX instead of the other way around. I've tried several LaTeX to X converters (for any value of X other than PS/PDF) and frankly none of them are very good. The advantage of starting with Markdown is that you know that the format is a good match for the tool's internal AST, which makes the results much more predictable.

Pandoc has the advantage that you can still write LaTeX directly inline when you need to. You can also write in terms of divs and spans (which Pandoc understands natively) and convert these to whatever you want via filters. The latter approach has the advantage that different filters can generate the appropriate code for the format you're generating, so that you don't just lose the elements when you convert to an incompatible format.

Shameless plug: I've built a tool that helps manage the conversion: https://bitbucket.org/elliottslaughter/bookmd

Re: The LaTeX Fetish (2016)

#36
post #32
post #24

I am currently writing my first print book, and honestly feel that LaTeX is the best solution. I want precise control over a 250+ page book. I have never seen a WYSIWYG editor that doesn't make that a royal PITA. Different gutters on left and right pages, chapters always starting on a right hand page, consistent and great justification, fine control over how chapter headings appear (and quick to update) etc. etc. On…

You can compile from LaTeX to HTML with pandoc and then repackage the HTML into an epub using a tool like epubmaker[0]. YMMV though with pandoc, not sure how well it handles more fancy latex macros and packages. The simplest thing to do might be start with a more HTML-based solution (e.g. Markdown with extensions, RST) and then compile that into whatever layout you intend for the physical/pdf form. [0]: https://githu…

HTML doesn't have a notion of multiple pages within the same document though?

Re: The LaTeX Fetish (2016)

#37
post #24

I am currently writing my first print book, and honestly feel that LaTeX is the best solution. I want precise control over a 250+ page book. I have never seen a WYSIWYG editor that doesn't make that a royal PITA. Different gutters on left and right pages, chapters always starting on a right hand page, consistent and great justification, fine control over how chapter headings appear (and quick to update) etc. etc. On…

I've worked with O'Reilly and Wrox and both have you do one document per chapter. Anything over 30 pages and MS Word starts to choke, especially with a lot of diagrams.

Neither gave me the choice to use LaTeX although I'm sure they might have been open to it had I asked.

Re: The LaTeX Fetish (2016)

#38
I just switch my consulting company to have all our documents (Statement of Work, proposals, NDA, MSA, etc) in LaTeX.

It has worked amazing well. For a few reasons:

1. We easily can typeset all our documents the same and if we do something like change the letterhead we can easily update them all.

2. Auto-generating documents (forms letters) is a snap.

3. Everything is source controlled.

3a. If a client needs customizations we can give them their own branch and easily diff the branch with master. Very useful for documents that have legal side effects.

Re: The LaTeX Fetish (2016)

#39
post #36
post #32

Earlier quoted context omitted.

You can compile from LaTeX to HTML with pandoc and then repackage the HTML into an epub using a tool like epubmaker[0]. YMMV though with pandoc, not sure how well it handles more fancy latex macros and packages. The simplest thing to do might be start with a more HTML-based solution (e.g. Markdown with extensions, RST) and then compile that into whatever layout you intend for the physical/pdf form. [0]: https://githu…

HTML doesn't have a notion of multiple pages within the same document though?

> HTML doesn't have a notion of multiple pages within the same document though?

HTML is at a higher level of abstraction, but the HTML/CSS stack supports paged rendering, and browsers tend to support this for print (pre-Blink Opera did for on-screen use, though I don't know if current browsers do.)

Re: The LaTeX Fetish (2016)

#40
post #18
post #12

I had a few things about TeX versus LaTeX. I think the reality is nobody really tries writing TeX. But, ultimately my beef is the straw man that markup is bad because it is harder to read. That a graphical editor is superior because it is more readable. Instead, the advantage is that in the one you are only writing text and you are indicating special instructions to the computer. In the other, you only see what the c…

The other huge advantage that you almost touched on is tex files are text, so you can source control them. This is particularly important if different people are working on different chunks of a document. You can kind of hack around this in word, but it's a giant pita.

Word has its own version control built in, which works pretty well. You can see all revisions, and step through and accept/reject. You can also do diff of two documents.
Post reply on HN