{"id":16985262,"url":"https://github.com/malcolmstill/pollen-count","last_synced_at":"2026-02-25T11:36:22.824Z","repository":{"id":62424289,"uuid":"40599348","full_name":"malcolmstill/pollen-count","owner":"malcolmstill","description":"An enumeration and cross-referencing library for use with Pollen","archived":false,"fork":false,"pushed_at":"2016-02-29T18:07:42.000Z","size":346,"stargazers_count":12,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-14T18:40:59.196Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Racket","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/malcolmstill.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-12T12:28:32.000Z","updated_at":"2022-12-05T17:11:15.000Z","dependencies_parsed_at":"2022-11-01T18:01:36.848Z","dependency_job_id":null,"html_url":"https://github.com/malcolmstill/pollen-count","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malcolmstill%2Fpollen-count","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malcolmstill%2Fpollen-count/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malcolmstill%2Fpollen-count/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malcolmstill%2Fpollen-count/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/malcolmstill","download_url":"https://codeload.github.com/malcolmstill/pollen-count/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244891223,"owners_count":20527215,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T02:43:04.396Z","updated_at":"2025-10-29T11:32:54.166Z","avatar_url":"https://github.com/malcolmstill.png","language":"Racket","funding_links":[],"categories":[],"sub_categories":[],"readme":"pollen-count\n============\n\nInstallation\n------------\nInstallation at the command line:\n\n```\nraco pkg install pollen-count\n```\n\nUsage (typical)\n---------------\n\nIn `directory-require.rkt`:\n```\n(require pollen-count)\n```\n\nElsewhere in `directory-require.rtk` define some tags:\n```\n(define-countable-tag (section . xs) (0 number-\u003estring #f \".\") (count)\n  `(h2 ((id ,(symbol-\u003estring (gensym)))) ,count \". \" ,@xs))\n\n(define-countable-tag (subsection . xs) (0 number-\u003estring section \".\") (count)\n  `(h3 ((id ,(symbol-\u003estring (gensym)))) ,count \". \" ,@xs))\n\n(define-countable-tag (subsubsection . xs) (0 number-\u003estring subsection \".\") (count)\n  `(h4 ((id ,(symbol-\u003estring (gensym)))) ,count \". \" ,@xs))\n\n(define-countable-tag (footnote . xs) (0 number-\u003estring #f \".\") (count)\n  `(p ((class \"footnote\")) ,count \". \" ,@xs))\n\n(define-countable-tag (figure src #:width [width \"90%\"] . xs) (0 number-\u003estring #f \".\") (count)\n  `(figure\n    (img ((width ,width) (src ,src)))\n    (figcaption ,count \": \" ,@xs)))\n\n(define-countable-tag (listing lang cap . xs) (0 number-\u003estring #f \".\") (count)\n  `(figure ((class \"listing\"))\n    ,(apply highlight lang xs)\n```\n\nIn the `root` function within `directory-require.rkt` reset counters and call `cross-reference` on document `txexpr`:\n\n```\n(define (root . xs)\n\t...\n\t(reset-counter section)\n\t(reset-counter subsection)\n\t(reset-counter subsubsection)\n\t(reset-counter figure)\n\t(reset-counter listing)\n\t(reset-counter footnote)\n\n\t...\n\t(cross-reference `(doc ,@xs))\n\t...\n\t)\n\n```\n\nThese tags can then be used in .pms as follows:\n```\n#lang pollen\n\n◊section[#:label \"sec:intro\"]{Introduction}\n\nThe ship's all yours. If the scanners pick up anything, report it immediately.\nAll right, let's go. Hey down there, could you give us a hand with this?\nTX-four-one-two. Why aren't you at your post? TX-four-one-two, do you copy?\nTake over. We've got a bad transmitter. I'll see what I can do. You know,\nbetween his howling and your blasting everything in sight, it's a wonder the\nwhole station doesn't know we're here. Bring them on! I prefer a straight\nfight to all this sneaking around. We found the computer outlet, sir. Plug in.\nHe should be able to interpret the entire Imperial computer network.\n\n◊section[]{Star Wars VII}\n\nAs per ◊hyperref[\"Section \"]{sec:intro} all troop carriers will assemble at\nthe north entrance. The heavy transport ships will leave as soon as they're\nloaded. Only two fighter escorts per ship. The energy shield can only be\nopened for a short time, so you'll have to stay very close to your transports.\nTwo fighters against a Star Destroyer? The ion cannon will fire several shots\nto make sure that any enemy ships will be out of your flight path. When\nyou've gotten past the energy shield, proceed directly to the rendezvous\npoint. Understood? Right. Okay. Good luck. Okay. Everyone to your stations.\nLet's go!◊sup{◊hyperref{foot:c3po}}\n\n◊section{Footnotes}\n\n◊footnote[#:label \"foot:c3po\"]{No, Threepio's with them. Just hang on.\nWe're almost there. Mmmm. Oh, my. Uh, I, uh - Take this off! I, uh, don't\nmean to intrude here. I, don't, no, no, no...Please don't get up. No!\nStormtroopers? Here? We're in danger. I must tell the others. Oh, no!\nI've been shot!}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalcolmstill%2Fpollen-count","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalcolmstill%2Fpollen-count","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalcolmstill%2Fpollen-count/lists"}