bmi-report/preamble.tex
Artur Mukhamadiev 91af951f30 preamble ready
2026-01-26 18:54:56 +03:00

153 lines
3.7 KiB
TeX
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

% --- ПРЕАМБУЛА: LG INTERNAL REPORT (SIMPLIFIED) ---
% --- КОДИРОВКА И ЯЗЫК ---
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[russian]{babel}
\usepackage{csquotes} % Added for babel compatibility
% --- ГЕОМЕТРИЯ СТРАНИЦЫ ---
\usepackage[left=3cm, right=2cm, top=2.5cm, bottom=2.5cm]{geometry}
% --- ШРИФТЫ И ИНТЕРВАЛЫ ---
\usepackage{setspace}
\onehalfspacing
\usepackage{indentfirst}
\usepackage{titlesec}
% --- ЦВЕТА LG ---
\usepackage{xcolor}
\definecolor{LGBlue}{RGB}{0, 83, 156}
\definecolor{LGRed}{RGB}{237, 28, 36}
% --- ДЛЯ ИСПОЛЬЗОВАНИЯ @ В КОМАНДАХ ---
\makeatletter
% --- КОМАНДЫ ДЛЯ ОТЧЕТА ---
\newcommand{\projectcode}[1]{\def\@projectcode{#1}}
\newcommand{\department}[1]{\def\@department{#1}}
\newcommand{\reportdate}[1]{\def\@reportdate{#1}}
\newcommand{\approver}[1]{\def\@approver{#1}}
\newcommand{\reporttype}[1]{\def\@reporttype{#1}}
\department{Russia R\&D Lab, Web Team}
\reportdate{\today}
\approver{Dmitry Ketov, Part Leader}
\reporttype{Internal Report}
% --- ЗАГОЛОВКИ СТРАНИЦ ---
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[L]{\small LG Internal}
\fancyfoot[C]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
% --- ФОРМАТИРОВАНИЕ РАЗДЕЛОВ ---
\titleformat{\section}
{\normalfont\Large\bfseries}
{\thesection.}{0.5em}{}
\titleformat{\subsection}
{\normalfont\large\bfseries}
{\thesubsection.}{0.5em}{}
% --- МАТЕМАТИКА ---
\usepackage{amsmath, amssymb}
% --- ГРАФИКА ---
\usepackage{graphicx}
\graphicspath{{images/}}
\usepackage{caption}
\captionsetup{labelsep=period}
% --- БИБЛИОГРАФИЯ ---
\usepackage[
backend=biber,
style=gost-numeric,
sorting=none
]{biblatex}
\addbibresource{references.bib}
% --- КОД ---
\usepackage{listings}
\lstdefinestyle{lgcode}{
language=Python,
basicstyle=\ttfamily\small,
keywordstyle=\bfseries,
commentstyle=\itshape\color{gray},
numbers=left,
frame=single,
breaklines=true,
tabsize=2
}
% --- ССЫЛКИ ---
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=LGBlue,
citecolor=LGBlue,
urlcolor=LGBlue
}
% --- ТИТУЛЬНАЯ СТРАНИЦА (ПРОСТАЯ) ---
\renewcommand{\maketitle}{
\begin{titlepage}
\thispagestyle{empty}
\vspace*{2cm}
\begin{center}
% Логотип и организация
{\LARGE\bfseries LG Electronics} \\
\vspace{0.5cm}
{\large Russia R\&D Lab} \\
\vspace{1cm}
% Линия
\textcolor{LGBlue}{\rule{0.6\textwidth}{1pt}} \\
\vspace{0.5cm}
% Тип отчета
{\Large\bfseries \@reporttype} \\
\vspace{1cm}
% Заголовок
{\Huge\bfseries \@title} \\
\vspace{1.5cm}
% Информация
\begin{tabular}{p{0.45\textwidth}p{0.45\textwidth}}
\textbf{Подготовил:} & \textbf{Утвердил:} \\
\@author & \@approver \\
& \\
\textbf{Отдел:} & \textbf{Дата:} \\
\@department & \@reportdate \\
& \\
& \textbf{Версия:} \\
& 1.0
\end{tabular}
\vfill
% Конфиденциальность
\textcolor{LGRed}{\bfseries КОНФИДЕНЦИАЛЬНО - ВНУТРЕННЕЕ ИСПОЛЬЗОВАНИЕ} \\
\vspace{0.3cm}
\footnotesize
\today
\end{center}
\end{titlepage}
}
\makeatother
% --- ПРОСТЫЕ КОМАНДЫ ---
\newcommand{\lgconfidential}{\textcolor{LGRed}{[КОНФИДЕНЦИАЛЬНО]}}
\newcommand{\lginternal}{\textcolor{LGBlue}{[ВНУТРЕННИЙ]}}
\newcommand{\bmi}{BMI}
% --- МЕТАДАННЫЕ ПО УМОЛЧАНИЮ ---
\title{Отчет по исследованию}
\author{Исследовательская группа}
\date{\today}