Created
February 19, 2014 17:42
-
-
Save gadenbuie/9097278 to your computer and use it in GitHub Desktop.
A simple USF color pandoc-beamer template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Requires: pandoc -- http://johnmacfarlane.net/pandoc/ | |
# Usage: ./md2beamer.sh Content.md ==> Content.pdf (beamer presentation) | |
name=`echo $1 | cut -f1 -d'.'` | |
pandoc $1 -o $name.pdf -t beamer --template=usf_simple.beamer --latex-engine=xelatex --highlight-style=tango |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[xcolor=x11names, compress, $if(fontsize)$$fontsize$,$endif$$if(handout)$handout,$endif$$if(beamer)$ignorenonframetext,$endif$]{$documentclass$} | |
%% General document %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
\usepackage{graphicx} | |
\usepackage{tikz} | |
\usetikzlibrary{decorations.fractals} | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
%% Beamer Layout %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
%%% USF Colors %%% | |
\definecolor{USFgreen}{RGB}{0,103,71} %USF Official Dark Green | |
\definecolor{USFgold}{RGB}{207,196,147} %USF Official Gold | |
\definecolor{USFseaglass}{RGB}{128,176,166} %USF Subdued Green/blue | |
\definecolor{USFtealgreen}{RGB}{0,147,116} %USF Lighter teal green | |
\definecolor{USFsilvergray}{RGB}{126,150,160} %USF Medium gray | |
\definecolor{USFslate}{RGB}{70,96,105} %USF Dark blue/gray | |
\definecolor{USFrhubarb}{RGB}{187,24,71} %USF brighter red | |
\definecolor{USFsky}{RGB}{41,175,206} %USF lighter blue | |
\definecolor{USFstorm}{RGB}{0,100,132} %USF Darker blue | |
\definecolor{USFpitaya}{RGB}{214,0,128} %USF classy pink | |
\definecolor{USFespresso}{RGB}{116,59,25} %USF brown | |
\definecolor{USFgrape}{RGB}{111,38,135} %USF purple | |
\definecolor{gDarkBlue}{RGB}{49,79,103} %my own Dark Blue color | |
%\usefonttheme[onlysmall]{structurebold} | |
\usepackage{arev} | |
%\usepackage{arevmath} | |
\usepackage[T1]{fontenc} | |
\usepackage{fourier} | |
% Palentino also looks great (but less readable for slide) | |
% Comment out above and use below if you want palatino | |
%\usefonttheme{serif} | |
%\usepackage{palatino} | |
\useinnertheme{default} | |
%% FONTS %% | |
\setbeamerfont{title like}{series=\bfseries} | |
%\setbeamerfont{frametitle}{shape=\itshape} | |
\setbeamertemplate{navigation symbols}{} | |
\setbeamercolor*{normal text}{fg=black,bg=white} | |
\setbeamercolor*{alerted text}{fg=USFrhubarb} | |
\setbeamercolor*{example text}{fg=black} | |
\setbeamercolor*{structure}{fg=black} | |
\setbeamercolor{frametitle}{fg=white, bg=USFgreen} | |
\setbeamercolor{titlelike}{fg=gDarkBlue, bg=USFgold!20} | |
% head/foot colors | |
\setbeamercolor*{lower separation line head}{bg=USFgold} | |
\setbeamercolor{footlinecolor}{fg=USFslate!50} | |
\setbeamercolor{section in head/foot}{bg=USFgreen, fg=USFgold} | |
% Block colors | |
\setbeamercolor{block title example}{bg=gDarkBlue, fg=white} | |
\setbeamercolor{block body example}{bg=gDarkBlue!20, fg=black} | |
\setbeamercolor{block title}{bg=USFgreen, fg=white} | |
\setbeamercolor{block body}{bg=USFgreen!10, fg=black} | |
\setbeamertemplate{frametitle} | |
{ | |
\nointerlineskip | |
\begin{beamercolorbox}[sep=0.3cm,ht=1.8em,wd=\paperwidth]{frametitle} | |
\vbox{}\vskip-2ex% | |
\strut\insertframetitle\strut | |
\vskip-0.8ex% | |
\end{beamercolorbox} | |
} | |
\setbeamertemplate{footline}{% | |
\begin{beamercolorbox}{footlinecolor} | |
\vskip2pt% | |
\makebox[0pt][l]{\,\insertshortauthor}% | |
\hspace*{\fill}\insertshorttitle\hspace*{\fill}% | |
\llap{\insertpagenumber\,/\,\insertpresentationendpage\,} | |
\end{beamercolorbox} | |
} | |
\setbeamercolor*{palette tertiary}{fg=black,bg=black!10} | |
\setbeamercolor*{palette quaternary}{fg=black,bg=black!10} | |
%% -- Hyperlink Colors -- %% | |
\usepackage{hyperref} | |
\hypersetup{colorlinks = true, | |
urlcolor=USFrhubarb, | |
linkcolor=gDarkBlue, | |
pdfborder={0 0 0}} | |
\urlstyle{same} % don't use monospace font for urls | |
%% ----- %% | |
\renewcommand{\(}{\begin{columns}} | |
\renewcommand{\)}{\end{columns}} | |
\newcommand{\<}[1]{\begin{column}{#1}} | |
\renewcommand{\>}{\end{column}} | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
\usepackage{amssymb,amsmath} | |
\usepackage{ifxetex,ifluatex} | |
\usepackage{fixltx2e} % provides \textsubscript | |
\ifxetex | |
\usepackage{fontspec,xltxtra,xunicode} | |
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase} | |
\setmonofont{Inconsolata} | |
\else | |
\ifluatex | |
\usepackage{fontspec} | |
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase} | |
\else | |
\usepackage[utf8]{inputenc} | |
\fi | |
\fi | |
$if(natbib)$ | |
\usepackage{natbib} | |
\bibliographystyle{plainnat} | |
$endif$ | |
$if(biblatex)$ | |
\usepackage{biblatex} | |
$if(biblio-files)$ | |
\bibliography{$biblio-files$} | |
$endif$ | |
$endif$ | |
$if(listings)$ | |
\usepackage{listings} | |
$endif$ | |
$if(lhs)$ | |
\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{} | |
$endif$ | |
$if(highlighting-macros)$ | |
$highlighting-macros$ | |
$endif$ | |
$if(verbatim-in-note)$ | |
\usepackage{fancyvrb} | |
$endif$ | |
$if(tables)$ | |
\usepackage{longtable} | |
% These lines are needed to make table captions work with longtable: | |
\makeatletter | |
\def\fnum@table{\tablename~\thetable} | |
\makeatother | |
$endif$ | |
%$if(url)$ | |
%\usepackage{url} | |
%$endif$ | |
$if(graphics)$ | |
\usepackage{graphicx} | |
\makeatletter | |
\def\ScaleIfNeeded{% | |
\ifdim\Gin@nat@width>\linewidth | |
\linewidth | |
\else | |
\Gin@nat@width | |
\fi | |
} | |
\makeatother | |
\let\Oldincludegraphics\includegraphics | |
\renewcommand{\includegraphics}[2][]{\Oldincludegraphics[width=\ScaleIfNeeded]{#2}} | |
$endif$ | |
% Comment these out if you don't want a slide with just the | |
% part/section/subsection/subsubsection title: | |
\AtBeginPart{ | |
\let\insertpartnumber\relax | |
\let\partname\relax | |
\frame{\partpage} | |
} | |
\AtBeginSection{ | |
\let\insertsectionnumber\relax | |
\let\sectionname\relax | |
\frame{\sectionpage} | |
} | |
\AtBeginSubsection{ | |
\let\insertsubsectionnumber\relax | |
\let\subsectionname\relax | |
\frame{\subsectionpage} | |
} | |
$if(strikeout)$ | |
\usepackage[normalem]{ulem} | |
% avoid problems with \sout in headers with hyperref: | |
\pdfstringdefDisableCommands{\renewcommand{\sout}{}} | |
$endif$ | |
\setlength{\parindent}{0pt} | |
\setlength{\parskip}{6pt plus 2pt minus 1pt} | |
\setlength{\emergencystretch}{3em} % prevent overfull lines | |
$if(numbersections)$ | |
$else$ | |
\setcounter{secnumdepth}{0} | |
$endif$ | |
$if(verbatim-in-note)$ | |
\VerbatimFootnotes % allows verbatim text in footnotes | |
$endif$ | |
$if(lang)$ | |
\usepackage[$lang$]{babel} | |
$endif$ | |
$for(header-includes)$ | |
$header-includes$ | |
$endfor$ | |
$if(title)$ | |
\title{$title$} | |
$endif$ | |
$if(author)$ | |
\author{$for(author)$$author$$sep$ \and $endfor$} | |
$endif$ | |
$if(date)$ | |
\date{$date$} | |
$endif$ | |
\begin{document} | |
$if(title)$ | |
\begin{frame} | |
\titlepage | |
\end{frame} | |
$endif$ | |
$for(include-before)$ | |
$include-before$ | |
$endfor$ | |
$if(toc)$ | |
\begin{frame} | |
\tableofcontents[hideallsubsections] | |
\end{frame} | |
$endif$ | |
$body$ | |
$if(natbib)$ | |
$if(biblio-files)$ | |
$if(biblio-title)$ | |
$if(book-class)$ | |
\renewcommand\bibname{$biblio-title$} | |
$else$ | |
\renewcommand\refname{$biblio-title$} | |
$endif$ | |
$endif$ | |
\bibliography{$biblio-files$} | |
$endif$ | |
$endif$ | |
$if(biblatex)$ | |
\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$ | |
$endif$ | |
$for(include-after)$ | |
$include-after$ | |
$endfor$ | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment