Live data from Hacker News

Brian Kernighan on the Typesetting of “The Go Programming Language” Book

rkrishnan.org

71–76 of 76 posts

Re: Brian Kernighan on the Typesetting of “The Go Programming Language” Book

#71
post #68

Earlier quoted context omitted.

I wrote to Kernighan a few years ago, when "D is for Digital" came out, to ask him, in effect, if troff had been made obsolete by TeX. At the time I had begun using it, and wondered if it was worth investing my time to learn. He answered that he still preferred to use groff, having tried alternatives. Since then I have used groff exclusively for writing documentation and papers. It never runs out of gas, and always p…

What platform do you write on? Linux? Mac? I'm genuinely curious. I have been looking for substitutes to Latex ever since writing my dissertation in Latex and having to debug/tweak an already horrendous Latex .sty file. I basically decided that I would either write technical documents in Tex or not at all after that. For me, Latex is great, until it isn't, and then it's Jinga-on-a-unicycle frustration.

The problem with LaTeX is that you are given an already unstable jinga (ie., style file etc.,).

You can always go back to the basics and use simple TeX for your documents if you think groff/troff is simpler.

However, I'd encourage you to give ConteXt http://wiki.contextgarden.net/ a try because it is the spiritual successor to TeX (one tool for all the typesetting) instead of having to depend on "third party" stuff like LaTeX, most of which very few of us (outside the original sty author) understand.

Re: Brian Kernighan on the Typesetting of “The Go Programming Language” Book

#72
post #57

HTML with CSS with lend itself to generate PDFs. Are there open alternatives to Prince XML? Browsers don't support all page-layout related CSS2/3 attributes, like a page break.

Generating PDF is not the same as typesetting.

Re: Brian Kernighan on the Typesetting of “The Go Programming Language” Book

#73
post #53
post #52

Earlier quoted context omitted.

Of recent attempts at dethroning LaTeX, there's also SILE, which actually reuses some LaTeX internals. For some examples of the output (hard to find, the author seems not great at marketing), see e.g.: https://github.com/simoncozens/sile/blob/master/examples/ara... https://github.com/simoncozens/sile/blob/master/examples/art... https://github.com/simoncozens/sile/blob/master/examples/fra... https://github.com/simonco…

I skimmed through their manual.. ConTeXt does all of this better, and has been doing this for longer.

In the video linked above, he mentions several things that ConTeXt can't do, or can't do as easily. On the other hand, the SILE ecosystem isn't as complete as TeX's yet.

Re: Brian Kernighan on the Typesetting of “The Go Programming Language” Book

#74
post #52

Earlier quoted context omitted.

Of recent attempts at dethroning LaTeX, there's also SILE, which actually reuses some LaTeX internals. For some examples of the output (hard to find, the author seems not great at marketing), see e.g.: https://github.com/simoncozens/sile/blob/master/examples/ara... https://github.com/simoncozens/sile/blob/master/examples/art... https://github.com/simoncozens/sile/blob/master/examples/fra... https://github.com/simonco…

It doesn't do math though.

yep, that's a significant and notable TODO. Though I have an idea that maybe trying automatic translation of MathJax from JS to Lua using one of the available tools could have a chance of being a win as a relatively quick hack. But I couldn't find time yet to compile SILE itself first, as I don't have a Linux box handy, unfortunately :(

Re: Brian Kernighan on the Typesetting of “The Go Programming Language” Book

#75
post #66
post #60

Earlier quoted context omitted.

>It also means your documents are locked to a proprietary standard that isn't that widely used (compared to say MS Word) HTML and CSS?

I assume there is some additional special sauce that enables you to do things that are not possible in a browser, which means you still won't get the exact formatting, index, etc correct.

To extent of my knowledge, Prince only implements web standards set by w3. The reason browsers can't do what Prince does is because they lack support for those standards.

Wikipedia lists some of what Prince does that others don't:

https://en.wikipedia.org/wiki/Comparison_of_layout_engines_(...

Re: Brian Kernighan on the Typesetting of “The Go Programming Language” Book

#76
post #27
post #15

As a typesetting aficionado, I have tried most of the suggestions here (Prince, Troff, Lout, Docbook XML, Asciidoc, LaTeX, ConTeXt, .. except GUI typesetting tools.) TeX appears bad from a distance, mostly from hearsay, until you have to write an actual technical book of certain expected high production standards and you realize TeX gives you the best shot at doing so. There is a learning curve. It is an investment o…

Sadly I have to work in Windows at times. Context seems to not be the most supported Windows platform. (The link to the Windows simplified package is 404) There is a New Installer http://wiki.contextgarden.net/Windows_Installation_new which does not contain a working binary. The only way to find anything for windows leads to a tar file. I still think there is a better way to do typesetting in 2016 but all I have seen…

Both the TeX Live and MiKTeX distributions provide binaries for Context on Windows.
Post reply on HN