News for hackers. Stuff that matters.
Re:Zero-Overhead Metaprogramming by anonymousDan on Thursday June 18, 2015 @05:26PM (#9741701)
Meta question - anyone know if this was autogenerated from latex, and if so how?
Re:Zero-Overhead Metaprogramming by smarr on Thursday June 18, 2015 @05:39PM (#9741773)
Not to 100%. I used a combination for tex4ht, tex4ht configuration, several hacky post processing scripts, and manual editing. Converting a Latex document to a nice HTML site is easily the worst part of the whole writing process :-/
Re:Zero-Overhead Metaprogramming by anonymousDan on Thursday June 18, 2015 @07:33PM (#9742226)
Looks great. Out of interest, what were the main things that tex4ht doesn't give you out of the box?
Re:Zero-Overhead Metaprogramming by smarr on Thursday June 18, 2015 @08:39PM (#9742432)
Clean HTML (no superfluous tags), proper links to references (the rendering splits the links between author and year), ligatures are broken in browsers, standard footnotes are insensible for HTML, the standard HTML used for headers, figures, and others wasn't to my liking.
Re:Zero-Overhead Metaprogramming by jacobolus on Thursday June 18, 2015 @10:56PM (#9742777)
One recommendation: use ragged-right rather than justified text in the HTML version. Because browsers use a line-by-line text composer instead of full-paragraph composition, and don’t do any hyphenation, fully justified text looks terrible on web pages, especially in relatively narrow columns.

In the case of this specific document, there’s all kinds of nasty gappy whitespace in the webpage version.

It’s made worse by the spaces in “et al. 19XX” getting turned into non-breaking spaces. You really want to fix that if you can. For example, look at the 3rd and 9th line in this screenshot. http://i.imgur.com/H6ROnyQ.png

But even disregarding that problem, many lines end up looking pretty bad.

[Note: don’t read this as personal criticism. The fault lies about 90% with the browser vendors who care more about saving a few microseconds of compute time than making legible documents.]

Re:Zero-Overhead Metaprogramming by wakaflockafliz on Friday June 19, 2015 @12:22AM (#9742991)
I didn't notice this ever before, then I read your comment. Now I see it all over the place...oh man.
Re:Zero-Overhead Metaprogramming by anewhnaccount on Friday June 19, 2015 @04:30AM (#9743596)
Re:Zero-Overhead Metaprogramming by snops on Thursday June 18, 2015 @06:00PM (#9741874)
It probably was, difficult to tell as it is extremely clean HTML, but the referencing seems to hint at bibtex (a referencing system for latex), with class names like "bibitem" and "biblabel".

>and if so how How is easy, they are many different programs, here are a few: https://enc.com.au/docs/latexhtml/. Which in particular is a bit harder, there is no <meta name="generator" content="... that some Latex->HTML converter leaves in, but I suspect you could turn that feature off. I think this page uses custom CSS too, as its using Google Fonts.