package forester
A tool for tending mathematical forests
Install
Dune Dependency
Authors
Maintainers
Sources
4.3.0.tar.gz
md5=4cf7ec6a0a36810572f8b3a2af58631c
sha512=818f859dac00a18807563fd79663ec54232c8df196a8dc2de5e269a1d0c71085b1b490297ea0ecf3ef9cd32e40fb05ad2e10c241b03958c15e25c2942271eede
doc/src/forester.render/LaTeX_queue.ml.html
Source file LaTeX_queue.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
open Forester_core module type S = sig val enqueue : string -> string val process : env:_ Build_latex.env -> ignore_tex_cache : bool -> unit end module Make () : S = struct let svg_queue : (string, string) Hashtbl.t = Hashtbl.create 100 let enqueue source = let hash = Digest.to_hex @@ Digest.string source in if not @@ Hashtbl.mem svg_queue hash then Hashtbl.add svg_queue hash source; hash let process ~env ~ignore_tex_cache : unit = let task (name, source) = Reporter.easy_run @@ fun () -> Build_latex.build_latex ~ignore_tex_cache ~env ~name ~source in Hashtbl.to_seq svg_queue |> List.of_seq |> Eio.Fiber.List.iter ~max_fibers:20 task end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>