% . \newcommand{\MTKPsectAlignLeft}{% \let\\\@centercr\@rightskip\@flushglue \rightskip\@rightskip% \leftskip\z@skip} % \newcommand{\MTKPsectAlignCenter}{% \let\\\@centercr \rightskip\@flushglue\leftskip\@flushglue \parindent\z@\parfillskip\z@skip} % \newcommand{\MTKPsectionAlign}{\MTKPsectAlignLeft} \newcommand{\MTKPsubsectionAlign}{\MTKPsectAlignLeft} \newcommand{\MTKPsubsubsectionAlign}{\MTKPsectAlignLeft} % \newcommand{\MTKPsectAlign}[2]{% \expandafter\renewcommand\csname\string MTKP#1Align\endcsname{% \@nameuse{MTKPsectAlign#2}}} % \newcommand{\MTKPsectionStyle}{\normalfont\MTKPfontXXVIsize\it\MakeUppercase} % , luitzen \renewcommand\section{\clearpage\@startsection {section}{1}{.em}% {-15mm \@plus -3mm \@minus -2mm}% {15mm \@plus 1mm \@minus 2mm}% {\let\@hangfrom\@empty \MTKPsectionAlign\MTKPsectionStyle}} % . % \chapter{--} \newcommand\chapter{ \begingroup\clearpage\MTKPsectAlign{subsection}{Center}% \subsection*{#1}% \addcontentsline{toc}{section}{#1}\endgroup}
\section[ ]{\raggedright \\ }
\makeatletter \renewcommand{\l@section}{\@dottedtocline{1}{0.4cm}{0.4cm}} \renewcommand{\thesection}{\arabic{section}} \renewcommand{\section}{\@startsection{section}{1}{1.25cm}{-3.5ex plus -1ex minus -.2ex}{2.3ex plus.2ex}{\raggedright\normalfont\bfseries}} \makeatother % \makeatletter \renewcommand{\l@subsection}{\@dottedtocline{2}{0.8cm}{0.8cm}} \renewcommand{\thesubsection}{\arabic{section}.\arabic{subsection}} \renewcommand{\subsection}{\@startsection{subsection}{2}{1.25cm}{-3.5ex plus -1ex minus -.2ex}{2.3ex plus.2ex}{\raggedright\normalfont\bfseries}} \makeatother % - \makeatletter \renewcommand{\thesubsubsection}{\arabic{section}.\arabic{subsection}.\arabic{subsubsection}} \renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{1.25cm}{-3.5ex plus -1ex minus -.2ex}{2.3ex plus.2ex}{\raggedright\normalfont}} \makeatother \makeatletter \newcommand{\Section}[1]{ \refstepcounter{section} \section*{\MakeTextUppercase{\arabic{section} #1}} \addcontentsline{toc}{section}{\arabic{section} #1} } \makeatother
\section[ ]{ \\ }
Source: https://habr.com/ru/post/144159/
All Articles