LaTeX-Beamer
Last updated: 21st June 2016
発表時のコマンド
pdf_presenter_console
$ pdf_presenter_console hoge.pdf
pdfcube
$ pdfcube huga.pdf
c: 次のスライド with effect
a: 前のスライド with effect
http://manned.org/pdfcube/513817c0
スライドデザイン
発表スライド
http://www.ucl.ac.uk/~ucbpeal/latexposter.html
http://www.shawnlankton.com/2008/02/beamer-and-latex-with-keynote-theme/
ポスター
http://www.brian-amberg.de/uni/poster/
https://github.com/deselaers/latex-beamerposter
テンプレート
http://www.texample.net/tikz/examples/spherical-polar-pots-with-3dplot/
http://www.texample.net/tikz/examples/map-projections/
http://www.texample.net/tikz/examples/boxes-with-text-and-math/
http://www.texample.net/tikz/examples/beamer-arrows/
http://www.texample.net/tikz/examples/parabola-plot/
背景画像
http://subtlepatterns.com/thumbnail-view/
スライドの基本
\begin{frame}[t]{Title}
\begin{itemize}
\item This is a beamer slide!
\end{itemize}
\end{frame}
自分用 Beamer テンプレートスライド
スライドタイトル+箇条書き
\begin{frame}{Slide Title}
\centering
\begin{itemize}
\item list 1
\item list 2
\item list 3...
\end{itemize}
\end{frame}
スライドタイトル+表1つ
\begin{frame}{Slide Title}
\centering
\begin{tabular}{c|l}
Name & Descriptions \\ \hline
A & A is ... \\ [2mm]
B & B is ... \\ [2mm]
C & C is ... \\ [2mm]
D & D is ... \\ [2mm]
E & E is ...
\end{tabular}
\end{frame}
スライドタイトル+図1枚
\begin{frame}{Slide Title}
\centering
\includegraphics[width=80mm]{picture/figure.pdf}
\end{frame}
スライドタイトル+図2枚(横並び)
\begin{frame}{Slide Title}
\begin{columns}[t]
\column{0.5\textwidth} % 横幅はスライドの半分
\includegraphics[width=40mm]{picture/figure.pdf}
\column{0.5\textwidth} % 横幅はスライドの半分
\includegraphics[width=40mm]{picture/figure.pdf}
\end{columns}
\end{frame}
スライドタイトル+図(スライド左半分)+箇条書き(スライド右半分)
\begin{frame}{Slide Title}
\begin{columns}[t]
\column{0.5\textwidth} % 横幅はスライドの半分
\includegraphics[width=40mm]{picture/figure.pdf}
\column{0.5\textwidth} % 横幅はスライドの半分
\begin{itemize}
\item list section
\end{itemize}
\end{columns}
\end{frame}
PGF
公式マニュアル
http://mixing.coas.oregonstate.edu/links/latex_files/pgfuserguide.pdf
ftp://ftp.riken.go.jp/pub/tex-archive/graphics/pgf/base/doc/pgfmanual.pdf
図の挿入
\begin{pgfpicture}{0.0mm}{0.0mm}{40.0mm}{50.0mm}
\pgfputat{\pgfxy(-1.0,0.2)}{\pgfimage[height=50.0mm]{picture/hoge}}
\end{pgfpicture}
文字の挿入
\pgfputat{\pgfxy(-5.55,4.9)}{\pgfbox[left,base]{\textcolor{black}{\bf HOGE}}}
矢印の挿入
\pgfsetendarrow{\pgfarrowtriangle{5pt}}
\pgfline{\pgfxy(1.2,4.3)}{\pgfxy(2.2,4.3)}
色設定
red, green, blue, cyan, magenta, yellow, black, darkgray, gray, lightgray, orange, violet, purple, brown
自分で定義するには・・・
\definecolor{colourname}{rgb}{0.125,0.5,0.25} % darkgreen
図のアニメーション
プレアンブルで \usepackage{animate} を定義。
anime_X.png (X は数字) といったフォーマットで時系列の図を作成。
\animategraphics[autoplay,loop,width=50mm]{3}{anime_}{0}{35}
既存の図に文字や他の図を重ね打ち(重ね書き)する (overpic.sty)
[overpic.sty を使って図中に文字、図、表を入れ込む]
プレアンブルに以下を追記寄せる
\usepackage[abs]{overpic}
\setlength\unitlength{1mm} % 単位を指定する。
flame 内で以下のように記述
\begin{overpic}[width=35.0mm,grid]%
{pic.pdf}
\put(3.5,35.5){ここに文字をいれる}
\end{overpic}
文字を寄せる
\raggedright % 左寄せ
\raggedleft % 右寄せ
数式のフォント設定
http://www.inashiro.com/2011/02/11/latex-intro-6/
http://www.biwako.shiga-u.ac.jp/sensei/kumazawa/tex/sekib.html
http://hgshrs.blogspot.jp/2009/11/latex-beamer.html
数式のサイズ変更
プレアンブルにて定義する
\usepackage{relsize}
本文には以下のように書く
\relsize{-2}
\begin{equation}
A = \frac{-D_{\rm max}}{2} \left( \frac{1}{\lambda^2_x} + \frac{1}{\lambda^2_y} \right)
\end{equation}
http://www.biwako.shiga-u.ac.jp/sensei/kumazawa/tex/relsize.html
数式の説明
\underbrace{式}_{\text{説明}}
http://www.biwako.shiga-u.ac.jp/sensei/kumazawa/tex/web0028.html
Appendix のページを含めずにナンバリングする
プレアンブル
\newcommand{\backupbegin}{
\newcounter{framenumberappendix}
\setcounter{framenumberappendix}{\value{framenumber}}
}
\newcommand{\backupend}{
\addtocounter{framenumberappendix}{-\value{framenumber}}
\addtocounter{framenumber}{\value{framenumberappendix}}
}
あとは、以下のようにする
\appendix
\backupbegin
\begin{frame}{hoge}
huga
\end{frame}
\backupend
\end{document}
http://locs.bw.nitech.ac.jp/~kobayashi/fswiki/wiki.cgi?page=LaTeX-Beamer#p7
背景を透過する
\setbeamercolor{normal text}{bg=white!0}
タイトルページのみ背景を設定する
{
\usebackgroundtemplate{\includegraphics[width=\paperwidth]{picture/titlepage.jpg}}
\begin{frame}[plain]
\titlepage
\end{frame}
}
http://takitoshism.blogspot.jp/2011/09/tex.html
ポスターで日本語を使用する場合
前提: 以下を使用する
http://ayapin-film.sakura.ne.jp/LaTeX/slides.html
https://github.com/deselaers/latex-beamerposter
プレアンブル部で以下のように設定する
\documentclass[final,hyperref={pdfpagelabels=false},cjk,dvipdfmx]{beamer}
dvipdfmx を指定するのがポイントだと思う (2016/01/25 確認)
日本独自の色
http://www.biwako.shiga-u.ac.jp/sensei/kumazawa/tex/color.html
jpncolor.sty という名前で保存し,
\usepackage{jpncolor} を指定して呼び出すことが可能
参考URL
https://wiki.bath.ac.uk/display/latextricks/Change+the+colour+of+Beamer+slides
http://www.biwako.shiga-u.ac.jp/sensei/kumazawa/tex/overpic.html
http://www.texample.net/tikz/examples/
http://www.artofproblemsolving.com/Wiki/index.php/LaTeX:Symbols