Permalink
Browse files

Add snippets for animated itemize.

Add snippets for frames with subsection.
Add template beamer file.
  • Loading branch information...
1 parent a0d5c39 commit 94e4d7e643d651e1c9646f0d2515924866cf9f8e @smirik committed Feb 20, 2012
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>\begin{itemize}[&lt;+-&gt;]
+ \item $0
+\end{itemize}</string>
+ <key>name</key>
+ <string>Animated itemize</string>
+ <key>scope</key>
+ <string>text.tex</string>
+ <key>tabTrigger</key>
+ <string>aitemize</string>
+ <key>uuid</key>
+ <string>E91DD8CD-476F-4823-9FE7-DA77B4566B81</string>
+</dict>
+</plist>
@@ -4,13 +4,17 @@
<dict>
<key>content</key>
<string>\scriptsize{
-\begin{lstlisting}[language=$3,basicstyle=\footnotesize,label=$2,caption=$1]
+\begin{lstlisting}[language=$1,basicstyle=\footnotesize,label=$2,caption=$3]
$0
\end{lstlisting}
}
</string>
<key>name</key>
<string>Code listing</string>
+ <key>scope</key>
+ <string>text.tex</string>
+ <key>tabTrigger</key>
+ <string>code</string>
<key>uuid</key>
<string>3F624800-9F76-42BE-AA3D-168E0A69ACBA</string>
</dict>
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>\begin{frame}[fragile]
+ \frametitle{$1}
+ \begin{itemize}[&lt;+-&gt;]
+ \item $0
+ \end{itemize}
+\end{frame}</string>
+ <key>name</key>
+ <string>Empty frame with animated itemize</string>
+ <key>scope</key>
+ <string>text.tex</string>
+ <key>tabTrigger</key>
+ <string>aframei</string>
+ <key>uuid</key>
+ <string>1A9136C5-03D4-4F59-989A-39676600B7EF</string>
+</dict>
+</plist>
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>\begin{frame}
+ \begin{center}
+ \Huge{$0}
+ \end{center}
+\end{frame}
+</string>
+ <key>name</key>
+ <string>Frame with 1 line</string>
+ <key>scope</key>
+ <string>text.tex</string>
+ <key>tabTrigger</key>
+ <string>frame1line</string>
+ <key>uuid</key>
+ <string>38ABF92B-65C4-4395-BAAC-1ABE62CB234D</string>
+</dict>
+</plist>
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>\begin{frame}
+ \begin{center}
+ \Huge{$1}
+ \end{center}
+ \begin{center}
+ \Large{$0}
+ \end{center}
+\end{frame}
+</string>
+ <key>name</key>
+ <string>Frame with 2 lines</string>
+ <key>scope</key>
+ <string>text.tex</string>
+ <key>tabTrigger</key>
+ <string>frame2line</string>
+ <key>uuid</key>
+ <string>A2412B88-8ED2-485C-84F8-D4A050EACB7D</string>
+</dict>
+</plist>
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>\subsection{$1}
+\begin{frame}
+ \begin{center}
+ \Huge{$2}
+ \end{center}
+ \begin{center}
+ \Large{$0}
+ \end{center}
+\end{frame}
+</string>
+ <key>name</key>
+ <string>Subsection Frame with 2 lines</string>
+ <key>scope</key>
+ <string>text.tex</string>
+ <key>tabTrigger</key>
+ <string>sframe2line</string>
+ <key>uuid</key>
+ <string>F5FF416E-3495-443B-82FA-B524BAE25ADE</string>
+</dict>
+</plist>
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>\subsection{$1}
+\begin{frame}[fragile]
+ \frametitle{$2}
+ \begin{itemize}
+ \item $0
+ \end{itemize}
+\end{frame}</string>
+ <key>name</key>
+ <string>Subsection empty frame with itemize</string>
+ <key>scope</key>
+ <string>text.tex</string>
+ <key>tabTrigger</key>
+ <string>sframei</string>
+ <key>uuid</key>
+ <string>9E35A231-A106-482E-B692-AC71E6138C7A</string>
+</dict>
+</plist>
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>\subsection{$1}
+\begin{frame}[fragile]
+ \frametitle{$0}
+\end{frame}</string>
+ <key>name</key>
+ <string>Subsection empty frame</string>
+ <key>scope</key>
+ <string>text.tex</string>
+ <key>tabTrigger</key>
+ <string>sframe</string>
+ <key>uuid</key>
+ <string>5BAC3AD8-F3A3-4057-97CE-1DF322E35A89</string>
+</dict>
+</plist>
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>\subsection{$1}
+\begin{frame}
+ \begin{center}
+ \Huge{$0}
+ \end{center}
+\end{frame}
+</string>
+ <key>name</key>
+ <string>Subsection frame with 1 line</string>
+ <key>scope</key>
+ <string>text.tex</string>
+ <key>tabTrigger</key>
+ <string>sframe1line</string>
+ <key>uuid</key>
+ <string>3DC5C096-E20B-4C41-96F9-D832BD241104</string>
+</dict>
+</plist>
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string> \begin{figure}
+ \centering
+ \begin{tikzpicture}[node distance=1cm, auto]
+ \tikzset{
+ action/.style={rectangle,draw=black, top color=white, bottom color=yellow!50,very thick, inner sep=0.25em, minimum size=0.6em, text centered},
+ input/.style={ellipse,draw=black, top color=white, bottom color=yellow!50,very thick, inner sep=0.25em, minimum size=0.6em, text centered},
+ condition/.style={diamond,draw=black, top color=white, bottom color=yellow!50,very thick, inner sep=0.25em, minimum size=0.6em, text centered},
+ myarrow/.style={draw},
+ }
+ \node[input] (item1) {Item1};
+ \node[condition, below=1em of item1] (item2) {Item2};
+
+ \path[myarrow] (item1) -- (item2);
+ \path[line] (item1) -- node [near end] {} (item2);
+
+ \end{tikzpicture}
+ \end{figure}
+</string>
+ <key>name</key>
+ <string>Tikz figure skelet</string>
+ <key>scope</key>
+ <string>text.tex</string>
+ <key>tabTrigger</key>
+ <string>tikz</string>
+ <key>uuid</key>
+ <string>A83D2672-705C-4280-B619-A096AF22FA40</string>
+</dict>
+</plist>
@@ -0,0 +1,113 @@
+\documentclass[compress,red]{beamer}
+\usepackage[utf8]{inputenc}
+\usepackage{ucs}
+\usepackage{amsmath}
+\usepackage{amsfonts}
+\usepackage{amssymb}
+\usepackage[%LANGUAGE%]{babel}
+\usepackage{graphicx}
+\usepackage{wrapfig}
+
+\usepackage{tikz}
+\usepackage{verbatim}
+
+\usepackage{color}
+\usepackage{xcolor}
+\usepackage{listings}
+
+\usepackage{caption}
+
+\lstset{
+language=ruby,
+extendedchars=\true,
+inputencoding=utf8x,
+commentstyle=\itshape,
+stringstyle=\bf,
+belowcaptionskip=5pt }
+
+\DeclareCaptionFont{white}{\color{white}}
+\DeclareCaptionFormat{listing}{\colorbox{gray}{\parbox{\textwidth}{#1#2#3}}}
+\captionsetup[lstlisting]{format=listing,labelfont=white,textfont=white}
+
+\usetikzlibrary{calc,trees,positioning,arrows,chains,shapes.geometric,%
+ decorations.pathreplacing,decorations.pathmorphing,shapes,%
+ matrix,shapes.symbols}
+
+\tikzset{
+>=stealth',
+ punktchain/.style={
+ rectangle,
+ rounded corners,
+ % fill=black!10,
+ draw=black, very thick,
+ text width=10em,
+ minimum height=3em,
+ text centered,
+ on chain},
+ line/.style={draw, thick, <-},
+ element/.style={
+ tape,
+ top color=white,
+ bottom color=blue!50!black!60!,
+ minimum width=8em,
+ draw=blue!40!black!90, very thick,
+ text width=10em,
+ minimum height=1.5em,
+ text centered,
+ on chain},
+ every join/.style={->, thick,shorten <=1pt},
+ decoration={brace},
+ tuborg/.style={decorate},
+ tubnode/.style={midway, right=2pt},
+}
+
+\mode<presentation>
+
+\usetheme{Warsaw}
+
+\definecolor{Red}{rgb}{1,0,0}
+\definecolor{Blue}{rgb}{0,0,1}
+\definecolor{Green}{rgb}{0,1,0}
+\definecolor{magenta}{rgb}{1,0,.6}
+\definecolor{lightblue}{rgb}{0,.5,1}
+\definecolor{lightpurple}{rgb}{.6,.4,1}
+\definecolor{gold}{rgb}{.6,.5,0}
+\definecolor{orange}{rgb}{1,0.4,0}
+\definecolor{hotpink}{rgb}{1,0,0.5}
+\definecolor{newcolor2}{rgb}{.5,.3,.5}
+\definecolor{newcolor}{rgb}{0,.3,1}
+\definecolor{newcolor3}{rgb}{1,0,.35}
+\definecolor{darkgreen1}{rgb}{0, .35, 0}
+\definecolor{darkgreen}{rgb}{0, .6, 0}
+\definecolor{darkred}{rgb}{.75,0,0}
+
+\xdefinecolor{olive}{cmyk}{0.64,0,0.95,0.4}
+\xdefinecolor{purpleish}{cmyk}{0.75,0.75,0,0}
+
+\useoutertheme[subsection=false]{smoothbars}
+
+\title{TITLE}
+\author{AUTHOR}
+
+%\usecolortheme{dolphin}
+
+\begin{document}
+\maketitle
+
+\section{}
+\subsection{}
+\begin{frame}[fragile]
+\frametitle{}
+ \begin{itemize}[<+->]
+ \item First
+ \item Second
+ \item Third
+ \end{itemize}
+ \begin{lstlisting}[label=ruby2_1,caption=Change vars]
+ c = a
+ a = b
+ b = c
+ \end{lstlisting}
+\end{frame}
+
+\end{document}
@@ -7,7 +7,7 @@
TM_YEAR=`date +%Y` \
TM_DATE=`date +%Y-%m-%d` \
perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' \
- &lt; beamer.tex &gt; "$TM_NEW_FILE"
+ &lt; beamer_in.tex &gt; "$TM_NEW_FILE"
fi</string>
<key>extension</key>
<string>tex</string>
Oops, something went wrong.

0 comments on commit 94e4d7e

Please sign in to comment.