fix(PDF): code blocks - Use fenced_code_attributes and --highlight-style

This commit is contained in:
Olivier DOSSMANN 2025-01-28 17:31:22 +01:00
parent b23344a36f
commit 68187f6e68

View File

@ -24,7 +24,7 @@ CONTENT_LIST := $(shell find ${SRC_DIR} -type f -iname '*.md'|sort -u)
# zenburn
# haddock
# breezedark
HL_THEME ?= kate
HL_THEME ?= breezedark
TOC_TITLE ?= Sommaire
# Specific to PDF
@ -45,7 +45,7 @@ public/${NAME}.html: public ${CONTENT_LIST}
public/${NAME}.pdf: public ${CONTENT_LIST}
$Qecho "[PREPA] PDF : contenu"
# Cf. https://pandoc.org/chunkedhtml-demo/8.17-images.html for implicit_figures explanations (deactivated here)
$Qpandoc -V colorlinks -V fontfamily="${FONT_FAMILY}" -V fontsize="${FONT_SIZE}" -V classoption:twoside --number-sections -V graphics --template="${LATEX_TEMPLATE}" --toc -V toc-title:'${TOC_TITLE}' -V papersize:a4 --from=markdown-implicit_figures --to=latex -o "public/${NAME}.pdf" ${CONTENT_LIST}
$Qpandoc -V colorlinks -V fontfamily="${FONT_FAMILY}" -V fontsize="${FONT_SIZE}" -V classoption:twoside --number-sections -V graphics --template="${LATEX_TEMPLATE}" --toc -V toc-title:'${TOC_TITLE}' -V papersize:a4 --from=markdown-implicit_figures+fenced_code_attributes --highlight-style ${HL_THEME} --to=latex -o "public/${NAME}.pdf" ${CONTENT_LIST}
# END
.PHONY: clean