From af9cd2dead5934b2ab5cb58ca55de768d7fec448 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D1=8B=D1=82=D0=BA=D0=BE=D0=B2=20=D0=A0=D0=BE=D0=BC?= =?UTF-8?q?=D0=B0=D0=BD?= Date: Sat, 30 May 2026 16:41:00 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D1=8B=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86?= =?UTF-8?q?=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Report/includes/pz-page-offset.typ | 5 +++++ Report/scripts/merge_front_matter.sh | 2 +- Report/Пояснительная_записка_ПытковРЕ.typ | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 Report/includes/pz-page-offset.typ 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"