From 1285da87e5b184e06daf2b80875843732c89333f Mon Sep 17 00:00:00 2001 From: AVAtarMod Date: Tue, 22 Aug 2023 14:23:36 +0300 Subject: [PATCH] config: Update math symbos, style - Replace quotation marks symbols to <<, >> - Fix TOC, itemize list style --- config.tex | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 66 insertions(+), 1 deletion(-) diff --git a/config.tex b/config.tex index ec4f7b4..9c90371 100644 --- a/config.tex +++ b/config.tex @@ -20,6 +20,7 @@ \usepackage{xstring} \usepackage{tabularx} \usepackage{enumitem} +\usepackage[strict=true]{csquotes} \usepackage[abspath]{currfile} \usepackage[hidelinks,linktoc=all]{hyperref} @@ -57,6 +58,12 @@ {\hspace*{-2.3em}} {\titlerule*[2mm]{.}\contentspage} +\titlecontents{subsection} +[3.5em] % 1.5em (chapter) + 2.3em +{} +{\thecontentslabel. } +{\hspace*{-2.3em}} +{\titlerule*[2mm]{.}\contentspage} % ОФОРМЛЕНИЕ ЗАГОЛОВКОВ ----------------- % В т.ч. и содержания @@ -79,6 +86,7 @@ % ОФОРМЛЕНИЕ СПИСКОВ -------------------- \setlist{noitemsep,align=left,left=\parindent,topsep=0pt} +\setlist[itemize]{label=--} % ОФОРМЛЕНИЕ ЛИСТИНГОВ КОДА ----------------- \definecolor{dkgreen}{rgb}{0,0.6,0} @@ -171,4 +179,61 @@ \urlstyle{same} % ОФОРМЛЕНИЕ ТЕКСТА -\renewcommand{\baselinestretch}{1.5} +\renewcommand{\baselinestretch}{1.5} +\MakeOuterQuote{"} + +\makeatletter +\DeclareRobustCommand\vdots{% + \mathpalette\@vdots{}% +} +\newcommand*{\@vdots}[2]{% + % #1: math style + % #2: unused + \sbox0{$#1\cdotp\cdotp\cdotp\m@th$}% + \sbox2{$#1.\m@th$}% + \vbox{% + \dimen@=\wd0 % + \advance\dimen@ -3\ht2 % + \kern.5\dimen@ + % remove side bearings + \dimen@=\wd2 % + \advance\dimen@ -\ht2 % + \dimen2=\wd0 % + \advance\dimen2 -\dimen@ + \vbox to \dimen2{% + \offinterlineskip + \copy2 \vfill\copy2 \vfill\copy2 % + }% + }% +} +\DeclareRobustCommand\ddots{% + \mathinner{% + \mathpalette\@ddots{}% + \mkern\thinmuskip + }% +} +\newcommand*{\@ddots}[2]{% + % #1: math style + % #2: unused + \sbox0{$#1\cdotp\cdotp\cdotp\m@th$}% + \sbox2{$#1.\m@th$}% + \vbox{% + \dimen@=\wd0 % + \advance\dimen@ -3\ht2 % + \kern.5\dimen@ + % remove side bearings + \dimen@=\wd2 % + \advance\dimen@ -\ht2 % + \dimen2=\wd0 % + \advance\dimen2 -\dimen@ + \vbox to \dimen2{% + \offinterlineskip + \hbox{$#1\mathpunct{.}\m@th$}% + \vfill + \hbox{$#1\mathpunct{\kern\wd2}\mathpunct{.}\m@th$}% + \vfill + \hbox{$#1\mathpunct{\kern\wd2}\mathpunct{\kern\wd2}\mathpunct{.}\m@th$}% + }% + }% +} +\makeatother