LoginSignup
10
11

More than 5 years have passed since last update.

LaTeX のBeamerテンプレート

Last updated at Posted at 2016-09-01

LaTeX でのスライド作成

 プレゼンのスライド作成といえば,

  • PowePoint
  • Keynote

あたりが定番でしょうが,数学系はLaTeX一択です(まれにPowerPointの方もいらっしゃいますが).私は学部が数学科だったので,もちろんLaTeXで作ったスライドで発表していました.
 ただ,LaTeXでスライドを作るときはBeamerクラスで作るのが普通ですが,正直なところ見た目がショボいです.そこで,私が学部生の頃にスライドの見た目をいろいろ弄って作成したテンプレートを紹介したいと思います.

Beamerについて

Beamerに関する基本的なことは Beamerによるプレゼンテーション作成Tutorial 等で詳しく説明していただいていますので,そちらを御参照下さい.

スライド設定

 以下で出てくるソースファイルは github にアップしてあります.

スライド背景

ライブラリ

package
\usepackage{tcolorbox}
\tcbuselibrary{raster,skins}
\usepackage{varwidth}
\usepackage{tikz}

スライド設定

スライド上下から中央にかけてシアン→白のグラデーションをかけてあります.

スライド設定
\usetheme{Singapore}
\AtBeginShipoutFirst{\special{pdf:tounicode EUC-UCS2}}
\usepackage{minijs}
\ifnum 42146=\euc"A4A2 \AtBeginDvi{\special{pdf:tounicode EUC-UCS2}}\else
\AtBeginDvi{\special{pdf:tounicode 90ms-RKSJ-UCS2}}\fi
\renewcommand{\kanjifamilydefault}{\gtdefault}
\usefonttheme{professionalfonts}
\setbeamertemplate{navigation symbols}{}
\AtBeginSection[]{
    \frame{\tableofcontents[currentsection, hideallsubsections]} %目次スライド
}


% 色定義
\definecolor{mstruct}{RGB}{68, 174, 234} 
% \definecolor{malert}{RGB}{223, 153, 155}
\definecolor{malert}{RGB}{255, 76, 0}
\definecolor{mex}{RGB}{57, 149, 82}
% 見出しカラー
\setbeamercolor{structure}{fg=mstruct}
% block title color
\setbeamercolor{block title}{fg=bstruct}
% alert color
\setbeamercolor{alerted text}{fg=malert}
% 箇条書き
\useinnertheme{circles}
% フッダー
\setbeamertemplate{footline}[frame number]

囲み枠

Box
% Theorem Box
\newtcolorbox{tblock}[1]{
    enhanced, skin=enhancedlast jigsaw,
    attach boxed title to top left={xshift=-4mm,yshift=-0.5mm},
    colbacktitle=mstruct, colframe=mstruct,
    interior style={top color=mstruct!10!white, bottom color=white},
    boxed title style={empty,arc=0pt,outer arc=0pt,boxrule=0pt},
    underlay boxed title={
        \fill[mstruct] (title.north west) -- (title.north east)
        -- +(\tcboxedtitleheight-1mm,-\tcboxedtitleheight+1mm)
        -- ([xshift=4mm,yshift=0.5mm]frame.north east) -- +(0mm,-1mm)
        -- (title.south west) -- cycle;
        \fill[mstruct!45!white!50!black] ([yshift=-0.5mm]frame.north west)
        -- +(-0.4,0) -- +(0,-0.3) -- cycle;
        \fill[mstruct!45!white!50!black] ([yshift=-0.5mm]frame.north east)
        -- +(0,-0.3) -- +(0.4,0) -- cycle; 
    },
    title=#1
}
% Definition Box
\newtcolorbox{dblock}[1]{enhanced, skin=enhancedlast jigsaw,
    attach boxed title to top left={xshift=-4mm,yshift=-0.5mm},
    colbacktitle=malert, colframe=malert,
    interior style={top color=malert!10!white, bottom color=white},
    boxed title style={empty,arc=0pt,outer arc=0pt,boxrule=0pt},
    underlay boxed title={
        \fill[malert] (title.north west) -- (title.north east)
        -- +(\tcboxedtitleheight-1mm,-\tcboxedtitleheight+1mm)
        -- ([xshift=4mm,yshift=0.5mm]frame.north east) -- +(0mm,-1mm)
        -- (title.south west) -- cycle;
        \fill[malert!45!white!50!black] ([yshift=-0.5mm]frame.north west)
        -- +(-0.4,0) -- +(0,-0.3) -- cycle;
        \fill[malert!45!white!50!black] ([yshift=-0.5mm]frame.north east)
        -- +(0,-0.3) -- +(0.4,0) -- cycle; 
    },
    title=#1
}
% subbox
\newtcolorbox{subbox}[1]{
    empty,
    coltitle=mstruct, fonttitle=\bfseries,
    borderline horizontal={0.5mm}{0pt}{mstruct},
    title=#1
    titlerule style={
        mstruct,
        arrows={Hooks[arc=270]-Hooks[arc=270]}
    }
}

囲み枠の中で,見出しを設定できるようにしてあります:

囲み枠内での見出し
\begin{dblock}{title}
    \tcbsubtitle{subtitle} % 見出し
    documents
\end{dblock}

最後に

学会で,「あの人のスライド,ちょっとおしゃれ」って言ってもらえるように頑張りましょうw

10
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
11