compile.sh 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #!/bin/bash
  2. #
  3. # PY Barriat, May 2022
  4. #
  5. # Install pandoc & pandac-crossref
  6. # sudo apt install ghc-9.0.1
  7. # https://github.com/jgm/pandoc/releases/tag/2.17.1.1
  8. # https://github.com/lierdakil/pandoc-crossref/releases/tag/v0.3.12.2a
  9. # https://github.com/jgm/pandoc-types/releases/tag/1.22.1
  10. #
  11. # Download and install diagrams:
  12. # sudo apt install graphviz python3-pydotplus
  13. # pip install diagrams
  14. #
  15. # Install npm (needed for mermaid: nice extension to make diagramm)
  16. # npm i
  17. #
  18. # with diagrams
  19. python assets/dia_nc_simple.py
  20. python assets/dia_nc_pelican.py
  21. python assets/dia_nc_improved.py
  22. # without mermaid
  23. #pandoc -s Projet_brevet.md -o Projet_brevet.pdf \
  24. # --from markdown \
  25. # --template assets/eisvogel \
  26. # --lua-filter assets/columns.lua \
  27. # --listings
  28. pandoc -s Projet_brevet.md -o Projet_brevet.pdf \
  29. --from markdown \
  30. --template assets/eisvogel \
  31. --filter pandoc-crossref \
  32. --lua-filter assets/columns.lua \
  33. --listings
  34. #/opt/quarto/bin/quarto render tufte.qmd --to pdf
  35. # with mermaid