Skip to content

Instantly share code, notes, and snippets.

@sky-y
Forked from anonymous/my-org-beamer.sty
Created May 19, 2013 02:23
Show Gist options
  • Save sky-y/5606426 to your computer and use it in GitHub Desktop.
Save sky-y/5606426 to your computer and use it in GitHub Desktop.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% my-org-beamer.sty
%% 13.05.19 Yuki Fujiwara
%%
%% 使い方:このファイルをBeamer(.tex)ファイルと一緒に置き
%% プリアンブルで以下を指定
%% \usepackage{my-org-beamer}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 文字化けを防ぐおまじない
\AtBeginDvi{\special{pdf:tounicode EUC-UCS2}}
%% テーマ
\usetheme{Singapore}
%\usetheme{Warsaw}
%\usetheme{Antibes}
%\usetheme{KeynoteLikeGradient}
%% navi. symbolsは目立たないが,dvipdfmxを使うと機能しないので非表示に
\useoutertheme{default}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{blocks}[shadow=true,rounded]
% \setbeamercolor{structure}{fg=blue!60!black}
% \setbeamercolor{alerted text}{fg=red!80!black}
% フォントはお好みで
%\usepackage{pxfonts}
%\usepackage{bm} % pxfonts, txfontsの後に
%\mathversion{bold}
\renewcommand{\familydefault}{\sfdefault}
\renewcommand{\kanjifamilydefault}{\gtdefault}
\usefonttheme{structurebold}
\setbeamerfont{title}{size=\large,series=\bfseries}
\setbeamerfont{frametitle}{size=\large,series=\bfseries}
\setbeamertemplate{frametitle}[default][center]
%% 下のところを「ページ番号/全ページ数」*2
\setbeamertemplate{footline}{\hskip1mm\hbox{\insertpagenumber /\insertdocumentendpage }\hspace*{1mm}\vskip1mm}
\usefonttheme{professionalfonts}
%% 下のところを「日付<空白>ページ番号/全ページ数」*2
%\setbeamertemplate{footline}{\hskip1mm\insertshortdate\hfill\hbox{\insertpagenumber /\insertdocumentendpage }\hspace*{1mm}\vskip1mm}
%\usefonttheme{professionalfonts}
%% \sectionframe{セクション名} セクション区切りで大きく見出しを出すコマンド
%% \newsection{セクション名} 新しいセクションを作るとともに\sectionframeを実行
\newcommand{\sectionframe}[1]{\frame{\begin{center}{\Large #1 }\end{center}}}
\newcommand{\newsection}[1]{\section{#1}\sectionframe{#1}}
%% コマンド定義
%% ベクトル系の文字が多めです
\newcommand{\mb}[1]{\mathbf{#1}}
\newcommand{\mr}[1]{\mathrm{#1}}
\newcommand{\mbx}{\mathbf{x}}
\newcommand{\bx}{\mbx}
\newcommand{\mbX}{\mathbf{X}}
\newcommand{\bX}{\mbX}
\newcommand{\mby}{\mathbf{y}}
\newcommand{\by}{\mby}
\newcommand{\mbz}{\mathbf{z}}
\newcommand{\bz}{\mbz}
\newcommand{\mbZ}{\mathbf{Z}}
\newcommand{\bZ}{\mbZ}
\newcommand{\mba}{\mathbf{a}}
\newcommand{\ba}{\mba}
\newcommand{\mbk}{\mathbf{k}}
\newcommand{\bk}{\mbk}
\newcommand{\mbw}{\mathbf{w}}
\newcommand{\bw}{\mbw}
\newcommand{\mbt}{\mathbf{t}}
\newcommand{\bt}{\mbt}
\newcommand{\mbm}{\mathbf{m}}
\newcommand{\bm}{\mbm}
\newcommand{\mbS}{\mathbf{S}}
\newcommand{\bS}{\mbS}
\newcommand{\mbK}{\mathbf{K}}
\newcommand{\bK}{\mbK}
\newcommand{\bPhi}{\mathbf{\Phi}}
\newcommand{\bphi}{\mathbf{\phi}}
\newcommand{\sft}{\boldsymbol{\mathsf{t}}}
\newcommand{\sfx}{\boldsymbol{\mathsf{x}}}
\newcommand{\rmd}{\mathrm{d}}
\newcommand{\ngauss}{\mathcal{N}} % 正規分布
\newcommand{\uniform}{\mathrm{U}} % 一様分布
\newcommand{\E}{\mathbb{E}}
\newcommand{\D}{\mathcal{D}}
\newcommand{\T}{\mathrm{T}}
\newcommand{\cov}{\mathrm{cov}}
\newcommand{\pnl}{\varphi(n,\ell)}
\newcommand{\phihat}{\hat{\varphi}}
\newcommand{\pnlhat}{\hat{\varphi}(n,\ell)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment