compile.sh 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #!/bin/bash
  2. #
  3. # PY Barriat, May 2022
  4. #
  5. # Install pandoc & pandac-crossref
  6. # sudo apt install ghc haskell-stack
  7. # stack upgrade --binary-only
  8. #
  9. # cd /tmp; git clone https://github.com/jgm/pandoc
  10. # cd pandoc; stack install
  11. #
  12. # cd /tmp; git clone https://github.com/lierdakil/pandoc-crossref.git
  13. # cd pandoc-crossref; stack install
  14. #
  15. # cd /tmp; git clone https://github.com/jgm/pandoc-types
  16. # cd pandoc-types; stack install
  17. #
  18. # Download and install diagrams:
  19. # sudo apt install graphviz python3-pydotplus
  20. # pip install diagrams
  21. #
  22. # Install npm (needed for mermaid: nice extension to make diagramm)
  23. # npm i
  24. #
  25. DATE=$(date "+%d %B %Y")
  26. # with diagrams
  27. #python3 scripts/dia_nc_simple.py
  28. #python3 scripts/dia_nc_pelican.py
  29. #python3 scripts/dia_nc_improved.py
  30. #python3 scripts/dia_db_cluster.py
  31. #python3 scripts/dia_nc_dev_simple.py
  32. #python3 scripts/dia_nc_dev_improved.py
  33. python3 scripts/dia_nc_dev_tuned.py
  34. exit
  35. # without mermaid
  36. #pandoc -s Projet_brevet.md -o Projet_brevet.pdf \
  37. # --from markdown \
  38. # --template assets/eisvogel \
  39. # --lua-filter assets/columns.lua \
  40. # --listings
  41. pandoc -s Projet_brevet.md -o Projet_brevet.pdf \
  42. --from markdown \
  43. --template assets/eisvogel \
  44. --filter pandoc-crossref \
  45. --lua-filter assets/columns.lua \
  46. --listings \
  47. -M date="$DATE"
  48. #pandoc -s Complement_technique_Brevet_PYB.md -o Complement_technique_Brevet_PYB.pdf \
  49. # --from markdown \
  50. # --template assets/eisvogel \
  51. # --filter pandoc-crossref \
  52. # --lua-filter assets/columns.lua \
  53. # --listings \
  54. # -M date="$DATE"
  55. #/opt/quarto/bin/quarto render tufte.qmd --to pdf
  56. # with mermaid