diff --git a/Makefile b/Makefile index 8a4a6b3fcf8b692b01b0765c09d0589186dde3e5..60cd3d2f858a017c1c7e7386f3dada65964ce491 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ FIGURES = action_t1 arbre boumerang_t7 cathète_t9 dictionaries europe_t16 gelocus_t18 last_page_top_left_t1 sanjo_t29 SNIPPETS = $(wildcard snippets/*.md) -FILTERS = pandoc-fignos +FILTERS = pandoc-secnos pandoc-fignos FILE_NAME = ICHLL_Brenon DOCX_STYLE = ICHLL_STYLESHEET.docx DEPEDENCIES = $(FIGURES:%=ressources/%.png) $(SNIPPETS:%.md=%.png) biblio.bib diff --git a/manifest.scm b/manifest.scm index 16cf43ddbba1a10e2f81157d2511255a00050d27..4fd4b0dad1cf295ba6d764f67c2ba124aba8d3d1 100644 --- a/manifest.scm +++ b/manifest.scm @@ -8,7 +8,8 @@ (nongnu packages fonts)) (let - ((pandoc-fignos (load "pandoc-fignos.scm"))) + ((pandoc-fignos (load "pandoc-fignos.scm")) + (pandoc-secnos (load "pandoc-secnos.scm"))) (packages->manifest (list fontconfig font-microsoft-times-new-roman @@ -16,4 +17,5 @@ pandoc poppler texlive - pandoc-fignos))) + pandoc-fignos + pandoc-secnos))) diff --git a/pandoc-fignos.scm b/pandoc-fignos.scm index a79ddaede387dc791565018359c41ea29c891c6f..e55457705b829461a78a92f590cdffaae1e98462 100644 --- a/pandoc-fignos.scm +++ b/pandoc-fignos.scm @@ -1,6 +1,4 @@ -(use-modules ((gnu packages python-xyz) #:select (python-psutil)) - ((gnu packages textutils) #:select (python-pandocfilters)) - (guix build-system python) +(use-modules (guix build-system python) ((guix download) #:select (url-fetch)) ((guix licenses) #:select (gpl3)) (guix packages)) diff --git a/pandoc-secnos.scm b/pandoc-secnos.scm new file mode 100644 index 0000000000000000000000000000000000000000..cccada79f30445f6a16b8a21b7d97ff04753df44 --- /dev/null +++ b/pandoc-secnos.scm @@ -0,0 +1,32 @@ +(use-modules (guix build-system python) + ((guix build utils) #:select (invoke)) + ((guix download) #:select (url-fetch)) + ((guix gexp) #:select (gexp)) + ((guix licenses) #:select (gpl3)) + (guix packages)) + +(let + ((python-pandoc-xnos (load "pandoc-xnos.scm"))) + (package + (name "python-pandoc-secnos") + (version "2.2.2") + (source (origin + (method url-fetch) + (uri (pypi-uri "pandoc-secnos" version)) + (sha256 + (base32 + "0z0hz9zib3l6c2axjq823xjm9rj55ajb73rc0h0bhsh7rg2gxdqn")))) + (build-system python-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-before 'build 'edit-setup + (lambda _ + (invoke "sed" "-i" "65q" "setup.py")))))) + (propagated-inputs (list python-pandoc-xnos)) + (home-page "https://github.com/tomduck/pandoc-secnos") + (synopsis "Equation number filter for pandoc") + (description "Equation number filter for pandoc") + (license gpl3))) + +