From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- .../themes/beamerthemetamu/README.md | 67 ++++ .../sample/beamerthemetamu-refs.bib | 24 ++ .../beamerthemetamu/sample/beamerthemetamu.pdf | Bin 0 -> 177371 bytes .../beamerthemetamu/sample/beamerthemetamu.tex | 341 +++++++++++++++++++++ .../beamerthemetamu/theme/beamercolorthemetamu.sty | 46 +++ .../beamerthemetamu/theme/beamerinnerthemetamu.sty | 18 ++ .../beamerthemetamu/theme/beamerouterthemetamu.sty | 60 ++++ .../beamerthemetamu/theme/beamerthemetamu.sty | 37 +++ 8 files changed, 593 insertions(+) create mode 100644 macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/README.md create mode 100644 macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/sample/beamerthemetamu-refs.bib create mode 100644 macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/sample/beamerthemetamu.pdf create mode 100644 macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/sample/beamerthemetamu.tex create mode 100644 macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/theme/beamercolorthemetamu.sty create mode 100644 macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/theme/beamerinnerthemetamu.sty create mode 100644 macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/theme/beamerouterthemetamu.sty create mode 100644 macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/theme/beamerthemetamu.sty (limited to 'macros/latex/contrib/beamer-contrib/themes/beamerthemetamu') diff --git a/macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/README.md b/macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/README.md new file mode 100644 index 0000000000..f69490492d --- /dev/null +++ b/macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/README.md @@ -0,0 +1,67 @@ +beamerthemetamu v1.1 +==================== + +This is a beamer theme designed for use in Texas A&M University (TAMU). +It can be used to create slides with +[TAMU brand colors](http://brandguide.tamu.edu/colors.html). + +Note that this theme is NOT endorsed by the university. There is no +warranty implied. + +Dependencies: +------------- + +The template is based on beamer, so you should have beamer installed. + +Installation: +------------- + +If you are on Linux, and have obtained the theme via GitHub directly, you can +take advantage of the `Makefile` to install. Open a terminal and change to +the top directory of this package. Issue: + + make install + +Otherwise, you can directly copy the files in the `theme/` directory of this +package into your `$TEXMFHOME/tex/latex/beamerthemetamu/` directory, where +`$TEXMFHOME` stands for your personal texmf tree directory. As with TeX Live, +it defaults to `$HOME/texmf` under Unix. For Windows (Vista and newer), +it is `C:\Users\\texmf`. + +Notes to MikTeX/CTeX users: there is not a default directory equal to +`$TEXMFHOME`, but you can use an arbitrary directory as your personal texmf +tree. Just set it up with the help of this guide[1], once and for all. +Remember to refresh FNDB after a fresh new install of this theme. + +[1] http://tex.stackexchange.com/a/20121 + +After installation, you will get files such as +`$TEXMFHOME/tex/latex/beamerthemetamu/beamerthemetamu.sty`. + +How to use: +----------- + +You can use the sample file `beamerthemetamu.tex` to get started. Just +modify it (add your talk stuff) and then compile it using pdflatex or xelatex. +Note the sample file depends on the bib source file `beamerthemetamu-refs.bib`. +To output PDF file with correct citation info, you need to copy it along with +your tex file, or modify the tex file to use your own bib file, or just delete +all bib related stuff in the tex file. + +This theme can optionally show the university logo in the slides if you have +a file called `tamu-logo.pdf` in the same directory as the sample file, or some +other directory in the standard TeX search path. The university logo can be +downloaded at [TAMU website](http://brandguide.tamu.edu/logos-downloads.html). +Please refer to the page regarding the usage guideline of the university logo. + +License +------- + +Copyright 2017 Alick Zhao + + +Unless otherwise noted in individual files, this work may be distributed +and/or modified + +1. under the LaTeX Project Public License, version 1.3c or later, and/or +2. under the GNU Public License, version 2 or later. diff --git a/macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/sample/beamerthemetamu-refs.bib b/macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/sample/beamerthemetamu-refs.bib new file mode 100644 index 0000000000..18dd89b490 --- /dev/null +++ b/macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/sample/beamerthemetamu-refs.bib @@ -0,0 +1,24 @@ +% Copyright 2017 Alick Zhao +% +% This file may be distributed and/or modified +% +% 1. under the LaTeX Project Public License, version 1.3c or later, and/or +% 2. under the GNU Public License, version 2 or later. +% +% Last modified on: 2017-07-16 + +@MANUAL{beameruserguide, + author = {Till Tantau and Joseph Wright and Vedran Miletić}, + title = {{The Beamer Class User Guide for version 3.12}}, + year = {2011}, +} +@ARTICLE{shannon1948, + author = {Shannon, Claude E.}, + title = {A mathematical theory of communication}, + journal = {Bell System Technical Journal}, + year = {1948}, + volume = {27}, + pages = {379--423, 523--656}, + month = jul # " and " # oct, + url = {http://cm.bell-labs.com/cm/ms/what/shannonday/paper.html} +} diff --git a/macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/sample/beamerthemetamu.pdf b/macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/sample/beamerthemetamu.pdf new file mode 100644 index 0000000000..671847680e Binary files /dev/null and b/macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/sample/beamerthemetamu.pdf differ diff --git a/macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/sample/beamerthemetamu.tex b/macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/sample/beamerthemetamu.tex new file mode 100644 index 0000000000..12b755e55d --- /dev/null +++ b/macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/sample/beamerthemetamu.tex @@ -0,0 +1,341 @@ +% Set onlycurpagenum when you do not want to show total page number. +% Set secheader if you want to show a headline with (sub)section names. +% Set infolines if you want to show a headline and a footline. +\documentclass[onlycurpagenum,infolines,xcolor=table]{beamer} +% Copyright 2017 Alick Zhao +% +% Last modified on: 2017-07-16 + +% This file is modified from a solution template for: + +% - Giving a talk on some subject. +% - The talk is between 15min and 45min long. +% - Style is ornate. + +% Copyright 2004 by Till Tantau . +% +% In principle, this file can be redistributed and/or modified under +% the terms of the GNU Public License, version 2. +% +% However, this file is supposed to be a template to be modified +% for your own needs. For this reason, if you use this file as a +% template and not specifically distribute it as part of a another +% package/program, I grant the extra permission to freely copy and +% modify this file as you see fit and even to delete this copyright +% notice. + +\mode +{ +\usetheme{tamu} +} % end of mode presentation + +\usepackage{graphicx} % includegraphics support (already specified) +%\graphicspath{{fig/}} % directories that hold graphics +\usepackage{amsmath} % for math +\usepackage{amssymb} % for additional math symbols +\usepackage{siunitx} % for si units +\usepackage[style=ieee]{biblatex} +%\usepackage{listings} % for typesetting source code +%\usepackage{algorithmic} % for typesetting algorithms + +\usepackage{iftex} +\ifXeTeX +\usepackage{fontspec} +%\renewcommand\familydefault{\sfdefault} % for slides +\else + \usepackage[utf8]{inputenc} +\fi + +\usepackage{calligra} +\usepackage{colortbl} +\colorlet{tableheader}{blue!40} +\colorlet{oddrow}{blue!20} +\colorlet{evenrow}{blue!10} + +\newcommand*{\tamu}{Texas A\&M University} + +\title{Beamer Template for \tamu} + +\newcommand*{\theauthor}{Alick Zhao} +\author{\theauthor} + +\institute[TAMU] % (optional, but mostly needed) +{ +\tamu +} +% - Use the \inst command only if there are several affiliations. +% - Keep it simple, no one is interested in your street address. + +\date % (optional) +{\today} + +%\subject{Talks} + +\hypersetup{ +pdfauthor={Alick Zhao}, +pdfsubject={Talks}, +pdfkeywords={beamer,TAMU,theme}, +unicode=true, +} + +% Delete this, if you do not want the table of contents to pop up at +% the beginning of each subsection: +%\AtBeginSubsection[] +%{ +% \begin{frame}{Outline} +% \tableofcontents[currentsection,currentsubsection] +% \end{frame} +%} + + +% If you wish to uncover everything in a step-wise fashion, uncomment +% the following command: + +%\beamerdefaultoverlayspecification{<+->} + +% listings setup +%\lstset{basicstyle=\ttfamily,breaklines=true} + +% hyperref setup +%\hypersetup{ +%pdfpagemode=FullScreen, +%} + +\ExecuteBibliographyOptions{citetracker=true,sorting=none} + +% Suppress publisher, location, note, etc. in citations. +\AtEveryCitekey{% + %\ifentrytype{article} + %{\clearfield{title}} + %{}% + \clearlist{publisher}% + \clearlist{location}% + \clearfield{isbn}% + \clearfield{issn}% + \clearfield{note}} + +% Number of each bibliography entry in brackets +\DeclareFieldFormat{labelnumberwidth}{\mkbibbrackets{#1}} + +\makeatletter +% Citation number in brackets. +\renewcommand\@makefntext[1]{% + \normalfont[\@thefnmark]\enspace #1} +\makeatother + +% Provide \notefullcite for footnote citations. +% cf. http://www.texdev.net/2010/03/08/biblatex-numbered-citations-as-footnotes/ + +% NOTE: for vanilla footnote coexistence, refer to +% http://tex.stackexchange.com/questions/20754/tuning-numbered-citations-as-footnote +% http://tex.stackexchange.com/questions/20787/biblatex-cite-with-footnote-only-once-with-use-of-brackets + +\DeclareCiteCommand{\notefullcite}[\mkbibbrackets] + {\usebibmacro{cite:init}% + \usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{notefullcite}% + \usebibmacro{cite:comp}} + {} + {\usebibmacro{cite:dump}% + \usebibmacro{postnote}} + +\newbibmacro*{notefullcite}{% + \ifciteseen + {} + {\footnotetext[\thefield{labelnumber}]{% + \usedriver{}{\thefield{entrytype}}.}}} + +% Decrease the footnote size. +\let\oldfootnotesize\footnotesize +\renewcommand*{\footnotesize}{\oldfootnotesize\tiny} + +\addbibresource{beamerthemetamu-refs.bib} % path to the bib database + +% Disable the navigation symbol bar. +\beamertemplatenavigationsymbolsempty + +\newcommand*{\tamulogo}{% +\IfFileExists{tamu-logo.pdf}{% +\includegraphics[scale=.5]{tamu-logo.pdf}}{% +}} + +\begin{document} + +\titlegraphic{\tamulogo} +\begin{frame} +\titlepage +\end{frame} + +\begin{frame}{Outline} +\tableofcontents +% You might wish to add the option [pausesections] +\end{frame} + + +% Since this a solution template for a generic talk, very little can +% be said about how it should be structured. However, the talk length +% of between 15min and 45min and the theme suggest that you stick to +% the following rules: + +% - Exactly two or three sections (other than the summary). +% - At *most* three subsections per section. +% - Talk about 30s to 2min per frame. So there should be between about +% 15 and 30 frames, all told. + +\section{Sample Section} + +\begin{frame} + \frametitle{Bullet Items} + \begin{itemize} + \item Computers/computing everywhere --- $10^4$ CPUs per person + \begin{itemize} + \item Real-world computing --- sensors and actuators + \item Massively distributed and embedded + \item Collect data and make decisions + \end{itemize} + \item Massive data --- a TeraByte per person per day + \begin{itemize} + \item Sensors, personal, scientific, business, etc\ldots + \item Extract information from this mass of data + \item Serious privacy issues + \end{itemize} + \item People will spend much time in virtual environments + \begin{itemize} + \item Integrating digital and physical worlds + \item Games, Interactive Movies, Virtual Classrooms --- many connected + to physical spaces + \end{itemize} + \end{itemize} +\end{frame} + +\begin{frame} + \frametitle{A Block Example} + \begin{block}{Computers/computing everywhere --- $10^4$ CPUs per person} + \begin{itemize} + \item Real-world computing --- sensors and actuators + \item Massively distributed and embedded + \item Collect data and make decisions + \end{itemize} + \end{block} +\end{frame} + +\begin{frame}{Figure/Table in Columns} + \begin{columns} + \begin{column}{.5\textwidth} + \begin{figure}[htbp] + \centering + \includegraphics{beamericonarticle.pdf} + \caption{A sample figure.} + \end{figure} + \end{column} + \begin{column}{.5\textwidth} + \begin{table}[htbp] + \centering + \caption{A sample table.} + \label{tab:sample} + \rowcolors{2}{oddrow}{evenrow} + \begin{tabular}{ccc} + \rowcolor{tableheader} + Header & Value \\ + Even & $2$\\ + Odd & $3$\\ + \end{tabular} + \end{table} + \end{column} + \end{columns} +\end{frame} + +\begin{frame}{Formulas} + \begin{itemize} + \item Electromagnetic Wave + \begin{itemize} + \item Maxwell: + \begin{align} + \nabla \times \mathbf{E} & = - \frac{\partial + \mathbf{B}}{\partial t}\\ + \nabla \times \mathbf{H} & = \mathbf{J} + + \frac{\partial \mathbf{D}}{\partial t}\\ + \nabla \cdot \mathbf{D} & = \rho \\ + \nabla \cdot\mathbf{B} & = 0 + \label{eqn:maxwell} + \end{align} + \end{itemize} + \item Probability + \begin{itemize} + \item Normal Distribution $\mathcal{N}(\mu,\sigma^2)$: + \[ + \int_{-\infty}^{\infty}\frac{1}{\sigma\sqrt{2\pi}}\mathrm{e}^{-\frac{(x-\mu)^2}{2\sigma^2}}\mathrm{d}x= 1 \, . + \] + \end{itemize} + \end{itemize} +\end{frame} + +\begin{frame}{Formulas With Texts} + Formulas in plain texts: {\rmfamily $P_\text{out}$} + \begin{itemize} + \item Formulas in lists + \begin{itemize} + \item EARTH model +\begin{equation} + P_\text{in} = \begin{cases} + N_{\text{TRX}} P_0 + \Delta_\text{p} P_\text{out}, & 0 < P_\text{out} \le P_\text{max} \\ + N_{\text{TRX}} P_\text{sleep}, & P_\text{out} = 0 + \end{cases} +\end{equation} + \end{itemize} + \end{itemize} + \begin{exampleblock}{Formulas in blocks} + Here is the EARTH model again:\rmfamily +\begin{equation} + P_\text{in} = \begin{cases} + N_{\text{TRX}} P_0 + \Delta_\text{p} P_\text{out}, & 0 < P_\text{out} \le P_\text{max} \\ + N_{\text{TRX}} P_\text{sleep}, & P_\text{out} = 0 + \end{cases} +\end{equation} + \end{exampleblock} +\end{frame} + +\begin{frame} + \frametitle{Title} + \framesubtitle{Subtitle} + \begin{itemize} + \item Item 1 + \item Item 2 + \item Footnote citations~\notefullcite{beameruserguide,shannon1948} + \end{itemize} +\end{frame} + +\section{Various Samples} +\subsection{Sample Subsection} +\subsection{Another Sample Subsection} +\subsection{Yet Another Sample Subsection} + +\section{Summary} + +\begin{frame}{Summary} + \begin{itemize} + \item Lorem ipsum + \end{itemize} + \vspace{1cm} + \begin{itemize} + \item An outlook to the future. + \end{itemize} +\end{frame} + +\appendix +\section*{\appendixname} + +% Final page. +\begin{frame}[plain] + \begin{center} + {\Huge\calligra Thank you!\\} + \bigskip + \theauthor\\ + \nolinkurl{alick9188@gmail.com}\\ + \smallskip + \tamulogo + \end{center} +\end{frame} +\end{document} +%%% vim: set sw=2 isk+=\: et tw=70 formatoptions+=mM: diff --git a/macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/theme/beamercolorthemetamu.sty b/macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/theme/beamercolorthemetamu.sty new file mode 100644 index 0000000000..c3b8fbe418 --- /dev/null +++ b/macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/theme/beamercolorthemetamu.sty @@ -0,0 +1,46 @@ +% Copyright 2017 Alick Zhao +% +% This file may be distributed and/or modified +% +% 1. under the LaTeX Project Public License, version 1.3c or later, and/or +% 2. under the GNU Public License, version 2 or later. +% +% Last modified on: 2017-07-16 + +\mode + +\usecolortheme[RGB={80,0,0}]{structure} +\usecolortheme{orchid} +\ifbeamer@secheader + \usecolortheme{dolphin} + \else + \ifbeamer@infolines + \usecolortheme{dolphin} + \fi +\fi + +% reset block and item icon color +\setbeamercolor{block title}{fg=white,bg=beamer@blendedblue!75!black} +\setbeamercolor{item}{fg=beamer@blendedblue} + +% Colors from TAMU brand guide +% cf. http://brandguide.tamu.edu/downloads/colors/brandColors-RGB.pdf +% +% Primary color +\definecolor{tamumaroon}{RGB}{80,0,0} +% Support color +\definecolor{tamugray}{RGB}{51,44,44} + +% title page tweak +\setbeamercolor{author}{fg=tamumaroon} +\setbeamercolor{date}{fg=tamumaroon} +\setbeamercolor{institute}{fg=tamumaroon} + +% toc tweak +\setbeamercolor{section in toc}{fg=black,bg=white} + +% frametitle tweak +\setbeamercolor{frametitle}{fg=black} + +\mode + diff --git a/macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/theme/beamerinnerthemetamu.sty b/macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/theme/beamerinnerthemetamu.sty new file mode 100644 index 0000000000..be85855cb0 --- /dev/null +++ b/macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/theme/beamerinnerthemetamu.sty @@ -0,0 +1,18 @@ +% Copyright 2017 Alick Zhao +% +% This file may be distributed and/or modified +% +% 1. under the LaTeX Project Public License, version 1.3c or later, and/or +% 2. under the GNU Public License, version 2 or later. +% +% Last modified on: 2017-07-16 + +\mode + +\useinnertheme{rounded} + +% Remove figure/table prefix (Figure:, Table:) +\setbeamertemplate{caption}{\insertcaption} + +\mode + diff --git a/macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/theme/beamerouterthemetamu.sty b/macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/theme/beamerouterthemetamu.sty new file mode 100644 index 0000000000..fb9ae698ca --- /dev/null +++ b/macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/theme/beamerouterthemetamu.sty @@ -0,0 +1,60 @@ +% Copyright 2017 Alick Zhao +% +% This file may be distributed and/or modified +% +% 1. under the LaTeX Project Public License, version 1.3c or later, and/or +% 2. under the GNU Public License, version 2 or later. +% +% Last modified on: 2017-07-16 + +\mode + +\ifbeamer@infolines + \useoutertheme{infolines} +\else + \ifbeamer@secheader + \useoutertheme{infolines} + \else + \useoutertheme{default} + \fi +\fi + +\ifbeamer@infolines +\setbeamertemplate{footline} +{ + \leavevmode% + \hbox{% + \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}% + \usebeamerfont{author in head/foot}\insertshortauthor\expandafter\beamer@ifempty\expandafter{\beamer@shortinstitute}{}{~~(\insertshortinstitute)} + \end{beamercolorbox}% + \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}% + \usebeamerfont{title in head/foot}\insertshorttitle + \end{beamercolorbox}% + \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}% + \usebeamerfont{date in head/foot}\insertshortdate{} + \ifbeamer@onlycurpagenum\hspace*{5em} + \insertframenumber{}\hspace*{2ex} + \else\hspace*{2em} + \insertframenumber{} / \inserttotalframenumber\hspace*{2ex} + \fi + \end{beamercolorbox}}% + \vskip0pt% +} +\else +\setbeamertemplate{footline} +{ + \leavevmode% + \hbox{% + \begin{beamercolorbox}[wd=\paperwidth,ht=2.25ex,dp=1ex,right]{page number in head/foot}% + \ifbeamer@onlycurpagenum + \insertframenumber{}\hspace*{2ex} + \else + \insertframenumber{} / \inserttotalframenumber\hspace*{2ex} + \fi + \end{beamercolorbox}}% + \vskip0pt% +} +\fi + +\mode + diff --git a/macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/theme/beamerthemetamu.sty b/macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/theme/beamerthemetamu.sty new file mode 100644 index 0000000000..20b5d4576a --- /dev/null +++ b/macros/latex/contrib/beamer-contrib/themes/beamerthemetamu/theme/beamerthemetamu.sty @@ -0,0 +1,37 @@ +% Copyright 2017 Alick Zhao +% +% This file may be distributed and/or modified +% +% 1. under the LaTeX Project Public License, version 1.3c or later, and/or +% 2. under the GNU Public License, version 2 or later. +% +% Last modified on: 2017-07-16 + +\mode + +\newif\ifbeamer@onlycurpagenum +\beamer@onlycurpagenumfalse +\newif\ifbeamer@infolines +\beamer@infolinesfalse +\newif\ifbeamer@secheader +\beamer@secheaderfalse +\DeclareOptionBeamer{onlycurpagenum}{\beamer@onlycurpagenumtrue} +\DeclareOptionBeamer{infolines}{\beamer@infolinestrue} +\DeclareOptionBeamer{secheader}{\beamer@secheadertrue} +\ProcessOptionsBeamer + +%\usetheme[secheader]{Boadilla} % with header and footer +\useinnertheme{tamu} +\useoutertheme{tamu} +\usecolortheme{tamu} + +\setbeamercovered{transparent} + +% Background picture. +%\RequirePackage{graphicx} % includegraphics support +%\usebackgroundtemplate{% +%\includegraphics[width=\paperwidth,height=\paperheight]{tamu_bg.pdf}% +%} + +\mode + -- cgit v1.2.3