Skip to content

LaTeX Talk #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions talks/latex/beamercolorthemerainbow.sty
Original file line number Diff line number Diff line change
@@ -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<presentation>

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% 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
<all>
Binary file added talks/latex/latex_for_beginners.pdf
Binary file not shown.
87 changes: 87 additions & 0 deletions talks/latex/latex_for_beginners.tex
Original file line number Diff line number Diff line change
@@ -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}