diff --git a/Report/includes/pz-page-offset.typ b/Report/includes/pz-page-offset.typ new file mode 100644 index 0000000..85e740c --- /dev/null +++ b/Report/includes/pz-page-offset.typ @@ -0,0 +1,5 @@ +// Сколько страниц вставляется перед телом ПЗ (front-matter-export/ВКР_первы_3_страницы_Пытков.pdf). +// Должно совпадать с front_pages в scripts/merge_front_matter.sh. +#let pz-vkr-front-page-count = 3 + +#counter(page).update(pz-vkr-front-page-count + 1) diff --git a/Report/scripts/merge_front_matter.sh b/Report/scripts/merge_front_matter.sh index 865f43e..7f70cd7 100755 --- a/Report/scripts/merge_front_matter.sh +++ b/Report/scripts/merge_front_matter.sh @@ -7,7 +7,7 @@ merge_front_into_pz() { local body_pdf="$2" local front_pdf="$report_dir/front-matter-export/ВКР_первы_3_страницы_Пытков.pdf" local out_pdf="$report_dir/Пояснительная_записка_ПытковРЕ.pdf" - local front_pages=3 + local front_pages=3 # = pz-vkr-front-page-count в includes/pz-page-offset.typ if [[ ! -f "$front_pdf" ]]; then echo "error: нет PDF первых страниц: $front_pdf" >&2 diff --git a/Report/Пояснительная_записка_ПытковРЕ.typ b/Report/Пояснительная_записка_ПытковРЕ.typ index ccd04cd..ed517bd 100644 --- a/Report/Пояснительная_записка_ПытковРЕ.typ +++ b/Report/Пояснительная_записка_ПытковРЕ.typ @@ -30,7 +30,8 @@ #set text(font: "Times New Roman") -// Первые 3 страницы — front-matter-export/ВКР_первы_3_страницы_Пытков.pdf (pdfunite в scripts/build*.sh) +// Первые 3 страницы — front-matter-export/ВКР_первы_3_страницы_Пытков.pdf (qpdf в scripts/build*.sh) +#include "includes/pz-page-offset.typ" #include "includes/abstract-ru.typ" #include "includes/abstract-en.typ"