mirror of https://github.com/matze/mtheme.git
Merge pull request #52 from eddelbuettel/feature/add-contrib
Add a simple contrib/ directory
This commit is contained in:
commit
696d463abc
22
Dockerfile
22
Dockerfile
|
@ -1,22 +0,0 @@
|
|||
FROM ubuntu:trusty
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
|
||||
RUN apt-get update -q
|
||||
RUN apt-get install -qy texlive-full
|
||||
RUN apt-get install -qy python-pygments
|
||||
RUN apt-get install -qy gnuplot
|
||||
|
||||
RUN apt-get install wget
|
||||
|
||||
RUN mkdir -p /usr/share/fonts/truetype/FiraSans
|
||||
RUN mkdir -p /usr/share/fonts/opentype/FiraSans
|
||||
RUN wget "dev.carrois.com/wordpress/wp-content/uploads/downloads/fira_3_1/FiraMono3106.zip"
|
||||
RUN wget "dev.carrois.com/wordpress/wp-content/uploads/downloads/fira_3_1/FiraSans3106.zip"
|
||||
RUN unzip FiraSans3106.zip
|
||||
RUN unzip FiraMono3106.zip
|
||||
RUN sudo cp /Fira*/WEB/*.ttf /usr/share/fonts/truetype/FiraSans/
|
||||
RUN sudo cp /Fira*/OTF/Fira* /usr/share/fonts/opentype/FiraSans/
|
||||
RUN sudo fc-cache -f -v
|
||||
|
||||
WORKDIR /data
|
||||
VOLUME ["/data"]
|
|
@ -20,7 +20,8 @@ and the section indicator are hardcoded into the theme. For the demo you need
|
|||
|
||||
Depending on the Linux distribution, the packaged name of Fira Sans might be
|
||||
`Fira Sans OT` instead of `Fira Sans`. In that case, you may have to edit
|
||||
`beamerfontthememetropolis.sty`.
|
||||
`beamerfontthememetropolis.sty`. You may also need to install Fira Sans; see
|
||||
the `contrib/` directory for more
|
||||
|
||||
|
||||
### Usage
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
|
||||
## Contributed by Walter Schulze (@awalterschulze)
|
||||
## Simpliefied by Dirk Eddelbuettel (@eddelbuettel)
|
||||
|
||||
FROM ubuntu:trusty
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
|
||||
RUN apt-get update -q \
|
||||
&& apt-get install -qy \
|
||||
gnuplot \
|
||||
python-pygments \
|
||||
texlive-full \
|
||||
wget
|
||||
|
||||
RUN cd /tmp \
|
||||
&& mkdir -p /usr/share/fonts/truetype/FiraSans \
|
||||
&& mkdir -p /usr/share/fonts/opentype/FiraSans \
|
||||
&& wget "dev.carrois.com/wordpress/wp-content/uploads/downloads/fira_3_1/FiraMono3106.zip" \
|
||||
&& wget "dev.carrois.com/wordpress/wp-content/uploads/downloads/fira_3_1/FiraSans3106.zip" \
|
||||
&& unzip FiraSans3106.zip \
|
||||
&& unzip FiraMono3106.zip \
|
||||
&& cp Fira*/WEB/*.ttf /usr/share/fonts/truetype/FiraSans/ \
|
||||
&& cp Fira*/OTF/Fira* /usr/share/fonts/opentype/FiraSans/ \
|
||||
&& fc-cache -f -v \
|
||||
&& rm -rf Fira*
|
||||
|
||||
WORKDIR /data
|
||||
VOLUME ["/data"]
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
|
||||
## cf from http://programster.blogspot.com/2014/05/ubuntu-14-desktop-install-fira-sans-and.html
|
||||
|
||||
cd /tmp
|
||||
|
||||
# install unzip just in case the user doesn't already have it.
|
||||
sudo apt-get install unzip -y
|
||||
wget "http://dev.carrois.com/wordpress/wp-content/uploads/downloads/fira_3_1/FiraSans3106.zip"
|
||||
wget "http://dev.carrois.com/wordpress/wp-content/uploads/downloads/fira_3_1/FiraMono3106.zip"
|
||||
|
||||
unzip FiraMono3106.zip
|
||||
unzip FiraSans3106.zip
|
||||
|
||||
sudo mkdir -p /usr/share/fonts/truetype/FiraSans
|
||||
sudo mkdir -p /usr/share/fonts/opentype/FiraSans
|
||||
sudo cp Fira*/WEB/*.ttf /usr/share/fonts/truetype/FiraSans/
|
||||
sudo cp Fira*/OTF/Fira* /usr/share/fonts/opentype/FiraSans/
|
||||
|
||||
sudo fc-cache -fv
|
Loading…
Reference in New Issue