From bd5bf142bf0528dba8ad9de7713ad9d48fee72f8 Mon Sep 17 00:00:00 2001 From: AVAtarMod Date: Tue, 22 Aug 2023 14:23:36 +0300 Subject: [PATCH] config: Update math symbos WARNING: This commit breaks build! --- config.tex | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 58 insertions(+), 1 deletion(-) diff --git a/config.tex b/config.tex index ec4f7b4..405f469 100644 --- a/config.tex +++ b/config.tex @@ -171,4 +171,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