How to reset variable between pages #73

Closed
opened 4 years ago by pmarinov · 2 comments
pmarinov commented 4 years ago (Migrated from github.com)

I've updated my Ubuntu and Racket moved from v7.0 to v7.2, using raco pkg I installed Pollen for the new Racket which probably also moved it to a later version

Something has changed because a feature for footnotes that used to work started to behave differently.

In pollen.rkt I have:

(define footnotes null)

(define (footnote . elements)
  (case (current-poly-target)
    ...
    [(html)
      ;; Collect into footnotes
      (set! footnotes (append footnotes (list elements)))
    ...

Before, when it worked, the variable footnotes used to collect only entries from the current page that has been rendered, now it collects entries randomly between pages.

What is the best way to reset the variable between pages?

The project:
https://github.com/pmarinov/bash-scripting-guide/blob/master/pollen.rkt

I've updated my Ubuntu and Racket moved from v7.0 to v7.2, using `raco pkg` I installed Pollen for the new Racket which probably also moved it to a later version Something has changed because a feature for footnotes that used to work started to behave differently. In `pollen.rkt` I have: ``` (define footnotes null) (define (footnote . elements) (case (current-poly-target) ... [(html) ;; Collect into footnotes (set! footnotes (append footnotes (list elements))) ... ``` Before, when it worked, the variable `footnotes` used to collect only entries from the current page that has been rendered, now it collects entries randomly between pages. What is the best way to reset the variable between pages? The project: https://github.com/pmarinov/bash-scripting-guide/blob/master/pollen.rkt
mbutterick commented 4 years ago (Migrated from github.com)

See #43 generally, and this message in particular. In short, Pollen now reuses namespaces during batch operations, so tag functions that assume a fresh namespace may need to be adjusted.

See #43 generally, and [this message](https://github.com/mbutterick/pollen-users/issues/43#issuecomment-626369231) in particular. In short, Pollen now reuses namespaces during batch operations, so tag functions that assume a fresh namespace may need to be adjusted.
pmarinov commented 4 years ago (Migrated from github.com)

Thanks for the advise.

Thanks for the advise.
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mbutterick/pollen-users#73
Loading…
There is no content yet.