Loading README.md +9 −0 Changes for README.md: 9 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -8,3 +8,12 @@ Accès au document au [format markdown](actudes.md) Accès au document au format [html](actudes.html) Accès au document au format [PDF](actudes.pdf) Création du fichier html : pandoc --standalone --template template_actudes.html --toc --css actudes.css -f markdown actudes.md -o actudes.html Création du fichier pdf : Dans le navigateur, menu fichier / imprimer en pdf actudes-html-pandoc.shdeleted 100755 → 0 +0 −7 Changes for actudes-html-pandoc.sh: 0 added lines, 7 removed lines. Original line number Diff line number Diff line #!/bin/bash # Pour diffuser la newsletter par mail il faut intégrer le CSS au html pour le moment pandoc --standalone --template template_actudes.html --toc --css actudes.css -f markdown actudes.md -o actudes.html #pandoc --standalone --embed-resources --resource-path .:${dossier} --template template_newsletter.html --css actudes.css -f markdown -t html5 actudes.md -o actudes_mail.md actudes-pdf-weasyprint.shdeleted 100755 → 0 +0 −20 Changes for actudes-pdf-weasyprint.sh: 0 added lines, 20 removed lines. Original line number Diff line number Diff line #!/bin/bash if [ $# -lt 1 ] || [ $1 = "help" ] then echo "Syntaxe : genere-pdf-weasyprint <fichier html>" echo " Pour convertir le fichier devlog-newsletter-3.mail.html en pdf" echo " exécuter : genere-pdf-weasyprint devlog-newsletter-3.mail.html" echo " Cela va créer le fichier devlog-newsletter-3.mail.pdf" exit 1 fi # Récupère le fichier html passé en paramètre HTML_FILE=$1 weasyprint $1 "${HTML_FILE%.*}.pdf" # avec pandoc pandoc --pdf-engine=pdflatex --highlight-style kate -V colorlinks -V urlcolor=NavyBlue -V geometry:"top=2cm, bottom=1.5cm, left=2cm, right=2cm" --toc -N -o actudes.pdf actudes.md # cf https://jdhao.github.io/2019/05/30/markdown2pdf_pandoc/ No newline at end of file Loading
README.md +9 −0 Changes for README.md: 9 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -8,3 +8,12 @@ Accès au document au [format markdown](actudes.md) Accès au document au format [html](actudes.html) Accès au document au format [PDF](actudes.pdf) Création du fichier html : pandoc --standalone --template template_actudes.html --toc --css actudes.css -f markdown actudes.md -o actudes.html Création du fichier pdf : Dans le navigateur, menu fichier / imprimer en pdf
actudes-html-pandoc.shdeleted 100755 → 0 +0 −7 Changes for actudes-html-pandoc.sh: 0 added lines, 7 removed lines. Original line number Diff line number Diff line #!/bin/bash # Pour diffuser la newsletter par mail il faut intégrer le CSS au html pour le moment pandoc --standalone --template template_actudes.html --toc --css actudes.css -f markdown actudes.md -o actudes.html #pandoc --standalone --embed-resources --resource-path .:${dossier} --template template_newsletter.html --css actudes.css -f markdown -t html5 actudes.md -o actudes_mail.md
actudes-pdf-weasyprint.shdeleted 100755 → 0 +0 −20 Changes for actudes-pdf-weasyprint.sh: 0 added lines, 20 removed lines. Original line number Diff line number Diff line #!/bin/bash if [ $# -lt 1 ] || [ $1 = "help" ] then echo "Syntaxe : genere-pdf-weasyprint <fichier html>" echo " Pour convertir le fichier devlog-newsletter-3.mail.html en pdf" echo " exécuter : genere-pdf-weasyprint devlog-newsletter-3.mail.html" echo " Cela va créer le fichier devlog-newsletter-3.mail.pdf" exit 1 fi # Récupère le fichier html passé en paramètre HTML_FILE=$1 weasyprint $1 "${HTML_FILE%.*}.pdf" # avec pandoc pandoc --pdf-engine=pdflatex --highlight-style kate -V colorlinks -V urlcolor=NavyBlue -V geometry:"top=2cm, bottom=1.5cm, left=2cm, right=2cm" --toc -N -o actudes.pdf actudes.md # cf https://jdhao.github.io/2019/05/30/markdown2pdf_pandoc/ No newline at end of file