basic-c/formatting.tex

62 lines
1.7 KiB
TeX
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

%%% Работа с русским языком
\usepackage{cmap} % поиск в PDF
\usepackage[T2A]{fontenc} % кодировка
\usepackage[utf8]{inputenc} % кодировка исходного текста
\usepackage[english,russian]{babel} % локализация и переносы
\usepackage[printwatermark]{xwatermark}
\usepackage{xcolor}
\usepackage{multicol}
\usepackage{setspace}
% XeLaTeX
%\usepackage{fontspec}
%\setmainfont{Times New Roman}
\onehalfspacing
\usepackage{titlesec}
\usepackage{indentfirst}
\newcommand{\frm}[1]{
\newline
\newline
\indent
\fbox{%
\parbox{0.9\textwidth}{%
#1
}%
}
\newline
\newline
}
\newcommand{\office}{(LibreOffice, OpenOffice, Microsoft Office, iWork и другие)}
\hbadness=99999
\def\code#1{\texttt{#1}}
\author{Иван Овчинников}
\date{\today}
\usepackage{amsmath,amsfonts,amssymb,amsthm,mathtools} % AMS
\usepackage{icomma} % "Умная" запятая: $0,2$ --- число, $0, 2$ --- перечисление
%% Перенос знаков в формулах (по Львовскому)
\newcommand*{\hm}[1]{#1\nobreak\discretionary{}
{\hbox{$\mathsurround=0pt #1$}}{}}
\usepackage{layout}
\usepackage{titlesec}
\newcommand{\sectionbreak}{\clearpage}
\usepackage{hyperref}
\hypersetup{
colorlinks=false, %set true if you want colored links
linktoc=all %set to all if you want both sections and subsections linked
}
\addto{\captionsrussian}{\renewcommand{\figurename}{}}
\usepackage[cache=false]{minted}
\usepackage[lmargin=1.5cm,rmargin=2.5cm,tmargin=2.5cm,bmargin=2.5cm,paperheight=240mm,paperwidth=170mm]{geometry}
%\setlength{\marginparwidth}{0pt}
% \begin{multicols}{2}
% \columnbreak
% \end{multicols}