Last active
November 7, 2018 20:40
-
-
Save murych/c04e63659c724dc6091190279c5ea329 to your computer and use it in GitHub Desktop.
XeLaTeX templates for lecture notes and basic slides w/ Metropolis theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[11pt]{article} | |
\usepackage[margin=0.2in]{geometry} | |
% \geometry{a5paper} | |
\usepackage[quiet]{fontspec} | |
\usepackage{xunicode} | |
\usepackage{xltxtra} | |
\usepackage{polyglossia} | |
\setdefaultlanguage{russian} | |
\setmainfont[Ligatures=TeX, Mapping=tex-text]{Linux Libertine} | |
% math formulas optimization | |
\usepackage{amsmath} | |
\usepackage{amssymb} | |
\usepackage{latexsym} | |
\usepackage{mathtools} | |
% indent first paragraph | |
\usepackage{indentfirst} | |
% simpler df/dx and brackets | |
\usepackage{physics} | |
% cool tables | |
\usepackage{booktabs} | |
% use SI units macros | |
\usepackage{siunitx} | |
% stretch table rows a little | |
\renewcommand{\arraystretch}{2} | |
\numberwithin{equation}{section} | |
\numberwithin{figure}{section} | |
\title{Название работы} | |
\author{ФИО} | |
\date{\today} | |
\makeindex | |
\begin{document} | |
\pagestyle{empty} | |
\maketitle | |
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[aspectratio=43]{beamer} | |
% -- beamer theme settings -- | |
\usetheme{metropolis} | |
\metroset{ | |
subsectionpage=progressbar | |
} | |
% -- xelatex settings -- | |
\usepackage{polyglossia} | |
\setdefaultlanguage{russian} | |
% show notes on side | |
% \usepackage{pgfpages} | |
% \setbeameroption{show notes on second screen=right} % Both | |
% \makeatletter | |
% \def\beamer@framenotesbegin{% at beginning of slide | |
% \usebeamercolor[fg]{normal text} | |
% \gdef\beamer@noteitems{}% | |
% \gdef\beamer@notes{}% | |
% } | |
% \makeatother | |
% -- biblio font size -- | |
\setbeamerfont{bibliography item}{size=\footnotesize, series=\mdseries} | |
\setbeamerfont{bibliography entry author}{size=\footnotesize, series=\mdseries} | |
\setbeamerfont{bibliography entry title}{size=\footnotesize, series=\mdseries} | |
\setbeamerfont{bibliography entry location}{size=\footnotesize, series=\mdseries} | |
\setbeamerfont{bibliography entry note}{size=\footnotesize, series=\mdseries} | |
\setbeamertemplate{bibliography entry article}{} | |
\setbeamertemplate{bibliography entry title}{} | |
\setbeamertemplate{bibliography entry location}{} | |
\setbeamertemplate{bibliography entry note}{} | |
\setbeamertemplate{note page}{% | |
\insertnote% | |
} | |
% -- math packages -- | |
\usepackage{siunitx} | |
\usepackage{physics} | |
% -- figure packages -- | |
% \usepackage{subcaption} | |
\usepackage{subfig} | |
\usepackage[figurename=Рисунок, tablename=Таблица]{caption} | |
% -- table packages -- | |
\usepackage{booktabs} | |
\usepackage{tabularx} | |
\usepackage{adjustbox} | |
\usepackage{multirow} | |
% \renewcommand{\arraystretch}{1.2} | |
% -- plots packages -- | |
\usepackage{pgfplots} | |
\usepackage{pgfplotstable} | |
\pgfplotsset{width=7cm,compat=1.8} | |
% -- chemistry packages -- | |
\usepackage{chemfig} | |
\usepackage[version=4]{mhchem} | |
% \newcommand\setpolymerdelim[2]{\def\delimleft{#1}\def\delimright{#2}} | |
% \def\makebraces[#1,#2]#3#4#5{% | |
% \edef\delimhalfdim{\the\dimexpr(#1+#2)/2}% | |
% \edef\delimvshift{\the\dimexpr(#1-#2)/2}% | |
% \chemmove{% | |
% \node[at=(#4),yshift=(\delimvshift)] | |
% {$\left\delimleft\vrule height\delimhalfdim depth\delimhalfdim | |
% width0pt\right.$};% | |
% \node[at=(#5),yshift=(\delimvshift)] | |
% {$\left.\vrule height\delimhalfdim depth\delimhalfdim | |
% width0pt\right\delimright_{\rlap{$\scriptstyle#3$}}$};}} | |
% \setpolymerdelim() | |
% \setchemfig{2em} | |
% -- document -- | |
\title{title} | |
\date{\today} | |
\author{author} | |
\institute{institute} | |
\begin{document} | |
\maketitle | |
\begin{frame}{Содержание} | |
\setbeamertemplate{section in toc}[sections numbered] | |
\tableofcontents[hideallsubsections] | |
\end{frame} | |
\input{src_slides/00_introduction} | |
% \begin{frame}[standout] | |
% Вопросы? | |
% \end{frame} | |
\begin{frame}[allowframebreaks]{Литература} | |
\bibliography{src_slides/biblio} | |
\bibliographystyle{ugost2008} | |
% \bibliographystyle{plain} | |
\end{frame} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment