From b8ca36dc18ca8237d53bb4b39c71a4bf113fb000 Mon Sep 17 00:00:00 2001 From: Andrew Guschin Date: Thu, 5 Sep 2024 14:54:31 +0400 Subject: =?UTF-8?q?=D0=9F=D0=BE=D1=87=D0=B8=D0=BD=D0=B8=D0=BB=20tex=20?= =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=B5=D0=BA=D1=82=20=D0=B4=D0=BB=D1=8F=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=BC=D0=BF=D0=B8=D0=BB=D1=8F=D1=86=D0=B8=D0=B8=20?= =?UTF-8?q?=D1=87=D0=B5=D1=80=D0=B5=D0=B7=20tectonic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- report/preamble.sty | 50 ++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 40 insertions(+), 10 deletions(-) (limited to 'report/preamble.sty') diff --git a/report/preamble.sty b/report/preamble.sty index fc984ce..e8f9501 100644 --- a/report/preamble.sty +++ b/report/preamble.sty @@ -1,28 +1,57 @@ +\ProvidesPackage{preamble} + \usepackage[english,russian]{babel} -\usepackage[T2A]{fontenc} -\usepackage[utf8]{inputenc} +% \usepackage[T2A]{fontenc} +% \usepackage[utf8]{inputenc} +\usepackage{fontspec} +\setmainfont[ + Path=./fonts/freefont/, + Extension = .otf, + UprightFont=*, + BoldFont=*Bold, + ItalicFont=*Italic, + BoldItalicFont=*BoldItalic +]{FreeSerif} +\setsansfont[ + Path=./fonts/freefont/, + Extension = .otf, + UprightFont=*, + BoldFont=*Bold, + ItalicFont=*Oblique, + BoldItalicFont=*BoldOblique +]{FreeSans} +\setmonofont[ + Path=./fonts/freefont/, + Extension = .otf, + UprightFont=*, + BoldFont=*Bold, + ItalicFont=*Oblique, + BoldItalicFont=*BoldOblique +]{FreeMono} +\usepackage{caption} \usepackage{float} \usepackage{subfigure} \usepackage{tikz,pgfplots} \pgfplotsset{compat=1.5} \setcounter{secnumdepth}{4} -\titleformat{\paragraph}[block] -{\hspace{1.25cm}\normalfont} -{\theparagraph}{1ex}{} -\titlespacing{\paragraph} -{0cm}{2ex plus 1ex minus .2ex}{.4ex plus.2ex} +% \titleformat{\paragraph}[block] +% {\hspace{1.25cm}\normalfont} +% {\theparagraph}{1ex}{} +% \titlespacing{\paragraph} +% {0cm}{2ex plus 1ex minus .2ex}{.4ex plus.2ex} \usepackage{graphicx} \graphicspath{ {./images/} } -\usepackage{tempora} -\usepackage{minted} +% \usepackage{tempora} +% \usepackage{minted} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsthm} \usepackage{fancyvrb} +\usepackage{fvextra} \usepackage{listings} \usepackage{listingsutf8} \usepackage{longtable} @@ -40,4 +69,5 @@ \newtheorem*{lemma*}{Лемма} \newtheorem*{example}{Пример} -\setminted[rust]{fontsize=\small, breaklines=true, style=bw, linenos} +% \setminted[rust]{fontsize=\small, breaklines=true, style=bw, linenos} +\fvset{breaklines=true,numbers=left,fontsize=\small} -- cgit v1.2.3