Sometimes I feel that contemporary markup languages like Markdown, Textile, etc. fall short compared to the syntax that was just as readable and quite a bit more powerful in troff...
Sometimes I feel that contemporary markup languages like Markdown, Textile, etc. fall short compared to the syntax that was just as readable and quite a bit more powerful in troff...
https://rkrishnan.org/posts/2016-03-07-how-is-gopl-typeset.h...
HN discussion: https://news.ycombinator.com/item?id=11470905
I've never used troff myself, but your comment prompted me to look at the spec for it. I also searched for a "markdown vs troff" comparison, but didn't have much luck. Do you know of a head-to-head comparison? I've been using markdown for the past year or so when I don't need the full power of LaTeX. But your comment has me wondering if I'd be better off just using troff?
Example input follows. Defining a paragraph style in meta:
.STYLE TITLE
. FONT SANS
. FACE B
. FONTSIZE 30
. ALIGNMENT CENTER
./STYLE
...and using it: .TITLE
The meta macro package
./TITLE
This is a very simple, noddy example of how to use the meta
macro package. It's not intended to be a reference (there currently isn't one).
But the core language is kinda horrible, needing a really hacky implementation, and you can't define inline macros --- the \fB and \fP above are built-ins. Macro invocations have to start on new lines. In fact, this isn't a bad limitation in practice for anything even slightly heavyweight, but for italics, bold and underline it's still nice to have inline markup.Sure, but that doesn't address my question about whether I should use troff versus markdown for things where I don't need the power and complexity of LaTeX.
http://www.troff.org/prog.html#pic
And the basic inline markup tags are, at least in my opinion, just as simple as Markdown, Textile, or AsciiDoc.
It's been a secret promise to myself for a while now that if ever I fall headlong into Shuttleworth levels of cash, one of the first things I would do is to throw some money at a project for the express purpose of writing missing pages, keeping existing ones up to date, bridging the man/info divide, and to singlehandedly push for weening the world off of roff onto a more human-readable format.
Didn't have Word, didn't want to learn LaTeX, printed html looked worse.