main.typ 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. #import "/.template/lib/api.typ": document, attachment, attachment-set, bibliography-section
  2. #import "/.template/lib/presentation/profiles/report.typ": report-profile
  3. #import "/.template/lib/presentation/components.typ": corp_table, formula
  4. #import "/.template/lib/presentation/references.typ": vref, vrefs, eqref
  5. #let appendices = attachment-set(
  6. numbering: "cyrillic",
  7. items: (
  8. attachment(
  9. "test-appendix",
  10. "Тестовое приложение",
  11. [Приложение создано через независимую доменную модель.],
  12. ),
  13. ),
  14. )
  15. #let bibliographies = (
  16. bibliography-section(
  17. "normative",
  18. path("normative.bib"),
  19. title: [НОРМАТИВНЫЕ ИСТОЧНИКИ],
  20. group: "report-sources",
  21. ),
  22. bibliography-section(
  23. "science",
  24. path("science.bib"),
  25. title: [НАУЧНЫЕ ИСТОЧНИКИ],
  26. group: "report-sources",
  27. ),
  28. )
  29. #show: document.with(
  30. company: "test-company",
  31. profile: report-profile(
  32. title: "Новый модульный отчёт",
  33. theme: "Проверка DDD-профиля",
  34. udk: "000.000",
  35. director_date: "«26» августа 2026 г.",
  36. is_research: true,
  37. is_intermediate: true,
  38. stage_number: 1,
  39. volume_number: 1,
  40. contract_number: "DDD-001",
  41. contract_date: "«26» августа 2026",
  42. city: "Пример",
  43. year: 2026,
  44. executors: (
  45. ("Ответственный исполнитель", "Тестов И.И.", path("/.template/companies/test-company/sign.svg"), 0.5cm),
  46. ),
  47. attachments: appendices,
  48. bibliographies: bibliographies,
  49. ),
  50. )
  51. #heading(numbering: none)[ВВЕДЕНИЕ]
  52. Профиль отчёта использует нормативный источник @normative-test и научную публикацию @science-test.
  53. = ПРОВЕРКА ССЫЛОК
  54. #figure(
  55. rect(width: 3cm, height: 1.5cm, fill: rgb("fbb20d")),
  56. caption: [Первый тестовый рисунок],
  57. ) <new-figure-a>
  58. #figure(
  59. circle(radius: 0.7cm, fill: rgb("e39f49")),
  60. caption: [Второй тестовый рисунок],
  61. ) <new-figure-b>
  62. Одна ссылка: #vref(<new-figure-a>, grammatical-case: "предл").
  63. Несколько ссылок: #vrefs((<new-figure-a>, <new-figure-b>), grammatical-case: "вин").
  64. #figure(
  65. corp_table(
  66. columns: 2,
  67. [Параметр], [Значение],
  68. [Архитектура], [Изолированная],
  69. ),
  70. caption: [Проверочная таблица],
  71. )
  72. #formula($x^2 + y^2 = z^2$) <new-equation>
  73. Формула: #eqref(<new-equation>).
  74. #heading(numbering: none)[ЗАКЛЮЧЕНИЕ]
  75. Новый отчёт собирается через `document` и `report-profile`.