Skip to content

Instantly share code, notes, and snippets.

@draftcode
Created August 21, 2013 13:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save draftcode/6294181 to your computer and use it in GitHub Desktop.
Save draftcode/6294181 to your computer and use it in GitHub Desktop.

こっから取ってきた。

http://www.tex.ac.uk/tex-archive/macros/latex/contrib/beamer/doc/beameruserguide.pdf

Basic

\frame{\tableofcontents}

\section{Something}

\frame{\tableofcontents[currentsection]}

\frame {
  \frametitle{frametitle}
  \framesubtitle{framesubtitle}
}

\begin{frame}{title}{subtitle}
\end{frame}

\begin{frame}
  \frametitle{frametitle}
  \framesubtitle{framesubtitle}
\end{frame}

概要

\frame {
  \begin{abstract}
    \begin{itemize}
      \item test
    \end{itemize}
  \end{abstract}
}

同じフレームをもう一度出す

\frame<1-2>[label=myframe] {
  \begin{itemize}
    \item<alert@1> First subject.
    \item<alert@2> Second subject.
    \item<alert@3> Third subject.
  \end{itemize}
}

\frame {
  Some stuff explaining more on the second matter.
}

\againframe<3>

定義リスト

\begin{description}
  \item[Lion] King of the savanna.
  \item[Tiger] King of the jangle.
\end{description}

テキストを目立たせる

\structure{Paragraph Heading.} Some text follows...
This is \structure{important}.

ブロック

\begin{block}{Definition}
  A \alert{set} consists of elements.
\end{block}
\begin{alertblock}{Wrong Theorem}
  $1=2$
\end{alertblock}
\begin{exampleblock}{Example}
  The set $\{1,2,3,5\}$ has four elements.
\end{exampleblock}
\begin{theorem}
\end{theorem}
\begin{definition}
\end{definition}
\begin{proof}
\end{proof}
\begin{example}
\end{example}

脚注

\footnote{text}

引用

\frame {
  \begin{verse}
    For a verse.
  \end{verse}
  \begin{quotation}
    For multi-paragraph quotations.
  \end{quotation}
  \begin{quote}
    For a single-paragraph quotation.
  \end{quote}
}

カラム分け

tcbで上揃え中央揃え下揃え

\begin{columns}[t]
  \begin{column}{5cm}
    Two\\lines.
  \end{column}
  \begin{column}{5cm}
    One line (but aligned).
  \end{column}
\end{columns}
\begin{columns}[t]
  \column{5cm}
  Two\\lines.
  \column{5cm}
  One line (but aligned).
\end{columns}

微妙なverbatim

\begin{frame}[fragile]
  \begin{semiverbatim}
    \alert<1->{std::cout << "AT\&T likes 100\% performance";}
  \end{semiverbatim}
\end{frame}

何段階かに分ける

Overlayってやつをつかう。ヘルプ見ろ。

\begin{frame}
  Normal Text
  \pause
  Normal Text
\end{frame}
\begin{frame}
  \only<1->{Normal Text}
  \only<2->{Normal Text}
\end{frame}
\begin{frame}
  \begin{itemize}
    \item<1-> One
    \item<2-> Two
  \end{itemize}
\end{frame}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment