gb-java-devel/settings/main-style-preamble.tex

74 lines
2.0 KiB
TeX
Raw Normal View History

2022-08-19 00:30:29 +03:00
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{xcolor,colortbl}% http://ctan.org/pkg/xcolor
2022-08-19 00:30:29 +03:00
\usepackage{titlesec}
\usepackage{indentfirst}
\usepackage{datetime2}
\usepackage{geometry,lscape}
\usepackage{enumitem}
2022-09-23 02:18:03 +03:00
\usepackage{caption,subcaption}
2022-08-19 00:30:29 +03:00
\usepackage{multicol,multirow}
\usepackage{float,adjustbox}
\usepackage{fontawesome}
2022-08-19 00:30:29 +03:00
\usepackage{longtable}
\usepackage{tikz}
\usepackage{hyperref}
\usepackage{forest}
\usepackage{nomencl,imakeidx}
\usetikzlibrary{mindmap,trees}
\usepackage{booktabs}% http://ctan.org/pkg/booktabs
\newcommand{\tabitem}{~~\llap{\textbullet}~~}
2022-08-23 23:56:37 +03:00
\usepackage{setspace,fontspec}
2022-09-23 02:18:03 +03:00
\usepackage{amsmath}
2022-08-23 23:56:37 +03:00
\spacing{1.15}
\babelfont{rm}{IBM Plex Sans}
\babelfont{tt}{PT Mono}
2022-08-19 00:30:29 +03:00
\titlelabel{\thetitle. \quad}
2022-08-23 23:56:37 +03:00
\setcounter{tocdepth}{2}
2022-08-19 00:30:29 +03:00
\renewcommand{\nomname}{Термины, определения и сокращения}
\makeindex
\makenomenclature
\newcommand\hrf[1]{\hyperref[#1]{\ref{#1}}}
\newcommand\hRf[1]{\hyperref[#1]{\nameref{#1}}}
\newcommand{\wordcount}{\input{/tmp/wordcount.tex}}
\newcommand{\code}[1]{\small{\texttt{\detokenize{#1}}}\normalsize}
\newcommand*{\nom}[2]{#1\nomenclature{#1}{#2}}
\renewcommand\labelitemi{\textemdash}
\newenvironment{frm}
{ \begin{center} \renewcommand*{\arraystretch}{2} \begin{tabular}{|p{0.9\textwidth}|} \hline }
{ \\\hline \end{tabular} \end{center} }
\newcommand{\info}{\cellcolor{green!20}{\Huge \faInfoCircle \quad}}
\newcommand{\excl}{\cellcolor{red!20}{\Huge \faExclamationTriangle \quad}}
\makeatletter
\newcommand{\setword}[2]{%
\phantomsection
#1\def\@currentlabel{\unexpanded{#1}}\label{#2}%
}
\makeatother
2022-08-19 00:30:29 +03:00
\fancypagestyle{plain}{
\setlength{\headheight}{33pt}
\fancyhf{}
\lhead{\includegraphics[height=5mm]{logo.png}}
\rhead{И.И. Овчинников \\ \href{https://t.me/ivanigorevichfeed}{Telegram: ivanigorevichfeed}}
\chead{\thepage}
2022-08-23 23:56:37 +03:00
% \cfoot{\faRocket}
2022-08-19 00:30:29 +03:00
\rfoot{Всего слов: \wordcount}
}
\geometry{
left=2cm,
right=1cm,
top=2cm,
bottom=2cm
}
\setlist{nolistsep}
\setlist[itemize]{leftmargin=10mm}
\setlist[enumerate]{leftmargin=10mm}