-
Notifications
You must be signed in to change notification settings - Fork 5
/
main.tex
109 lines (79 loc) · 5.82 KB
/
main.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
%!TEX TS-program = xelatex
\documentclass[12pt, a4paper]{article}
%%%%%%%%%% Математика %%%%%%%%%%
\usepackage{amsmath,amsfonts,amssymb,amsthm,mathtools}
%\mathtoolsset{showonlyrefs=true} % Показывать номера только у тех формул, на которые есть \eqref{} в тексте.
%\usepackage{leqno} % Нумерация формул слева
%%%%%%%%%%%%%%%%%%%%%%%% Шрифты %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[british,russian]{babel} % выбор языка для документа
\usepackage[utf8]{inputenc} % задание utf8 кодировки исходного tex файла
\usepackage[X2,T2A]{fontenc} % кодировка
\usepackage{fontspec} % пакет для подгрузки шрифтов
\setmainfont{Arial} % задаёт основной шрифт документа
\usepackage{unicode-math} % пакет для установки математического шрифта
%\setmathfont{Asana Math} % шрифт для математики
% \setmathfont[math-style=ISO]{Asana Math}
% Можно делать смену начертания с помощью разных стилей
% Конкретный символ из конкретного шрифта
% \setmathfont[range=\int]{Neo Euler}
%%%%%%%%%% Работа с картинками %%%%%%%%%
\usepackage{graphicx} % Для вставки рисунков
\usepackage{graphics}
\graphicspath{{images/}{pictures/}} % можно указать папки с картинками
\usepackage{wrapfig} % Обтекание рисунков и таблиц текстом
%%%%%%%%%% Работа с таблицами %%%%%%%%%%
\usepackage{tabularx} % новые типы колонок
\usepackage{tabulary} % и ещё новые типы колонок
\usepackage{array} % Дополнительная работа с таблицами
\usepackage{longtable} % Длинные таблицы
\usepackage{multirow} % Слияние строк в таблице
\usepackage{float} % возможность позиционировать объекты в нужном месте
\usepackage{booktabs} % таблицы как в книгах!
\renewcommand{\arraystretch}{1.3} % больше расстояние между строками
% Заповеди из документации к booktabs:
% 1. Будь проще! Глазам должно быть комфортно
% 2. Не используйте вертикальные линни
% 3. Не используйте двойные линии. Как правило, достаточно трёх горизонтальных линий
% 4. Единицы измерения - в шапку таблицы
% 5. Не сокращайте .1 вместо 0.1
% 6. Повторяющееся значение повторяйте, а не говорите "то же"
% 7. Есть сомнения? Выравнивай по левому краю!
%%%%%%%%%% Графика и рисование %%%%%%%%%%
\usepackage{tikz, pgfplots} % язык для рисования графики из latex'a
%%%%%%%%%% Гиперссылки %%%%%%%%%%
\usepackage{xcolor} % разные цвета
% Два способа включить в пакете какие-то опции:
%\usepackage[опции]{пакет}
%\usepackage[unicode,colorlinks=true,hyperindex,breaklinks]{hyperref}
\usepackage{hyperref}
\hypersetup{
unicode=true, % позволяет использовать юникодные символы
colorlinks=true, % true - цветные ссылки, false - ссылки в рамках
urlcolor=blue, % цвет ссылки на url
linkcolor=red, % внутренние ссылки
citecolor=red, % на библиографию
pdfnewwindow=true, % при щелчке в pdf на ссылку откроется новый pdf
breaklinks % если ссылка не умещается в одну строку, разбивать ли ее на две части?
}
\usepackage{csquotes} % Еще инструменты для ссылок
%%%%%%%%%% Другие приятные пакеты %%%%%%%%%
\usepackage{multicol} % несколько колонок
\usepackage{verbatim} % для многострочных комментариев
\usepackage{enumitem} % дополнительные плюшки для списков
% например \begin{enumerate}[resume] позволяет продолжить нумерацию в новом списке
\usepackage{todonotes} % для вставки в документ заметок о том, что осталось сделать
% \todo{Здесь надо коэффициенты исправить}
% \missingfigure{Здесь будет Последний день Помпеи}
% \listoftodos --- печатает все поставленные \todo'шки
%%%%%%%%%%%%%%%%%%%%%%%% Оформление %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[paper=a4paper,top=15mm, bottom=15mm,left=35mm,right=10mm,includefoot]{geometry}
\usepackage{indentfirst} % установка отступа в первом абзаце главы
\usepackage[style=authoryear,sorting=nty]{biblatex}
\addbibresource{mybiber.bib} %сюда надо вписать свой bib-файлик
\begin{document}
\section{Мой список литературы через biber}
В работе~\cite{ahhahahah} есть много букоф. Читать её крайне не рекомендуется.
\nocite{*} % процитировать все статьи из .bib файла
%\printbibliography
\printbibliography[title={Чтиво}]
\end{document}