Skip to content

Instantly share code, notes, and snippets.

@walshc
Last active October 20, 2018 12:44
Show Gist options
  • Save walshc/372cbaf64347cd083b710f7de533902c to your computer and use it in GitHub Desktop.
Save walshc/372cbaf64347cd083b710f7de533902c to your computer and use it in GitHub Desktop.
Install metropolis beamer theme
#!/bin/bash
# Install Fira:
cd ~/
git clone https://github.com/mozilla/Fira
mkdir -p ~/.local/share/fonts/Fira
mv Fira/ttf/* ~/.local/share/fonts/Fira
rm -rf Fira
fc-cache -fv
# Install mtheme:
sudo apt install -y texlive-xetex
git clone https://github.com/matze/mtheme
cd mtheme
make sty
sudo make install
BEAMER_DIR=`sudo find /usr -name "beamerthemedefault.sty" | xargs dirname`
sudo cp beamerthememetropolis.sty $BEAMER_DIR
sudo cp beamercolorthememetropolis.sty $BEAMER_DIR/../color
sudo cp beamerfontthememetropolis.sty $BEAMER_DIR/../font
sudo cp beamerinnerthememetropolis.sty $BEAMER_DIR/../inner
sudo cp beamerouterthememetropolis.sty $BEAMER_DIR/../outer
sudo texhash
cd ..
rm -rf mtheme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment