diff options
| author | Andrew Guschin <guschin@altlinux.org> | 2024-09-05 14:54:31 +0400 |
|---|---|---|
| committer | Andrew Guschin <guschin@altlinux.org> | 2024-09-10 17:36:52 +0400 |
| commit | fabbc86a41dad1b83e46c554e083a1df402b43f4 (patch) | |
| tree | 9c8f130576ff8fe1ad279b7dbfc59403f4cf8687 /report/preamble.sty | |
| parent | cd198b7c36f65e8d6faaca3f3b3c47b87c2ce350 (diff) | |
feat: move project to compiling with tectonic typesetting
Bibliography with bibtex for russian-language sources still needs to be
fixed.
Diffstat (limited to 'report/preamble.sty')
| -rw-r--r-- | report/preamble.sty | 49 |
1 files changed, 39 insertions, 10 deletions
diff --git a/report/preamble.sty b/report/preamble.sty index 48a523c..65161c6 100644 --- a/report/preamble.sty +++ b/report/preamble.sty @@ -1,29 +1,58 @@ +\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{braket} \usepackage{fancyvrb} +\usepackage{fvextra} \usepackage{listings} \usepackage{listingsutf8} \usepackage{longtable} @@ -41,4 +70,4 @@ \newtheorem*{lemma*}{Лемма} \newtheorem*{example}{Пример} -\setminted{fontsize=\small, breaklines=true, style=bw, linenos} +\fvset{fontsize=\small, breaklines=true, numbers=left} |