Форматирование перечислений

This commit is contained in:
Andrei Astafev 2021-06-15 14:57:33 +03:00
parent 2c7dd2e3da
commit 8ea8563ec6

View File

@ -427,6 +427,51 @@ $if(csquotes)$
\usepackage{csquotes} \usepackage{csquotes}
$endif$ $endif$
\RequirePackage{enumitem} % убрать вертикальный отступ перед списками
\setlist[itemize]{%
topsep=0pt,
parsep=0pt,
leftmargin=0cm,
listparindent=\parindent{},
itemindent=\labelwidth{}
}
\setlist[enumerate]{%
topsep=0pt,
parsep=0pt,
leftmargin=0cm,
listparindent=\parindent{},
itemindent=\labelwidth{}
}
\AddEnumerateCounter{\asbuk}{\@asbuk}{\cyra}
\renewcommand{\theenumi}{\arabic{enumi}}
\renewcommand{\labelenumi}{\theenumi)}
\renewcommand{\theenumii}{\asbuk{enumi}}
\renewcommand{\labelenumii}{\theenumii)}
\renewcommand{\labelitemi}{\bfseries\textemdash}
\renewcommand{\labelitemii}{\bfseries\textemdash}
\renewcommand{\labelitemiii}{\bfseries\textemdash}
\renewcommand{\labelitemiv}{\bfseries\textemdash}
%\renewcommand{\@listi}{%
% \setlength{\itemsep}{0pt}}
%\renewcommand{\@listii}{%
% \setlength{\itemsep}{0pt}}
%\renewcommand{\@listiii}{%
% \setlength{\itemsep}{0pt}}
%\renewcommand{\@listiv}{%
% \setlength{\itemsep}{0pt}}
%\let\@listI\@listi
%\@listi
\setlength{\labelwidth}{\parindent+.7em+\labelsep}
\setlength{\itemindent}{0pt}
\setlength{\leftmargin}{\labelwidth}
$if(title)$ $if(title)$
\title{$title$$if(thanks)$\thanks{$thanks$}$endif$} \title{$title$$if(thanks)$\thanks{$thanks$}$endif$}
$endif$ $endif$
@ -490,6 +535,7 @@ $include-before$
$endfor$ $endfor$
$if(toc)$ $if(toc)$
\cleardoublepage
$if(toc-title)$ $if(toc-title)$
\renewcommand*\contentsname{$toc-title$} \renewcommand*\contentsname{$toc-title$}
$endif$ $endif$
@ -509,6 +555,7 @@ $endif$
\tableofcontents \tableofcontents
} }
$endif$ $endif$
\cleardoublepage
$endif$ $endif$
$if(lot)$ $if(lot)$
\listoftables \listoftables