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