diff --git a/talks/latex/beamercolorthemerainbow.sty b/talks/latex/beamercolorthemerainbow.sty new file mode 100644 index 0000000..94e9a0f --- /dev/null +++ b/talks/latex/beamercolorthemerainbow.sty @@ -0,0 +1,69 @@ +% !TeX root = test.tex +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% The rainbow colour theme +% A beamer colour theme which alternates theme colours on every frame +% Maintained by samcarter +% +% Project repository and bug tracker: +% https://github.com/samcarter/beamertheme-rainbow +% +% Released under the LaTeX Project Public License v1.3c or later +% See http://www.latex-project.org/lppl.txt +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\ProvidesPackage{beamercolorthemerainbow}[2023/07/04 version v0.1 Beamer colour theme with alternating theme colours] + +\mode + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Default colours +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\definecolor{rainbow@0}{HTML}{e50000} +\definecolor{rainbow@1}{HTML}{ff8d00} +\definecolor{rainbow@2}{HTML}{ffee00} +\definecolor{rainbow@3}{HTML}{028121} +\definecolor{rainbow@4}{HTML}{004cff} +\definecolor{rainbow@5}{HTML}{770088} +\colorlet{beamer@structure@color}{rainbow@0} +\setbeamercolor{structure}{fg=beamer@structure@color} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Reading theme options +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\DeclareOptionBeamer{colors}{\def\rainbow@colors{#1}} +\ExecuteOptionsBeamer{colors={rainbow@0,rainbow@1,rainbow@2,rainbow@3,rainbow@4,rainbow@5}} +\ProcessOptionsBeamer + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Defining colours +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\ExplSyntaxOn + +% list to store colour list +\clist_new:N \l_rainbow_clist +\clist_set:Nx \l_rainbow_clist \rainbow@colors + +% setting colour based on frame number +\pretocmd{\beamer@@@frame}{ + \colorlet{beamer@structure@color}{ + \clist_item:Nn \l_rainbow_clist { + \int_eval:n { + \int_mod:nn { \insertframenumber }{ + \clist_count:N \l_rainbow_clist + } + 1 + } + } + } +}{}{} + +\ExplSyntaxOff + +\mode + diff --git a/talks/latex/latex_for_beginners.pdf b/talks/latex/latex_for_beginners.pdf new file mode 100644 index 0000000..e8fb461 Binary files /dev/null and b/talks/latex/latex_for_beginners.pdf differ diff --git a/talks/latex/latex_for_beginners.tex b/talks/latex/latex_for_beginners.tex new file mode 100644 index 0000000..0924ebf --- /dev/null +++ b/talks/latex/latex_for_beginners.tex @@ -0,0 +1,87 @@ +\documentclass[aspectratio=169]{beamer} +\usepackage{fontspec} +\setmainfont{Sofia Sans} +\setsansfont{Noto Sans} +\setmonofont{Fira Code} +%%% Fonts and language setup. +\usepackage{polyglossia} +\usepackage[autostyle]{csquotes} +%% Math +\usepackage{amsmath, amsfonts, amssymb, amsthm, mathtools} % Advanced math tools. +\usepackage{unicode-math} % Allow TTF and OTF fonts in math and allow direct typing unicode math characters. +\unimathsetup{ + warnings-off={ + mathtools-colon, + mathtools-overbracket + } +} +% \setmathfont{STIX Two Math} +% \newfontfamily{\cyrillicfont}{Fira Math} + +\usepackage{metalogox} +\usetheme{Rochester} +\usecolortheme[style=light]{Nord} +\usefonttheme{Nord} + +\usepackage{minted} +\usemintedstyle{catppuccin-latte} + +\title{\LaTeX} +\subtitle{для самых маленьких} +\author{Николай Пономарев} +\institute{мат-мех СПбГУ} +\date{} + +\setbeamertemplate{navigation symbols}{% + \usebeamerfont{footline}% + \usebeamercolor[fg]{footline}% + \hspace{1em}% + \insertframenumber/\inserttotalframenumber +} + +%%% Polyglossia setup after (nearly) everything as described in documentation. +\setdefaultlanguage{russian} +\setotherlanguage{english} + +\begin{document} + +\begin{frame} + \titlepage +\end{frame} + +\begin{frame} + \frametitle{Что это за зверь?} + \TeX~--- система компьютерной верстки, созданная Дональдом Кнутом. + + \LaTeX~--- набор макросов для \TeX, созданный Лесли Лэмпортом для облегчения набора сложных документов в \TeX. + + Основные особенности: + \begin{itemize} + \item Использование языка разметки текстового файла, не WYSIWYG~(What You See Is What You Get) система; + \item Разделение содержания и оформления; + \item Мощная система перекрёстных ссылок; + \item \enquote{Нативная} поддержка математических формул; + \item Переносимость и воспроизводимость. + \end{itemize} +\end{frame} + +\begin{frame}[allowframebreaks] + \frametitle{Экскурс в историю} + \begin{description}[3500 лет до Н.~Э.] + \item[3500 лет до Н.~Э.] Письменность шумеров (потыкать КК) + \item[...] На самом деле очень много чего ещё + \item[XI век] АА + \end{description} + % \framebreak + % Основные особенности: + % \begin{itemize} + % \item Использование языка разметки текстового файла, не WYSIWYG~(What You See Is What You Get) система; + % \item Разделение содержания и оформления; + % \item Мощная система перекрёстных ссылок; + % \item \enquote{Нативная} поддержка математических формул; + % \item Переносимость и воспроизводимость. + % \end{itemize} +\end{frame} + + +\end{document}