Beamer Latex package with no style

Having limited use of latex previously to generating written documents, I recently wanted to try generating presentation slides using the beamer package. My Ubuntu machine got a re-installation due to some upgrade problem, due to power outage. I decided to use a minimum installation of Ubuntu and choose most of the apps that I wanted to install later. And since I have only one semester left of a repeating subject, I decided not to install any office software yet, since I got little use of them personally. I use markdown to write most of my personal notes, and Marktext allows me to even put in mathematical formula. PDF mixer and Okular are already good for pdf editing. At least for me. So I needed little else. Yes, yes I am just a lay user, not “power user”.

Since I am using Ubuntu, and TeXstudio had a ppa for Ubuntu, I decided to use it (I had use MiKTeX previously). The instruction to add the ppa for our repository source are included in this website, by J. Sundermeyer, the ppa’s manager. But I put the summary here:

sudo add-apt-repository ppa:sunderme/texstudio
sudo apt-get update
sudo apt install texstudio

I tried to make some default beamer presentation, and it went well. But when I tried to invoke some themes using \usetheme{Madrid}, I got error where beamerthemeMadrid.sty can’t be found. I tried other themes, with this website as reference, but to no avail. As I browse the internet, all indicators point towards the fact that themes were suppose to be there. So I thought maybe something is wrong with the installation?

So with the article “How to install LaTex on Ubuntu 20.04 Focal Fossa Linux” by Rendek (2020), I found that there are various level of tex-live installation in linux: base, recommended, default, extra and full. I found that I already had texlive-extra from the installation of TeX-Studio. So maybe the themes are in full installation? so I do sudo apt install texlive-full, with size of almost 6 GB installation. As a note you can install each version using the sudo apt install texlive-* command, replacing the * with base, latex-recommended, nothing, latex-extra, and full.

But there is still no beamer theme.

Byfer (2007), help me locate the suppose location of the beamer theme, namely /usr/share/texmf/tex/latex/Beamer/themes. And sure enough, it is empty. There is no Beamer directory at /usr/share/texmf/tex/latex/. Searching for the package online, I found the package at ctan, and proceed to download the contents of the package, a zip file of 2.9MB in size. Sure enough as I unzipped it going from the beamer folder to base to themes, I found all the theme that I need.

So going to the terminal I make the appropriate directory:

sudo mkdir /usr/share/texmf/tex/latex/Beamer
sudo mkdir /usr/share/texmf/tex/latex/Beamer/themes

Using rsync I copied the program downloaded themes:

sudo rsync -avh -recursive --progress ~/Downloads/beamer/base/themes/theme/ /usr/share/texmf/tex/latex/Beamer/themes/

Two points here, the first the options following rsync command is what I normally use, so I just copy and paste here. Bad habit, I know. But you can found the instruction in any tutorial for rsync. The first directory folder (the first one started with ~) is where the themes are located, notice that it is in the beamer folder in the Download folder. The last / indicates that I only want the content of theme folder, not the folder itself. The second directory (the one started with /usr/share...) is the destination folder (the one I just created).

And guess what, It worked :). Beamer now can use theme from the \usetheme{}command.

Sites

Beamer Theme Matrix. https://hartwork.org/beamer-theme-matrix/

Byfer, B. (2007). Basic presentations with LaTeX Beamer. Retrieved from www.linux.com/news/basic-presentations-latex-beamer/

Ctan. beamer – A LaTeX class for producing presentations and slides. www.ctan.org/pkg/beamer

Rendek L. (2020). How to install LaTex on Ubuntu 20.04 Focal Fossa Linux. Retrieved from https://linuxconfig.org/how-to-install-latex-on-ubuntu-20-04-focal-fossa-linux

Sundermeyer, J. TexStudio ppa for Ubuntu. https://code.launchpad.net/~sunderme/+archive/ubuntu/texstudio

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create your website with WordPress.com
Get started
%d bloggers like this: