2020-09-30-Userstyle-for-Practical-Common-Lisp
Userstyle for /Practical Common Lisp/
I've been reading through Peter Seibel's /Practical Common Lisp/ online[1], and while it's a great resource, I found the default style lacking in a few ways for learning. For one thing, the width doesn't automatically adapt to a narrow window, which I do for side-by-side reading and coding practice; for another, Seibel makes liberal use of footnotes, but they aren't linked in any way in the text, making it difficult to refer to them without losing place. I've written a small userscript to remedy those issues:
@-moz-document url-prefix("http://www.gigamonkeys.com/book/") { * { max-width: 100%; box-sizing: border-box; } body { padding: 1ch; margin-bottom: 140px; } .notes { position: fixed; bottom: 0; left: 0; width: 100%; max-height: 140px; overflow-y: scroll; background: white; border-top: 2px solid; margin-top: 4px; padding: 0 4em; } }
Install by `importing` the code above into a new Stylus sheet. It should only apply to pages /under/ the /book folder on the domain.
Happy hacking!
Footnotes
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
Copyright (c) 2019-2020 Case Duckworth. CC-BY-SA.
Source