%% bmstu.cls %% Copyright 2023 Mikael Novikov % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 % of this license or (at your option) any later version. % The latest version of this license is in % http://www.latex-project.org/lppl.txt % and version 1.3 or later is part of all distributions of LaTeX % version 2005/12/01 or later. % % This work has the LPPL maintenance status `maintained'. % % The Current Maintainer of this work is Mikael Novikov. % % This work consists of all files listed in manifest.txt. \NeedsTeXFormat{LaTeX2e} \ProvidesClass{bmstu}[2023/01/28 v2.0.0 BMSTU class] % ������������������ ���������������� ������������ \LoadClass[a4paper,oneside,14pt]{extreport} % ������������������ ������������������ �� ������������ \RequirePackage[T1,T2A]{fontenc} \RequirePackage[utf8]{inputenc} \RequirePackage[english,main=russian]{babel} \RequirePackage{fix-cm} % ������������������ ���������� \RequirePackage[ left=30mm, right=10mm, % ���������������� ���������������������� ��������, ���� �������������������������� �������� 7.32-2017 top=20mm, bottom=20mm, ]{geometry} % ������������������ ������������������ \RequirePackage{microtype} \sloppy % ������������������ ������������������������ ������������������ \RequirePackage{setspace} \onehalfspacing % ������������������ ������������������ �������������� \RequirePackage{indentfirst} \setlength{\parindent}{12.5mm} % ������������������ �������������������� \makeatletter \renewcommand\LARGE{\@setfontsize\LARGE{22pt}{20}} \renewcommand\Large{\@setfontsize\Large{20pt}{20}} \renewcommand\large{\@setfontsize\large{16pt}{20}} \makeatother \RequirePackage{titlesec} \titleformat{\chapter}[block]{\hspace{\parindent}\large\bfseries}{\thechapter}{0.5em}{\large\bfseries\raggedright} \titleformat{name=\chapter,numberless}[block]{\hspace{\parindent}}{}{0pt}{\large\bfseries\centering} \titleformat{\section}[block]{\hspace{\parindent}\large\bfseries}{\thesection}{0.5em}{\large\bfseries\raggedright} \titleformat{\subsection}[block]{\hspace{\parindent}\large\bfseries}{\thesubsection}{0.5em}{\large\bfseries\raggedright} \titleformat{\subsubsection}[block]{\hspace{\parindent}\large\bfseries}{\thesubsection}{0.5em}{\large\bfseries\raggedright} \titlespacing{\chapter}{12.5mm}{-22pt}{10pt} \titlespacing{\section}{12.5mm}{10pt}{10pt} \titlespacing{\subsection}{12.5mm}{10pt}{10pt} \titlespacing{\subsubsection}{12.5mm}{10pt}{10pt} % ���������������������� ������������ ������������ \RequirePackage{xcolor} \RequirePackage{bmstu-figure} \RequirePackage{bmstu-listing} % ���������������������� �������������� ������������ \RequirePackage{tabularx} \RequirePackage{booktabs} % ������������������ ���������������� \RequirePackage[ labelsep=endash, figurename=��������������, singlelinecheck=false, ]{caption} \captionsetup[figure]{justification=centering} % ���������������������� �������������� ������ ������������������ �������������������� \RequirePackage{lscape} \RequirePackage{afterpage} % ���������������������� ���������������������������� �������������� \RequirePackage{amsmath} \RequirePackage{amssymb} % ������������������ ������������������������ \RequirePackage[ style=gost-numeric, language=auto, autolang=other, sorting=none, ]{biblatex} \RequirePackage{csquotes} \DeclareFieldFormat{urldate}{(�������� ������������������:\addspace\thefield{urlday}\adddot \thefield{urlmonth}\adddot\thefield{urlyear})} % ���������������������� ������������ ���������������������� \RequirePackage[unicode,hidelinks]{hyperref} % ���������������������� ������������ ���������������������� ���������������������� \RequirePackage{xifthen} \RequirePackage{bmstu-title} \RequirePackage{bmstu-essay} \RequirePackage{bmstu-toc} \RequirePackage{bmstu-defabbr} \RequirePackage{bmstu-biblio} \RequirePackage{bmstu-appendix}