LuaTex
and the roboto
font are required to compile the presentation.
As an alternative, use the included docker
container to produce a pdf file.
Execute following commands in the directory of the cloned repository:
docker build . -t latex-beamer
docker run -v $PWD:/data/ latex-beamer example.tex
Replace example.tex
with the main tex file.
Go to your working directory and clone the beamer-material-theme
repository into the folder theme
with
git submodule add [email protected]:peterpf/beamer-material-theme.git theme
Then do following:
-
Open src/beamerthemematerial.sty and adapt the paths for the styles:
\usepackage{theme/src/material_colors} \usepackage{theme/src/beamerinnerthemematerial} \usepackage{theme/src/beamerouterthemematerial} \usepackage{theme/src/beamercolorthemematerial} \directlua { local settings = require("theme/src/settings") local Utils = require("theme/src/Utils") }
-
Adapt the references to other files in
-
Copy example.tex from
src
folder totheme
folder:. ├── theme | ├── src/ | ├── example.tex ├── example.tex ├── ...
-
Open the copied file and look for the line that includes the theme:
\usepackage{src/beamerthemematerial} % replace this \usepackage{theme/src/beamerthemematerial} % with this
-
Use the copied file as a starting point for your presentation.
-
Execute the docker command mentioned above in the project root folder.
Colors can be adapted via the config.lua. Undefined complementary colors will be calculated based on their respective main colors. Predefined themes are already there, choose the one you want by changing the return value of config.lua, or create your own:
return lightBlue
-- or
return darkPurple
- Packages that should not be included
graphicx
orgraphics
as they are already included in beamertransparency
,svg
as it messes with the tikz package'sfill opacity
(shadows won't be displayed correctly)