Skip to content

Instantly share code, notes, and snippets.

@applejxd
Last active September 17, 2023 15:25
Show Gist options
  • Save applejxd/9bd52b2fd45cfa10949fd28480b47d75 to your computer and use it in GitHub Desktop.
Save applejxd/9bd52b2fd45cfa10949fd28480b47d75 to your computer and use it in GitHub Desktop.
Metropolis による Beamer のテンプレート
%%%%%%%%%
% Theme %
%%%%%%%%%
% cf. http://bit.ly/2RFp6Fa
\documentclass[unicode,12pt]{beamer}
% 和文フォント
\usepackage{zxjatype}
\usepackage[noto]{zxjafont}
% Manual: http://bit.ly/37hpbFU
% cf. http://bit.ly/38sUhdL
% cf. http://bit.ly/36eamT5
\usetheme[
block=fill, % ブロックに背景をつける
progressbar=foot, % 各スライドの下にプログレスバー
numbering=fraction % 合計ページ数を表示
]{metropolis}
% ページ番号
\setbeamerfont{frame numbering}{size=\large}
% \usepackage{color}
% CUD 配色の作成
% cf. http://bit.ly/2G99WCG
\definecolor{cud_blue}{rgb}{.109803922,.349019608,.682352941}
\definecolor{cud_green}{rgb}{.282352941,.639215686,.407843137}
\definecolor{cud_orange}{rgb}{.929411765,.564705882,.156862745}
% 基本色の変更
\setbeamercolor{normal text}{fg=cud_blue}
\setbeamercolor{example text}{fg=cud_green}
\setbeamercolor{alerted text}{fg=cud_orange}
%%%%%%%%%%%%%%
% usepackage %
%%%%%%%%%%%%%%
% [xetex] の指定が必要な場合がある
\usepackage{graphicx}
\usepackage{hyperref}
% AMS styles
% cf. http://bit.ly/2TIdOmd
\usepackage{
amsmath, % 環境
amssymb, % 記号
amsfonts % 特殊文字
}
\usepackage{physics, siunitx}
\usepackage{comment}
\usepackage{url}
%%%%%%%%%%%%
% Contents %
%%%%%%%%%%%%
\title{タイトル}
\date{発表日}
\author{発表者}
\institute{所属組織}
\begin{document}
\maketitle
\section{幾つかのデモ}
\begin{frame}{フォント・数式のデモ}
アインシュタイン方程式
\begin{equation}
G_{\mu\nu}+\Lambda g_{\mu\nu}
=\frac{8\pi G}{c^4}T_{\mu\nu}
\end{equation}
Einstein equation
\end{frame}
\begin{frame}{Block のデモ}
\begin{block}{通常ブロック}
内容
\end{block}
\begin{exampleblock}{例ブロック}
具体例
\end{exampleblock}
\begin{alertblock}{警告ブロック}
警告内容
\end{alertblock}
\end{frame}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment