Beamerテンプレート (16:9)

# サンプル
![qiita2-1.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/436198/0b7a7cdc-abb1-e6c8-f2eb-5e85c4a31e2c.png)
![qiita2-2.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/436198/005e5100-1c5a-8d74-308c-04a37f6f75db.png)
![qiita2-3.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/436198/f7dccfa0-e307-e895-569c-4517dd62e058.png)
![qiita2-4.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/436198/1e85cce8-9379-5742-5819-9178f800c238.png)
![qiita2-5.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/436198/42e35000-a3ee-9078-98a7-a3b8c9264ba6.png)
![qiita2-6.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/436198/86e70c7b-dbd2-5c3c-0778-a271a7b6ed1f.png)


# コード

```
\documentclass[notes,11pt,aspectratio=169,dvipdfmx]{beamer}

% packages
  \usepackage{amsmath}
  \usepackage{hyperref}
  \hypersetup{
    colorlinks=true,linkcolor=blue
    }

% font
  \usepackage[T1]{fontenc}
  \usepackage[default]{lato}
  \usepackage[scaled=0.95]{newtxsf}
  \renewcommand{\kanjifamilydefault}{\gtdefault}

% avoid errors
  \usepackage{silence}
  \WarningFilter{latexfont}{Some font shapes}
  \WarningFilter{latexfont}{Font shape}
  \usepackage{fix-cm}

% color
  \definecolor{MyBackground}{RGB}{255,253,218}
  \definecolor{blue}{RGB}{18,161,232}
  \definecolor{red}{RGB}{232,18,54}
  \definecolor{yellow}{RGB}{232,196,18}
  \definecolor{green}{RGB}{0,158,115}

% wide itemize
  \newenvironment{wideitemize}{\itemize\addtolength{\itemsep}{10pt}}{\enditemize}

% transition flame
  \newenvironment{transitionframe}{
    \setbeamercolor{background canvas}{bg=yellow!70}
    \begin{frame}}{
      \end{frame}
  }
  \newcommand{\transition}[1]{
    \begin{transitionframe}
      \begin{center}
      { \Huge \textcolor{black}{\textbf{#1}}}
      \end{center}
    \end{transitionframe}
  }
  \newcommand{\tsection}[1]{\section{#1}\transition{#1}}

% slide setup
  \setbeamercolor{frametitle}{fg=blue}
  \setbeamercolor{title}{fg=black}
  \setbeamertemplate{footline}[frame number]
  \setbeamertemplate{navigation symbols}{}
  \setbeamertemplate{itemize items}{\rule[0.25ex]{1ex}{1ex}}
  \setbeamertemplate{itemize subitem}{$\bullet$}
  \setbeamercolor{itemize item}{fg=blue}
  \setbeamercolor{itemize subitem}{fg=blue}
  \setbeamercolor{enumerate item}{fg=blue}
  \setbeamercolor{enumerate subitem}{fg=blue}
  \setbeamercolor{button}{bg=MyBackground,fg=blue}
  \setbeamercolor{title}{fg=blue}
  \setbeamerfont{title}{size=\LARGE}
  \setbeamerfont{block title}{series=,size=}
  \setbeamerfont{block body}{series=,size=}
  \setbeamercolor{block title}{bg=blue,fg=white}
  \setbeamercolor{block body}{bg=blue!20,fg=black}
  \setbeamerfont{itemize/enumerate body}{size=\normalsize}
  \setbeamerfont{itemize/enumerate subbody}{size=\normalsize}
  \setbeamerfont{itemize/enumerate subsubbody}{size=\small}

\title{title}
\author{author}
\institute{institute}
\date{\today}

\begin{document}
\begin{frame}
  \maketitle
  \centering \emph{keywords:} keyword，キーワード，16:9
\end{frame}

\begin{frame}{}
  \tableofcontents
\end{frame}



\tsection{Transition frame}

  \begin{frame}{frame title}
    \textbackslash\{wideitemize\}
    \begin{wideitemize}
      \item This is wideitemize.
      \item This is wideitemize.
    \end{wideitemize}

    \textbackslash\{itemize\}
    \begin{itemize}
      \item This is itemize.
      \item This is itemize.
    \end{itemize}

    \begin{block}{主張}
      wideitemizeのほうが行間が取れて読みやすく，スライド文字数削減効果がある．
    \end{block}

    \begin{wideitemize}
      \item Hello
      \begin{wideitemize}
        \item world!
      \end{wideitemize}
    \end{wideitemize}
  \end{frame}


\tsection{font}

  \begin{frame}{font}
    \begin{wideitemize}
      \item English: Lato
      \item Math: newtxsf
      \item 日本語: デフォルトのゴシック体
    \end{wideitemize}

    \begin{align*}
      f(x) = x
    \end{align*}
  \end{frame}



\end{document}
```

# 備考
PDFを画像ファイルに変換したら，なぜかゴシック体が明朝体になってしまった．このコードを使えばゴシック体で出力できるのは間違いないので安心してください．

\decumentclass[SOMETHING]{beamer} の ``SOMETHING'' を変えれば UpLaTeX や PdfLaTeX で使えます．

# 参考
https://paulgp.github.io/beamer_tips.html