Liking cljdoc? Tell your friends :D

hydrox.doc.link.numbers


incrementclj

(increment count)

increments a string for alphanumerics and numbers (increment "1") => "2"

(increment "A") => "B"

increments a string for alphanumerics and numbers
(increment "1")
=> "2"

(increment "A")
=> "B"
sourceraw docstring

(link-numbers folio name)

creates numbers for main sections, images, code and equations (link-numbers {:articles {"example" {:elements [{:type :chapter :title "hello"} {:type :section :title "world"}]}}} "example") {:articles {"example" {:elements [{:type :chapter, :title "hello", :number "1"} {:type :section, :title "world", :number "1.1"}]}}}

creates numbers for main sections, images, code and equations
(link-numbers {:articles {"example" {:elements [{:type :chapter :title "hello"}
                                                {:type :section :title "world"}]}}}
              "example")
{:articles {"example"
            {:elements [{:type :chapter, :title "hello", :number "1"}
                       {:type :section, :title "world", :number "1.1"}]}}}
sourceraw docstring

(link-numbers-loop elements auto-number)
(link-numbers-loop [{:keys [type origin] :as ele} & more :as elements]
                   auto-number
                   {:keys [chapter section subsection subsubsection code image
                           equation citation]
                    :as counter}
                   output)

main loop logic for generation of numbers

main loop logic for generation of numbers
sourceraw docstring

new-counterclj

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close