Live data from Hacker News

Pollen: the book is a program

mbutterick.github.io

1–10 of 56 posts

Re: Pollen: the book is a program

#2
Awesome!

I love Butterick’s Practical Typography. It taught me a lot about typography, and started my love for typefaces.

The fact that Matthew Butterick is, a lawyer, a typographer and a programmer just increase my respect for him.

Thank you for your work!

Re: Pollen: the book is a program

#3
I've been looking at this recently. It looks like an extension of what made TeX so successful: your typesetter is programmable -- and macros can live in your documents, defined at any time -- so any common tedious task can be automated.

Sure, Markdown and the rest have a simple syntax for everything, but what if you're writing a book and want cross-references? Or you commonly use side-by-side examples (good grammar vs. bad grammar, say) and want a macro that generates the appropriate table layout. Or you want some macros which typeset entries in your CV. And instead of crufty TeX macros you can use Racket.

If I weren't already writing a book in LaTeX I'd try writing one in Pollen.

Re: Pollen: the book is a program

#4

I've been looking at this recently. It looks like an extension of what made TeX so successful: your typesetter is programmable -- and macros can live in your documents, defined at any time -- so any common tedious task can be automated. Sure, Markdown and the rest have a simple syntax for everything, but what if you're writing a book and want cross-references? Or you commonly use side-by-side examples (good grammar v…

And the macro language is actually sane!

Re: Pollen: the book is a program

#9
This looks very interesting. Books really are code: I now have 10+ conditional flags in my book: ifPG13, ifPRINT, ifEBOOK, ifEREADER, etc. I'm looking to add more, but the basic \ifthenelse macro in LaTeX won't be enough...

How hard would it be to implement things like \ref and \pageref and support more of the LaTeX environments supported by MathJax?

I think a triple output format HTML + ePub + LaTeX|PDF|print would be awesome --- I'd switch right away!

Thanks for releasing this as LGPL.

Post reply on HN