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

117 lines
3.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
2022-08-23 23:56:37 +03:00
\usepackage{setspace,fontspec}
2022-09-23 02:18:03 +03:00
\usepackage{amsmath}
2022-12-15 14:36:00 +03:00
\usepackage{spreadtab}
\usepackage{svg}
\newcommand{\tabitem}{~~\llap{\textbullet}~~}
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
2022-12-01 00:36:44 +03:00
\newcommand\lh[2]{\texttt{\textcolor{#1}{#2}}}
2022-08-19 00:30:29 +03:00
\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}}
2022-11-30 22:29:47 +03:00
% \rhead{И.И. Овчинников \\ \href{https://t.me/ivanigorevichfeed}{Telegram: ivanigorevichfeed}}
2022-08-19 00:30:29 +03:00
\chead{\thepage}
2022-12-15 14:36:00 +03:00
\cfoot{\faRocket}
2022-11-30 22:29:47 +03:00
% \rfoot{Всего слов: \wordcount}
2022-08-19 00:30:29 +03:00
}
\geometry{
left=2cm,
right=1cm,
top=2cm,
bottom=2cm
}
\setlist{nolistsep}
\setlist[itemize]{leftmargin=10mm}
\setlist[enumerate]{leftmargin=10mm}
2022-09-29 22:06:09 +03:00
\makeatletter
\providecommand\text\mbox
\newenvironment{arithmetic}[1][]{\begin{tabular}[#1]{Al}}{\end{tabular}}
\newcolumntype{A}{>{\bgroup\def~{\phantom{0}}$\@testOptor}r<{\@gobble\\$\egroup}}
\def\@testOptor\ignorespaces#1#2\\{%
\ifx#1\times
\@OperatorRow{#1}{#2}\@tempa%
\else\ifx#1+
\@OperatorRow+{#2}\@tempa%
\else\ifx#1\discretionary% detects the soft hyphen, \-
\@ShortSubtractRow{#2}\@tempa%
\else\ifx#1-
\@OperatorRow-{#2}\@tempa%
\else
\@NormalRow{#1#2}\@tempa%
\fi\fi\fi\fi
\@tempa}
\def\@OperatorRow#1#2#3{%
\@IfEndRow#2\@gobble\\{%
\def#3{\underline{{}#1 #2}\\}%
}{%
\def#3{\underline{{}#1 #2{}}}%
}}
\def\@NormalRow#1#2{%
\@IfEndRow#1\@gobble\\{%
\def#2{#1\\}%
}{%
\def#2{#1{}}%
}}
\def\@IfEndRow#1\@gobble#2\\#3#4{%
\ifx#2\@gobble
#4%
\else
#3%
\fi}
\makeatother