-
-
Notifications
You must be signed in to change notification settings - Fork 99
Footnote html numbers #543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resyntax analyzed 2 files in this pull request and found no issues.
|
How about using a symbol instead of Although I won't insist, it would be better for the code to follow more Rackety style with square brackets and indentation and using That's a nice use of |
|
Sorry, I'm a bit new here.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resyntax analyzed 2 files in this pull request and found no issues.
|
How about Style-wise, thanks for switching to |
|
Aha, I didn't know you could use I changed the documentation and its contract to advertise |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resyntax analyzed 2 files in this pull request and found no issues.
|
I started to make a recommendation for checking the argument, but now I realize that I have been looking at the changes too shallowly. My apologies for belatedly going back to ask about the basic design here. I originally expected that this change would build on the numbering that Does |
|
I admit I don't understand the counter functionality in private/counter.rkt used in
|
|
Reading the docs for make-traverse-element, I realize that:
On the other hand, regarding side-effects from note, are there modes of execution with separate compilation for documents? Or processing of many documents in a same program run? Because that would indeed break this (and other) side effects I have in my documents. |
Ok, I think I understand better what you're looking for and why
I don't think separate compilation is an issue with the state in the PR. But, yes, rendering multiple documents at once (by just supplying multiple documents to When a module imports other modules (note that |
|
#545 sounds like a good idea—but should This code works now for me, it's much better than what exists, especially when I write a lot of footnotes, some of them long, as I do right now. |
Yes. We should focus effort one way of doing things, as much as possible, in the interest of long-term maintenance. While the current PR may work ok for your immediate purposes, more is needed in terms of argument checking and testing, and anything we add will have to be maintained going forward. If we can get something that both works for your use and is more flexible in the long run, we should go that direction. |
|
Well, I believe the entire Regarding state management, one thing we do a lot in Common Lisp or Elisp is having "hooks" so that extensions can register initializers or wrappers for their extra state. In this case, since resetting note-number is desired around documents, the note extension would register (note-number #f) or (lambda (k) (note-number #f k)) in some hook consulted at the beginning of the document. |
|
Git history suggests that I added both Meanwhile, it seems like you could lift out your approach to Also meanwhile, I appreciate the reminder from your implementation about |
No description provided.