\documentclass{beamer}

\usepackage{tikz}
\usepackage{graphicx}
\usetikzlibrary{decorations.text}

\begin{document}
\begin{frame}
  \frametitle{Donut and Pictures}
  \begin{figure}[h]
    \centering
    \begin{tikzpicture}
      \newcommand*{\myInnerRadius}{1cm}%
      \newcommand*{\myOuterRadius}{3cm}%
      \newcommand*{\myMidRadius}{2cm}%

      % three segments in donut
      \filldraw[fill=blue!30, draw=blue!50] (30:\myInnerRadius) -- (30:\myOuterRadius) arc (30:150:\myOuterRadius) -- (150:\myInnerRadius) arc (150:30:\myInnerRadius);
      \filldraw[fill=red!30, draw=red!50] (30:\myInnerRadius) -- (30:\myOuterRadius) arc (30:-90:\myOuterRadius) -- (-90:\myInnerRadius) arc (-90:30:\myInnerRadius);
      \filldraw[fill=green!30, draw=green!50] (150:\myInnerRadius) -- (150:\myOuterRadius) arc (150:270:\myOuterRadius) -- (270:\myInnerRadius) arc (270:150:\myInnerRadius);

      % text around the donut
	    \path[decoration={text along path, text={Random Text}, text align={align=center}, raise=1ex}, decorate] (150:\myOuterRadius) arc (150:30:\myOuterRadius); 
  	  \path[decoration={text along path, text={Another Text}, text align={align=center}, raise=1ex}, decorate] (30:\myOuterRadius) arc (30:-90:\myOuterRadius); 
    	\path[decoration={text along path, text={Last Random Text}, text align={align=center}, raise=1ex}, decorate] (270:\myOuterRadius) arc (270:150:\myOuterRadius); 

      % image
      \node (G1) at (0:0cm) {\includegraphics[height=15mm]{Figs/youtube.png}};
      \node (G2) at (90:\myMidRadius) {\includegraphics[height=15mm]{Figs/12.png}};
      \node (G3) at (-30:\myMidRadius) {\includegraphics[height=15mm]{Figs/6.png}};
      \node (G4) at (210:\myMidRadius) {\includegraphics[height=15mm]{Figs/linkedin.png}};
    \end{tikzpicture}
  \end{figure}
\end{frame}
\end{document}
Comments Off on Donut and Pictures

Candara

Myriad

Comic Sans MS

Document Source Code

\documentclass[12pt,table]{beamer}
 
\usepackage{hyperref}
 
% For fancy math
\usepackage{amsmath}
 
% color theme
\usetheme{psu}
\usecolortheme[RGB={0,38,93}]{structure}
\def\softness{0.4}
\definecolor{softblue}{rgb}{\softness,\softness,1}
\renewcommand{\emph}[1]{\textit{\textcolor{softblue}{#1}}}
\definecolor{darkgreen}{rgb}{0.2, 0.7, 0.5}
\newcommand{\paper}[1]{\textit{\textcolor{darkgreen}{#1}}}
% For fancy footnotes
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
 
% For fancy fonts
\usepackage{mathspec}
\usepackage{fontspec}
\defaultfontfeatures{Scale=MatchLowercase} 
\setmainfont[Mapping=tex-text]{Hoefler Text}
%\setsansfont[Mapping=tex-text]{Candara}
\setsansfont[Mapping=tex-text]{Myriad Pro}
%\setsansfont[Mapping=tex-text]{Comic Sans MS}
%\setmonofont{Courier}
\setmonofont{Monaco}
 
% For fancy picture
\usepackage{tikz}
 
%\usepackage{preamble}
\usepackage{xspace}
\newcommand{\LLL}{Lov\'asz Local Lemma\xspace}
\begin{document}
 
\title{A Constructive Proof of the Lov\'asz Local Lemma}
\subtitle{Robin Moser, STOC 2009}
\author{Youngtae Youn}
\institute{CSE Dept. Penn State}
\date{September 28, 2009}
 
%%%
\begin{frame}
  \frametitle{\LLL: Lov\'asz and Erd\H{o}s in 1975}
  \begin{itemize}
  \item What if bad events are \alert{not} independent? 
    \begin{itemize}
    \item Bad events are \emph{mostly} independent from one
      another.
    \item Bad event are \alert{not} individually too likely to occur.
    \end{itemize}
    Still, $\Pr[\text{none of the bad events will occur}] > 0$.
  \end{itemize}
 
  \begin{block}{\LLL (Symmetric Case)}
    \begin{enumerate}
    \item $\Pr[bad_i] \leq \emph{p}$ for all $1 \leq i \leq n$.     
    \item Each $bad_i$ depends on other \emph{$d$} bad events.
    \item $e\cdot p\cdot (d+1) \leq 1$ where $\emph{e}=2.7182\cdots$
    \end{enumerate}
    \vspace{-4mm}
    \begin{center}
      Then, $\Pr[\text{none of the bad events will occur}] > 0$.
    \end{center}
  \end{block}
 
  \begin{itemize}
  \item dictionary definition of \emph{local}: affecting or limited to
    part of a whole.
  \item The bound in (3) is \alert{tight}.    
  \item We will prove for the \emph{loose} bound $4pd\leq 1$.
  \end{itemize}
\end{frame}
 
\end{document}

How to convert PDF into PNG

convert -density 600x600 -resize 800x600 -quality 90 myriad.pdf myriad.png
  • -density 600x600 treats the pdf as 600×600 dpi resolution
  • -resize 800x600 gives the dimensions in pixels of the resulting png file
  • -quality 90 uses the highest compression level for png (9) and no filtering (0)
Comments Off on XeLaTeX: font comparison