Would you reconsider your Tufte CSS sidenotes?
36 points by kana
36 points by kana
Thanks, this is a great elaboration of the previous discussion.
Some time after posting my comment in that thread I realised that I should have been more specific about what I meant by an “aside”, because it could be misread as “sidenote”. Sidenotes deal with my complaints about footnotes except for the lack of space on mobile, which in most implementations of sidenotes brings back all the problems of footnotes. So sidenotes are not a complete solution.
Aside: To be honest I hadn’t properly considered the issue of nonlinear text order that the current article tackles, perhaps because I dislike reader mode because it cannot be configured to my liking, bah.
I like the way an aside doesn’t interrupt the reader in the middle of a sentence: instead it’s more like a paragraph-level parenthetical. In fact, the example above actually started off as a shorter inline (parenthetical) but then I realised that its sentence was too long and complicated and also I needed an example. The disadvantage is that an aside usually needs some more verbiage to make the context clear because there isn’t an explicit marker tying it to a specific word or sentence. On the gripping hand, the ergonomics (of things like text order and markup or typographical scaffolding) of asides for the writer and reader are a lot more similar to each other, compared to most of the footnote markup I’ve seen.
I usually format asides in a similar style as a blockquote, but they can nicely turn into sidenotes when space permits.
My pandoc-sidenote program supports an alternative to Tufte CSS sidenotes which I called “block-based sidenotes.” They solve some of the problems the author points out, especially the point about text selection: these block-based sidenotes are peer elements to the paragraph nodes they anchor to, so the side note contents only show up in the selection when crossing a paragraph boundary.
It also solves some problems attempting to use Tufte CSS sidenotes with Pandoc specifically, because Pandoc’s internal representation doesn’t allow block elements to reside inside inline elements.
I don’t think it’s perfect but for me it achieves a lot of the simplicity of Tufte CSS style sidenotes without most of the downsides.
Many of the other problems the author points out remain, like the fact that side notes are collapsed by default on mobile screen sizes, or using the ⊕ symbol as a click target.
https://jez.io/pandoc-markdown-css-theme/features/#block-based-side-notes
So if you are reading on a mobile device, I would recommend scrolling through the post for a feeling of sidenotes, and then turning on Reading Mode (if your browser has one).
Ironically, turning on reader mode breaks for me in Android Firefox. I see a flash of the reader mode UI and then something happens to the URL bar and it goes back to the original mobile design. I didn't even know this was possible!
A clue: It seems to interact with the history API. I tried enabling reader mode a few times, and then hit the back button the same number of times (I assume) and finally ended up back here on lobster.rs.
HTML already has the perfect affordance for footnotes: a link to a new page. You get the back links for free in the form of the back button, and even better linking is trivial to generate at publication time. Screen readers handle it perfectly.
But that makes it harder for the reader to refer to both sidenote and main content "at once". (More realistically: in brief cycles.)
I would reconsider if there were a better way to generate a scrollable two-column layout on wide screens.
But with just the one column of main text, using another for auxiliary information is too strong a temptation.