You are on page 1of 29

The Namkeen Beamer Theme

v. 1.0

February 11, 2021

Prof. Dr. Hasan Ali Khattak


hasan.alikhattak@seecs.edu.pk
Dept. of Computing
School of Electrical Engineering and Computer Science
NUST, Sector H12
Islamabad, 44500 Pakistan.
Agenda
The Namkeen Beamer
Theme
Introduction Hasan Ali Khattak
License Introduction
License
Installation Installation
GNU/Linux GNU/Linux
Microsoft Windows
Microsoft Windows Mac OS X
Required Packages
Mac OS X
User Interface
Required Packages Loading the Theme and
Theme Options
Compilation
User Interface Modifying the theme

Loading the Theme and Theme Options Background


Widescreen Support

Compilation Feedback

Modifying the theme Contact Information

Background
Widescreen Support
Feedback
Contact Information
18 Dept. of Computing
Introduction
The Namkeen Beamer
Theme
Hasan Ali Khattak

2 Introduction
License

Why the Namkeen beamer theme? Installation


GNU/Linux

I In October 2020, I had to give a presentation at an Microsoft Windows


Mac OS X

International Conference. Required Packages

User Interface
Loading the Theme and
Theme Options
Compilation
Modifying the theme
Background
Widescreen Support

Feedback
Contact Information

18 Dept. of Computing
Introduction
The Namkeen Beamer
Theme
Hasan Ali Khattak

2 Introduction
License

Why the Namkeen beamer theme? Installation


GNU/Linux

I In October 2020, I had to give a presentation at an Microsoft Windows


Mac OS X

International Conference. Required Packages

User Interface
I Since there was no NUST School of Electrical Engineering Loading the Theme and
Theme Options
and Computer Science (NUST-SEECS) branded beamer Compilation
Modifying the theme
theme, I tried to create the Namkeen beamer theme. Background
Widescreen Support

Feedback
Contact Information

18 Dept. of Computing
Introduction
The Namkeen Beamer
Theme
Hasan Ali Khattak

2 Introduction
License

Why the Namkeen beamer theme? Installation


GNU/Linux

I In October 2020, I had to give a presentation at an Microsoft Windows


Mac OS X

International Conference. Required Packages

User Interface
I Since there was no NUST School of Electrical Engineering Loading the Theme and
Theme Options
and Computer Science (NUST-SEECS) branded beamer Compilation
Modifying the theme
theme, I tried to create the Namkeen beamer theme. Background
Widescreen Support
I This theme is based on the open source AAU sidebar
Feedback
theme so that other researchers and students at NUST Contact Information

could use the theme for their presentations.

18 Dept. of Computing
Introduction
License

The Namkeen Beamer


Theme
Hasan Ali Khattak

Introduction
3 License

I I have used the logo from https://nust.edu.pk. As long as Installation


GNU/Linux

you use the theme for making presentations in connection Microsoft Windows
Mac OS X
with your work at NUST, you are allowed to use the NUST Required Packages

logo. User Interface


Loading the Theme and
Theme Options
Compilation
Modifying the theme
Background
Widescreen Support

Feedback
Contact Information

18 Dept. of Computing
Introduction
License

The Namkeen Beamer


Theme
Hasan Ali Khattak

Introduction
3 License

I I have used the logo from https://nust.edu.pk. As long as Installation


GNU/Linux

you use the theme for making presentations in connection Microsoft Windows
Mac OS X
with your work at NUST, you are allowed to use the NUST Required Packages

logo. User Interface


Loading the Theme and
I The rest of the theme is provided under the GNU General Theme Options
Compilation

Public License v. 3 (GPLv3). This basically means that Modifying the theme
Background
you can redistribute it and/or modify it under the same Widescreen Support

license. For more information on the GPL license see Feedback


Contact Information
http://www.gnu.org/licenses/

18 Dept. of Computing
Installation
The Namkeen Beamer
Theme
Hasan Ali Khattak

The theme consists of four files Introduction


License

1. beamerthemeNamkeen.sty 4 Installation
GNU/Linux

2. beamerinnerthemeNamkeen.sty Microsoft Windows


Mac OS X

3. beamerouterthemeNamkeen.sty Required Packages

User Interface
4. beamercolorthemeNamkeen.sty Loading the Theme and
Theme Options

The theme can either be installed for local or global use. Compilation
Modifying the theme
Background
Widescreen Support

Feedback
Contact Information

18 Dept. of Computing
Installation
The Namkeen Beamer
Theme
Hasan Ali Khattak

The theme consists of four files Introduction


License

1. beamerthemeNamkeen.sty 4 Installation
GNU/Linux

2. beamerinnerthemeNamkeen.sty Microsoft Windows


Mac OS X

3. beamerouterthemeNamkeen.sty Required Packages

User Interface
4. beamercolorthemeNamkeen.sty Loading the Theme and
Theme Options

The theme can either be installed for local or global use. Compilation
Modifying the theme
Background
Local Installation Widescreen Support

The simplest way of installing the theme is by placing the four Feedback
Contact Information
theme files in the same folder as your presentation. When you
download the theme, the four theme files are located in the
local folder.

18 Dept. of Computing
Installation
The Namkeen Beamer
Theme
Global Installation Hasan Ali Khattak

I If you wish to make the theme globally available, you must Introduction
License
put the files in your local latex directory tree. The location 5 Installation
of the root of the local directory tree depends on the GNU/Linux
Microsoft Windows
operating system and the latex distribution. On the Mac OS X

following slides, you can read the instructions for some Required Packages

User Interface
common setups. Loading the Theme and
Theme Options
I When you download the theme, the four theme files are Compilation
Modifying the theme
embedded in a directory structure (in the global folder) Background

ready to be copied directly to the root of your local Widescreen Support

Feedback
directory tree. Contact Information

I On the following slides, we refer to this directory structure


as <dirstruct>. Note that some parts of the directory
may already exist if you have installed other packages in
your local latex directory tree. If this is the case, you
simply merge <dirstruct> with your existing setup.
18 Dept. of Computing
Installation
GNU/Linux

The Namkeen Beamer


Theme
Hasan Ali Khattak

Introduction
License

Installation
Ubuntu with TeX Live 6 GNU/Linux
Microsoft Windows

1. Place the <dirstruct> in the root of your local latex Mac OS X


Required Packages
directory tree. By default it is User Interface
~/texmf Loading the Theme and
Theme Options

If the root does not exist, create it. The symbol ~ refers to Compilation
Modifying the theme
your home folder, i.e., /home/<username> Background
Widescreen Support

2. In a terminal run Feedback


$ texhash ~/texmf Contact Information

18 Dept. of Computing
Installation
Microsoft Windows

The Namkeen Beamer


Theme
Hasan Ali Khattak

Introduction
License
Windows with MiKTeX Installation
Apparently, MiKTeX does not include a local latex directory tree GNU/Linux
7 Microsoft Windows
by default. Therefore, you first have to create it. Mac OS X
Required Packages
1. To do this, create a folder <somewhere> named, e.g., texmf User Interface

2. Add this folder in the Roots tab of the MiKTeX Settings Loading the Theme and
Theme Options

dialog Compilation
Modifying the theme
Background
3. Place the <dirstruct> in your newly created local latex Widescreen Support

directory tree Feedback


Contact Information
<somewhere>\texmf
4. Open the MiKTeX Settings dialog and click Refresh FNDB.

18 Dept. of Computing
Installation
Microsoft Windows

The Namkeen Beamer


Theme
Hasan Ali Khattak

Introduction
Windows with TeX Live License

In the advanced TeX Live Installer, you can manually change Installation
GNU/Linux
the default position of the root of the local latex directory tree. 8 Microsoft Windows

However, we assume the default position below. Mac OS X


Required Packages

1. Place the <dirstruct> in your local latex directory tree User Interface
Loading the Theme and
%USERPROFILE%\texmf Theme Options
Compilation
If it does not exist, create it. In XP %USERPROFILE% is Modifying the theme
Background
c:\Document and Settings\<username> Widescreen Support

by default, and in Vista and above it is by default Feedback


Contact Information
c:\Users\<username>
2. Open the TeX Live Manager dialog and select ’Update
filename database’ under ’Actions’.

18 Dept. of Computing
Installation
Mac OS X

The Namkeen Beamer


Theme
Hasan Ali Khattak

Introduction
License

Installation
GNU/Linux
Microsoft Windows
Mac OS X with MacTeX 9 Mac OS X
Required Packages
Place the <dirstruct> in the root of your local latex directory
User Interface
tree. By default it is Loading the Theme and
Theme Options
~/Library/texmf Compilation
Modifying the theme
If the root does not exist, create it. The symbol ~ refers to your Background

home folder, i.e., /home/<username> Widescreen Support

Feedback
Contact Information

18 Dept. of Computing
Installation
Required Packages

The Namkeen Beamer


Theme
Hasan Ali Khattak

Introduction
License

Of course, you have to have the Beamer class installed. In Installation


GNU/Linux
addition, the theme loads two packages Microsoft Windows
Mac OS X
I TikZ1 10 Required Packages

I calc User Interface


Loading the Theme and
Theme Options
These packages are very common and should therefore be Compilation
Modifying the theme
included in your latex distribution. Background
Widescreen Support

Feedback
Contact Information

1 By the way, TikZ is an awesome package for creating beautiful graphics. If

you do not believe me, then have a look at these online examples or the pgf
user manual. If you want to create beautiful plots, you should use the pgfplots
package which is based on TikZ. 18 Dept. of Computing
User Interface
Loading the Theme and Theme Options

The Namkeen Beamer


Theme
Hasan Ali Khattak

Introduction

The Presentation Theme License

Installation
It is very simple to load the presentation theme. Just type GNU/Linux

\usetheme[<options>]{Namkeen} Microsoft Windows


Mac OS X

which is exactly the same way other beamer presentation Required Packages

themes are loaded. The presentation theme loads the inner, 11


User Interface
Loading the Theme and
outer and color Namkeen theme files and passes the Theme Options
Compilation
<options> on to these files. Modifying the theme
Background
Widescreen Support

The Inner Theme Feedback


You can load the inner theme directly by Contact Information

\useinnertheme{Namkeen}
and it has no options.

18 Dept. of Computing
User Interface
Loading the Theme and Theme Options

The Namkeen Beamer


The Outer Theme Theme
Hasan Ali Khattak
You can load the outer theme directly by
Introduction
\useoutertheme[<options>]{Namkeen} License

Currently, the theme options are Installation


GNU/Linux
I hidetitle: Hide the (short) title in the sidebar Microsoft Windows
Mac OS X
I hideauthor: hide the (short) author in the sidebar Required Packages

User Interface
I hideinstitute: hide the (short) institute in the bottom of 12 Loading the Theme and
Theme Options
the sidebar Compilation
Modifying the theme
I shownavsym: show the navigation symbols Background
Widescreen Support
I left or right: position of the sidebar (default is right) Feedback
Contact Information
I width=<length>: width of the sidebar (default is 2 cm).
I hideothersubsections: hide all subsections but the
subsections in the current section
I hideallsubsections: hide all subsections
The last four options are inherited from the outer sidebar
theme. 18 Dept. of Computing
User Interface
Loading the Theme and Theme Options

The Namkeen Beamer


Theme

The Color Theme Hasan Ali Khattak

You can load the color theme directly by Introduction


License
\usecolortheme{Namkeen}
Installation
and it has no options. GNU/Linux
Microsoft Windows
Mac OS X
Required Packages

User Interface
13 Loading the Theme and
Theme Options
Compilation
Modifying the theme
Background
Widescreen Support

Feedback
Contact Information

18 Dept. of Computing
User Interface
Loading the Theme and Theme Options

The Namkeen Beamer


Theme

The Color Theme Hasan Ali Khattak

You can load the color theme directly by Introduction


License
\usecolortheme{Namkeen}
Installation
and it has no options. GNU/Linux
Microsoft Windows
Mac OS X
The Color Element Namkeen Required Packages

The color theme defines a new beamer color element named User Interface
13 Loading the Theme and
Namkeen whose foreground and background colors are Theme Options
Compilation
I fg: light blue ({RGB}{194,193,204}) Modifying the theme
Background

I bg: dark blue ({RGB}{33,26,82}) Widescreen Support

Feedback
You can use these colors in the standard beamer way by using Contact Information

the command \usebeamercolor[<fg or bg>]{Namkeen}. See


the beamer manual for instructions.

18 Dept. of Computing
User Interface
Loading the Theme and Theme Options

The Namkeen Beamer


Theme

The Color Theme Hasan Ali Khattak

You can load the color theme directly by Introduction


License
\usecolortheme{Namkeen}
Installation
and it has no options. GNU/Linux
Microsoft Windows
Mac OS X
The Color Element Namkeen Required Packages

The color theme defines a new beamer color element named User Interface
13 Loading the Theme and
Namkeen whose foreground and background colors are Theme Options
Compilation
I fg: light blue ({RGB}{194,193,204}) Modifying the theme
Background

I bg: dark blue ({RGB}{33,26,82}) Widescreen Support

Feedback
You can use these colors in the standard beamer way by using Contact Information

the command \usebeamercolor[<fg or bg>]{Namkeen}. See


the beamer manual for instructions.
Note that this version of the theme follows official NUST
Colors. However, you can easily change it (including the logo)
by following the steps in beamercolorthemeNamkeen.sty.
18 Dept. of Computing
User Interface
Compilation

The Namkeen Beamer


Theme
Hasan Ali Khattak

Introduction
License

Installation

Compiling Your Presentation With Namkeen Theme GNU/Linux


Microsoft Windows

Unlike most other beamer themes, this theme must be Mac OS X


Required Packages

compiled at least three times to make everything look right. For User Interface

most other themes, you do not have to compile your Loading the Theme and
Theme Options

presentation more than two times. For the Namkeen theme, 14 Compilation
Modifying the theme

the third compilation is necessary to determine the position of Background


Widescreen Support
the circle with the current frame number and the length of the Feedback
"progress bar". Contact Information

18 Dept. of Computing
User Interface
Modifying the Theme

The Namkeen Beamer


I The default configuration of fonts, colors, and layout Theme
Hasan Ali Khattak
complies with the NUST Branding - Logo and Text and is
Introduction
the unofficially official version of the theme. License

Installation
GNU/Linux
Microsoft Windows
Mac OS X
Required Packages

User Interface
Loading the Theme and
Theme Options
Compilation
15 Modifying the theme
Background
Widescreen Support

Feedback
Contact Information

18 Dept. of Computing
User Interface
Modifying the Theme

The Namkeen Beamer


I The default configuration of fonts, colors, and layout Theme
Hasan Ali Khattak
complies with the NUST Branding - Logo and Text and is
Introduction
the unofficially official version of the theme. License

I However, you can modify specific elements of the theme Installation


GNU/Linux
through the templates provided by the beamer class. Microsoft Windows
Mac OS X
Please refer to the beamer user manual for instructions. Required Packages

User Interface
Loading the Theme and
Theme Options
Compilation
15 Modifying the theme
Background
Widescreen Support

Feedback
Contact Information

18 Dept. of Computing
User Interface
Modifying the Theme

The Namkeen Beamer


I The default configuration of fonts, colors, and layout Theme
Hasan Ali Khattak
complies with the NUST Branding - Logo and Text and is
Introduction
the unofficially official version of the theme. License

I However, you can modify specific elements of the theme Installation


GNU/Linux
through the templates provided by the beamer class. Microsoft Windows
Mac OS X
Please refer to the beamer user manual for instructions. Required Packages

I For example, on this slide the following commands have User Interface
Loading the Theme and
been used Theme Options
Compilation
I Change the bar and sidebar colors: 15 Modifying the theme
Background
\setbeamercolor{nust}{fg=gray!50,bg=gray} Widescreen Support

\setbeamercolor{sidebar}{bg=red!20} Feedback
I Change the color of the structural elements: Contact Information

\setbeamercolor{structure}{fg=red}
I Change the frame title text color:
\setbeamercolor{frametitle}{use=structure,
fg=structure.fg}
I Change the background color of the text
\setbeamercolor{normal text}{bg=gray!20} Dept. of Computing
18
User Interface
The Background Image

The Namkeen Beamer


Theme
Hasan Ali Khattak
The Background Image Introduction
License
I In this documentation, the title page frame and the last
Installation
frame have the waves as the background image. The GNU/Linux
Microsoft Windows
waves background image can be added to any single Mac OS X

frame by wrapping a frame in the following way Required Packages

User Interface
{\wavesbg Loading the Theme and
Theme Options
\begin{frame}[<options>]{Frame Title}{Frame Compilation

Subtitle} 16
Modifying the theme
Background

... Widescreen Support

Feedback
\end{frame}} Contact Information

18 Dept. of Computing
User Interface
The Background Image

The Namkeen Beamer


Theme
Hasan Ali Khattak
The Background Image Introduction
License
I In this documentation, the title page frame and the last
Installation
frame have the waves as the background image. The GNU/Linux
Microsoft Windows
waves background image can be added to any single Mac OS X

frame by wrapping a frame in the following way Required Packages

User Interface
{\wavesbg Loading the Theme and
Theme Options
\begin{frame}[<options>]{Frame Title}{Frame Compilation

Subtitle} 16
Modifying the theme
Background

... Widescreen Support

Feedback
\end{frame}} Contact Information

I Ideally, I would like to create a new frame option called


wavesbg which can enable the waves background.
However, I have not been able to figure out how such an
option can be added.

18 Dept. of Computing
User Interface
Widescreen Support

The Namkeen Beamer


Theme
Hasan Ali Khattak

Introduction
License

Installation
Widescreen Support GNU/Linux
Microsoft Windows
Newer projectors and almost any modern TV support a Mac OS X

widescreen format such as 16:10 or 16:9. Beamer (>= v. 3.10) Required Packages

User Interface
supports various aspect ratios of the slides. According to Loading the Theme and
Theme Options
section 8.3 on page 77 of the Beamer user guide v. 3.10, you Compilation

can write Modifying the theme


Background

\documentclass[aspectratio=1610]{beamer} 17 Widescreen Support

to get slides with an aspect ratio of 16:10. You can also use Feedback
Contact Information

169, 149, 54, 43 (default), and 32 to get other aspect ratios.

18 Dept. of Computing
Feedback
Contact Information

The Namkeen Beamer


Theme
Hasan Ali Khattak

Introduction

In case you have any comments, suggestions or have found a License

Installation
bug, please do not hesitate to contact me. You can find my GNU/Linux

contact details below. Microsoft Windows


Mac OS X
Required Packages

Prof. Dr. Hasan Ali Khattak User Interface


Loading the Theme and
hasan.alikhattak@seecs.edu.pk Theme Options

https://github.com/hasanalikhattak/namkeen Compilation
Modifying the theme

Dept. of Computing Background


Widescreen Support
School of Electrical Engineering and Computer Science Feedback
NUST, Sector H12 18 Contact Information

Islamabad, 44500 Pakistan.

18 Dept. of Computing
Thank you for using this theme!

You might also like